diff options
author | dsinclair <dsinclair@chromium.org> | 2016-04-11 14:09:49 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-11 14:09:49 -0700 |
commit | 1fdde02d90963f774e7d1b6b0353d23aefe0a357 (patch) | |
tree | f86b92277e5f91b461e5f2265e91982a014282f8 /xfa/fde/css/fde_cssstyleselector.cpp | |
parent | b8627c9d13884d48943d8a7a5381eaf0bb2c08d9 (diff) | |
download | pdfium-1fdde02d90963f774e7d1b6b0353d23aefe0a357.tar.xz |
Cleaning up FDE_CSS Classes.
This Cl removes the IFDE_CSSAccelerator header and replaces the usage with
the concrete class.
The interfaces and methods in the CSSComputedStyle class are cleanedup to remove
any unused methods.
BUG=pdfium:468
Review URL: https://codereview.chromium.org/1876253002
Diffstat (limited to 'xfa/fde/css/fde_cssstyleselector.cpp')
-rw-r--r-- | xfa/fde/css/fde_cssstyleselector.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/xfa/fde/css/fde_cssstyleselector.cpp b/xfa/fde/css/fde_cssstyleselector.cpp index f1e73dd5d1..d93a756b3b 100644 --- a/xfa/fde/css/fde_cssstyleselector.cpp +++ b/xfa/fde/css/fde_cssstyleselector.cpp @@ -11,6 +11,8 @@ #include "xfa/fde/css/fde_csscache.h" #include "xfa/fde/css/fde_cssdeclaration.h" +#define FDE_CSSUNIVERSALHASH ('*') + int32_t CFDE_CSSCounterStyle::FindIndex(const FX_WCHAR* pszIdentifier) { int32_t iCount = m_arrCounterData.GetSize(); for (int32_t i = 0; i < iCount; i++) { @@ -74,15 +76,7 @@ void CFDE_CSSCounterStyle::UpdateIndex() { DoUpdateIndex(m_pCounterReset); m_bIndexDirty = FALSE; } -FDE_CSSTEXTEMPHASISMARK CFDE_CSSComputedStyle::GetTextEmphasisMark() const { - if (m_InheritedData.m_eTextEmphasisMark != FDE_CSSTEXTEMPHASISMARK_Auto) { - return (FDE_CSSTEXTEMPHASISMARK)m_InheritedData.m_eTextEmphasisMark; - } - if (m_InheritedData.m_eWritingMode == FDE_CSSWRITINGMODE_HorizontalTb) { - return FDE_CSSTEXTEMPHASISMARK_Dot; - } - return FDE_CSSTEXTEMPHASISMARK_Sesame; -} + FDE_CSSRuleData::FDE_CSSRuleData(IFDE_CSSSelector* pSel, IFDE_CSSDeclaration* pDecl, uint32_t dwPos) @@ -245,7 +239,7 @@ void CFDE_CSSStyleSelector::SetDefFontSize(FX_FLOAT fFontSize) { FXSYS_assert(fFontSize > 0); m_fDefFontSize = fFontSize; } -IFDE_CSSAccelerator* CFDE_CSSStyleSelector::InitAccelerator() { +CFDE_CSSAccelerator* CFDE_CSSStyleSelector::InitAccelerator() { if (m_pAccelerator == NULL) { m_pAccelerator = new CFDE_CSSAccelerator; FXSYS_assert(m_pAccelerator != NULL); |