Sync disabled state of number control regardless of appearance.

This commit is contained in:
wolfbeast 2018-08-29 11:54:27 +02:00 • committed by Roy Tam
commit 7438687cda

View file

@ -430,6 +430,8 @@ nsNumberControlFrame::CreateAnonymousContent(nsTArray<ContentInfo>& aElements)
nsContentUtils::AddScriptRunner(focusJob); nsContentUtils::AddScriptRunner(focusJob);
} }
SyncDisabledState();
if (StyleDisplay()->mAppearance == NS_THEME_TEXTFIELD) { if (StyleDisplay()->mAppearance == NS_THEME_TEXTFIELD) {
// The author has elected to hide the spinner by setting this // The author has elected to hide the spinner by setting this
// -moz-appearance. We will reframe if it changes. // -moz-appearance. We will reframe if it changes.
@ -461,8 +463,6 @@ nsNumberControlFrame::CreateAnonymousContent(nsTArray<ContentInfo>& aElements)
CSSPseudoElementType::mozNumberSpinDown, CSSPseudoElementType::mozNumberSpinDown,
spinBoxCI.mStyleContext); spinBoxCI.mStyleContext);
SyncDisabledState();
return rv; return rv;
} }