Index: Source/core/html/HTMLFormControlElement.cpp |
diff --git a/Source/core/html/HTMLFormControlElement.cpp b/Source/core/html/HTMLFormControlElement.cpp |
index 5bfb04be9edbf558843ba71d9a32b5c60b9addf3..aebab57da515612e346b4cf2b0efa8168449360f 100644 |
--- a/Source/core/html/HTMLFormControlElement.cpp |
+++ b/Source/core/html/HTMLFormControlElement.cpp |
@@ -149,7 +149,7 @@ void HTMLFormControlElement::parseAttribute(const QualifiedName& name, const Ato |
setNeedsWillValidateCheck(); |
setNeedsStyleRecalc(SubtreeStyleChange); |
if (renderer() && renderer()->style()->hasAppearance()) |
- RenderTheme::theme().stateChanged(renderer(), ReadOnlyState); |
+ RenderTheme::theme().stateChanged(renderer(), ReadOnlyControlState); |
} |
} else if (name == requiredAttr) { |
bool wasRequired = m_isRequired; |
@@ -169,7 +169,7 @@ void HTMLFormControlElement::disabledAttributeChanged() |
setNeedsWillValidateCheck(); |
didAffectSelector(AffectedSelectorDisabled | AffectedSelectorEnabled); |
if (renderer() && renderer()->style()->hasAppearance()) |
- RenderTheme::theme().stateChanged(renderer(), EnabledState); |
+ RenderTheme::theme().stateChanged(renderer(), EnabledControlState); |
if (isDisabledFormControl() && treeScope().adjustedFocusedElement() == this) { |
// We might want to call blur(), but it's dangerous to dispatch events |
// here. |