summaryrefslogtreecommitdiff
path: root/core/fxcrt/css/cfx_csscomputedstyle.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-06-26 14:57:28 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-26 14:57:28 +0000
commit75ee53784b5e51583c6c994d6eeadb7d3ce4a1b9 (patch)
treeea65039c95c0b83bef8fb20ec24c0be5c42e579e /core/fxcrt/css/cfx_csscomputedstyle.cpp
parent76fb29d5ebae4fea2e5d1221f77e218a9b4b309a (diff)
downloadpdfium-75ee53784b5e51583c6c994d6eeadb7d3ce4a1b9.tar.xz
Fix uninit value in CFX_CSSComputedStyle::InheritedData.
BUG=chromium:856054 Change-Id: Ieacb7be324f290c91623ed1bd97744150fbfa6e7 Reviewed-on: https://pdfium-review.googlesource.com/36090 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fxcrt/css/cfx_csscomputedstyle.cpp')
-rw-r--r--core/fxcrt/css/cfx_csscomputedstyle.cpp4
1 files changed, 2 insertions, 2 deletions
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),