summaryrefslogtreecommitdiff
path: root/core/fxcrt/css
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/css')
-rw-r--r--core/fxcrt/css/cfx_css.h7
-rw-r--r--core/fxcrt/css/cfx_csscomputedstyle.cpp4
2 files changed, 6 insertions, 5 deletions
diff --git a/core/fxcrt/css/cfx_css.h b/core/fxcrt/css/cfx_css.h
index e9ff722d08..5b70d0b2e1 100644
--- a/core/fxcrt/css/cfx_css.h
+++ b/core/fxcrt/css/cfx_css.h
@@ -186,8 +186,6 @@ class CFX_CSSLength {
public:
CFX_CSSLength() {}
- explicit CFX_CSSLength(CFX_CSSLengthUnit eUnit) : m_unit(eUnit) {}
-
CFX_CSSLength(CFX_CSSLengthUnit eUnit, float fValue)
: m_unit(eUnit), m_fValue(fValue) {}
@@ -237,7 +235,10 @@ class CFX_CSSRect {
return *this;
}
- CFX_CSSLength left, top, right, bottom;
+ CFX_CSSLength left;
+ CFX_CSSLength top;
+ CFX_CSSLength right;
+ CFX_CSSLength bottom;
};
#endif // CORE_FXCRT_CSS_CFX_CSS_H_
diff --git a/core/fxcrt/css/cfx_csscomputedstyle.cpp b/core/fxcrt/css/cfx_csscomputedstyle.cpp
index aae88a364a..f06092c7f9 100644
--- a/core/fxcrt/css/cfx_csscomputedstyle.cpp
+++ b/core/fxcrt/css/cfx_csscomputedstyle.cpp
@@ -168,8 +168,8 @@ void CFX_CSSComputedStyle::AddCustomStyle(const CFX_CSSCustomProperty& prop) {
}
CFX_CSSComputedStyle::InheritedData::InheritedData()
- : m_LetterSpacing(CFX_CSSLengthUnit::Normal),
- m_WordSpacing(CFX_CSSLengthUnit::Normal),
+ : m_LetterSpacing(CFX_CSSLengthUnit::Normal, 0),
+ m_WordSpacing(CFX_CSSLengthUnit::Normal, 0),
m_TextIndent(CFX_CSSLengthUnit::Point, 0),
m_pFontFamily(nullptr),
m_fFontSize(12.0f),