summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_textparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/cxfa_textparser.cpp')
-rw-r--r--xfa/fxfa/cxfa_textparser.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_textparser.cpp b/xfa/fxfa/cxfa_textparser.cpp
index 8981799d83..433531373c 100644
--- a/xfa/fxfa/cxfa_textparser.cpp
+++ b/xfa/fxfa/cxfa_textparser.cpp
@@ -115,6 +115,12 @@ RetainPtr<CFX_CSSComputedStyle> CXFA_TextParser::CreateRootStyle(
case XFA_ATTRIBUTEENUM_JustifyAll:
hAlign = CFX_CSSTextAlign::JustifyAll;
break;
+ case XFA_ATTRIBUTEENUM_Left:
+ case XFA_ATTRIBUTEENUM_Radix:
+ break;
+ default:
+ NOTREACHED();
+ break;
}
pStyle->SetTextAlign(hAlign);
CFX_CSSRect rtMarginWidth;
@@ -291,7 +297,8 @@ std::unique_ptr<CXFA_TextParser::TagProvider> CXFA_TextParser::ParseTagInfo(
return tagProvider;
}
-int32_t CXFA_TextParser::GetVAlign(CXFA_TextProvider* pTextProvider) const {
+XFA_ATTRIBUTEENUM CXFA_TextParser::GetVAlign(
+ CXFA_TextProvider* pTextProvider) const {
CXFA_ParaData paraData = pTextProvider->GetParaData();
return paraData.HasValidNode() ? paraData.GetVerticalAlign()
: XFA_ATTRIBUTEENUM_Top;