diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-08-29 11:54:27 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-08-29 11:54:27 +0200 |
commit | 3602d4aba5b57da1215dba2c161c49ae6f4663bf (patch) | |
tree | 7b930de9bf95564e258450ef7185cc5ca2ebdd4d /layout/forms | |
parent | 89d91565cf308cf773e73f0e429ff492ff275fbb (diff) | |
download | uxp-3602d4aba5b57da1215dba2c161c49ae6f4663bf.tar.gz |
Sync disabled state of number control regardless of appearance.
Diffstat (limited to 'layout/forms')
-rw-r--r-- | layout/forms/nsNumberControlFrame.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layout/forms/nsNumberControlFrame.cpp b/layout/forms/nsNumberControlFrame.cpp index 74dec2bea8..9724109cb1 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; } |