summaryrefslogtreecommitdiff
path: root/xfa/fwl
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-08-14 11:09:20 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-14 15:35:39 +0000
commit24b6af6c87f0d7f49f5213ae019616b9b07e2e8f (patch)
treefaea13c7ac4a4ca63a186793519aa116b91792f2 /xfa/fwl
parent54a8390782c734f6c919f126ea5b93d5a3dcdc00 (diff)
downloadpdfium-24b6af6c87f0d7f49f5213ae019616b9b07e2e8f.tar.xz
Cleanup more fde defines
This CL cleans up more defines and shuffles some fde code around to better locations. Change-Id: I6af0e991d9fa489ca45d1d0f9d041657beef3b7e Reviewed-on: https://pdfium-review.googlesource.com/10613 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fwl')
-rw-r--r--xfa/fwl/cfwl_edit.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/xfa/fwl/cfwl_edit.cpp b/xfa/fwl/cfwl_edit.cpp
index 53fec0576e..a261041534 100644
--- a/xfa/fwl/cfwl_edit.cpp
+++ b/xfa/fwl/cfwl_edit.cpp
@@ -639,10 +639,8 @@ void CFWL_Edit::UpdateEditParams() {
params.dwAlignment |= FDE_TEXTEDITALIGN_Justified;
break;
}
- default: {
- params.dwAlignment |= FDE_TEXTEDITALIGN_Normal;
+ default:
break;
- }
}
if (m_pProperties->m_dwStyleExes & FWL_STYLEEXT_EDT_MultiLine) {
params.dwMode |= FDE_TEXTEDITMODE_MultiLines;
@@ -660,10 +658,6 @@ void CFWL_Edit::UpdateEditParams() {
0) {
params.dwMode |= FDE_TEXTEDITMODE_LimitArea_Horz;
}
- if ((m_pProperties->m_dwStyleExes & FWL_STYLEEXT_EDT_ReadOnly) ||
- (m_pProperties->m_dwStates & FWL_WGTSTATE_Disabled)) {
- params.dwMode |= FDE_TEXTEDITMODE_ReadOnly;
- }
IFWL_ThemeProvider* theme = GetAvailableTheme();
CFWL_ThemePart part;