summaryrefslogtreecommitdiff
path: root/xfa/fde/css/fde_cssstyleselector.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-01-16 16:07:41 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-01-17 19:00:07 +0000
commitb9fbe6e9af590a91ab030d2523a147e972816b32 (patch)
treec74b7124a47142da64cc0e84c82fcff743309405 /xfa/fde/css/fde_cssstyleselector.h
parent6b71f22093fc4abb2da39f5a58b29c45c17ff99a (diff)
downloadpdfium-b9fbe6e9af590a91ab030d2523a147e972816b32.tar.xz
Rename FDE_CSSRECT and FDE_CSSLENGTH
This Cl converts the names to FDE_CSSRect and FDE_CSSLength to better match other parts of the code base. Change-Id: I33367ae3d93d912755671486d6d5317cddbc4f62 Reviewed-on: https://pdfium-review.googlesource.com/2179 Commit-Queue: dsinclair <dsinclair@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fde/css/fde_cssstyleselector.h')
-rw-r--r--xfa/fde/css/fde_cssstyleselector.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/xfa/fde/css/fde_cssstyleselector.h b/xfa/fde/css/fde_cssstyleselector.h
index 4de54a8c91..f9833f7594 100644
--- a/xfa/fde/css/fde_cssstyleselector.h
+++ b/xfa/fde/css/fde_cssstyleselector.h
@@ -132,7 +132,7 @@ class CFDE_CSSStyleSelector {
FX_FLOAT ApplyNumber(FDE_CSSPrimitiveType eUnit,
FX_FLOAT fValue,
FX_FLOAT fPercentBase);
- bool SetLengthWithPercent(FDE_CSSLENGTH& width,
+ bool SetLengthWithPercent(FDE_CSSLength& width,
FDE_CSSPrimitiveType eType,
CFDE_CSSPrimitiveValue* pPrimitive,
FX_FLOAT fFontSize);
@@ -158,9 +158,9 @@ class CFDE_CSSInheritedData {
public:
CFDE_CSSInheritedData();
- FDE_CSSLENGTH m_LetterSpacing;
- FDE_CSSLENGTH m_WordSpacing;
- FDE_CSSLENGTH m_TextIndent;
+ FDE_CSSLength m_LetterSpacing;
+ FDE_CSSLength m_WordSpacing;
+ FDE_CSSLength m_TextIndent;
CFDE_CSSValueList* m_pFontFamily;
FX_FLOAT m_fFontSize;
FX_FLOAT m_fLineHeight;
@@ -175,13 +175,13 @@ class CFDE_CSSNonInheritedData {
public:
CFDE_CSSNonInheritedData();
- FDE_CSSRECT m_MarginWidth;
- FDE_CSSRECT m_BorderWidth;
- FDE_CSSRECT m_PaddingWidth;
- FDE_CSSLENGTH m_Top;
- FDE_CSSLENGTH m_Bottom;
- FDE_CSSLENGTH m_Left;
- FDE_CSSLENGTH m_Right;
+ FDE_CSSRect m_MarginWidth;
+ FDE_CSSRect m_BorderWidth;
+ FDE_CSSRect m_PaddingWidth;
+ FDE_CSSLength m_Top;
+ FDE_CSSLength m_Bottom;
+ FDE_CSSLength m_Left;
+ FDE_CSSLength m_Right;
FX_FLOAT m_fVerticalAlign;
FDE_CSSDisplay m_eDisplay;
FDE_CSSVerticalAlign m_eVerticalAlign;
@@ -213,27 +213,27 @@ class CFDE_CSSComputedStyle : public IFX_Retainable {
void SetFontSize(FX_FLOAT fFontSize);
void SetColor(FX_ARGB dwFontColor);
- const FDE_CSSRECT* GetBorderWidth() const;
- const FDE_CSSRECT* GetMarginWidth() const;
- const FDE_CSSRECT* GetPaddingWidth() const;
- void SetMarginWidth(const FDE_CSSRECT& rect);
- void SetPaddingWidth(const FDE_CSSRECT& rect);
+ const FDE_CSSRect* GetBorderWidth() const;
+ const FDE_CSSRect* GetMarginWidth() const;
+ const FDE_CSSRect* GetPaddingWidth() const;
+ void SetMarginWidth(const FDE_CSSRect& rect);
+ void SetPaddingWidth(const FDE_CSSRect& rect);
FDE_CSSDisplay GetDisplay() const;
FX_FLOAT GetLineHeight() const;
- const FDE_CSSLENGTH& GetTextIndent() const;
+ const FDE_CSSLength& GetTextIndent() const;
FDE_CSSTextAlign GetTextAlign() const;
FDE_CSSVerticalAlign GetVerticalAlign() const;
FX_FLOAT GetNumberVerticalAlign() const;
uint32_t GetTextDecoration() const;
- const FDE_CSSLENGTH& GetLetterSpacing() const;
+ const FDE_CSSLength& GetLetterSpacing() const;
void SetLineHeight(FX_FLOAT fLineHeight);
- void SetTextIndent(const FDE_CSSLENGTH& textIndent);
+ void SetTextIndent(const FDE_CSSLength& textIndent);
void SetTextAlign(FDE_CSSTextAlign eTextAlign);
void SetNumberVerticalAlign(FX_FLOAT fAlign);
void SetTextDecoration(uint32_t dwTextDecoration);
- void SetLetterSpacing(const FDE_CSSLENGTH& letterSpacing);
+ void SetLetterSpacing(const FDE_CSSLength& letterSpacing);
void AddCustomStyle(const CFX_WideString& wsName,
const CFX_WideString& wsValue);