summaryrefslogtreecommitdiffstats
path: root/layout/forms/nsNumberControlFrame.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-08-29 11:54:27 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-08-29 11:54:27 +0200
commit693656e99bf4a7e3a495472cef142411cfd332a1 (patch)
tree7b930de9bf95564e258450ef7185cc5ca2ebdd4d /layout/forms/nsNumberControlFrame.cpp
parentcc0e6c7ece15c41d6b6714d8c9b08a584c68c872 (diff)
downloadUXP-693656e99bf4a7e3a495472cef142411cfd332a1.tar
UXP-693656e99bf4a7e3a495472cef142411cfd332a1.tar.gz
UXP-693656e99bf4a7e3a495472cef142411cfd332a1.tar.lz
UXP-693656e99bf4a7e3a495472cef142411cfd332a1.tar.xz
UXP-693656e99bf4a7e3a495472cef142411cfd332a1.zip
Sync disabled state of number control regardless of appearance.
Diffstat (limited to 'layout/forms/nsNumberControlFrame.cpp')
-rw-r--r--layout/forms/nsNumberControlFrame.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/layout/forms/nsNumberControlFrame.cpp b/layout/forms/nsNumberControlFrame.cpp
index 74dec2bea..9724109cb 100644
--- a/layout/forms/nsNumberControlFrame.cpp
+++ b/layout/forms/nsNumberControlFrame.cpp
@@ -430,6 +430,8 @@ nsNumberControlFrame::CreateAnonymousContent(nsTArray<ContentInfo>& aElements)
nsContentUtils::AddScriptRunner(focusJob);
}
+ SyncDisabledState();
+
if (StyleDisplay()->mAppearance == NS_THEME_TEXTFIELD) {
// The author has elected to hide the spinner by setting this
// -moz-appearance. We will reframe if it changes.
@@ -461,8 +463,6 @@ nsNumberControlFrame::CreateAnonymousContent(nsTArray<ContentInfo>& aElements)
CSSPseudoElementType::mozNumberSpinDown,
spinBoxCI.mStyleContext);
- SyncDisabledState();
-
return rv;
}