summaryrefslogtreecommitdiff
path: root/xfa/fde/css/cfde_csscomputedstyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fde/css/cfde_csscomputedstyle.cpp')
-rw-r--r--xfa/fde/css/cfde_csscomputedstyle.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/xfa/fde/css/cfde_csscomputedstyle.cpp b/xfa/fde/css/cfde_csscomputedstyle.cpp
index 50247420be..01872d18fc 100644
--- a/xfa/fde/css/cfde_csscomputedstyle.cpp
+++ b/xfa/fde/css/cfde_csscomputedstyle.cpp
@@ -33,8 +33,8 @@ int32_t CFDE_CSSComputedStyle::CountFontFamilies() const {
}
const CFX_WideString CFDE_CSSComputedStyle::GetFontFamily(int32_t index) const {
- return static_cast<CFDE_CSSStringValue*>(
- m_InheritedData.m_pFontFamily->GetValue(index))
+ return m_InheritedData.m_pFontFamily->GetValue(index)
+ .As<CFDE_CSSStringValue>()
->Value();
}
@@ -180,6 +180,8 @@ CFDE_CSSComputedStyle::InheritedData::InheritedData()
m_eFontStyle(FDE_CSSFontStyle::Normal),
m_eTextAlign(FDE_CSSTextAlign::Left) {}
+CFDE_CSSComputedStyle::InheritedData::~InheritedData() {}
+
CFDE_CSSComputedStyle::NonInheritedData::NonInheritedData()
: m_MarginWidth(FDE_CSSLengthUnit::Point, 0),
m_BorderWidth(FDE_CSSLengthUnit::Point, 0),