Index: Source/core/html/HTMLOptionElement.cpp |
diff --git a/Source/core/html/HTMLOptionElement.cpp b/Source/core/html/HTMLOptionElement.cpp |
index 2406e7cfe6401f11fc3ba0a87b98a948bc4f3241..892175c60f7746625fa28fe68bcd906cf85986a8 100644 |
--- a/Source/core/html/HTMLOptionElement.cpp |
+++ b/Source/core/html/HTMLOptionElement.cpp |
@@ -183,7 +183,7 @@ void HTMLOptionElement::parseAttribute(const QualifiedName& name, const AtomicSt |
bool oldDisabled = m_disabled; |
m_disabled = !value.isNull(); |
if (oldDisabled != m_disabled) { |
- didAffectSelector(AffectedSelectorDisabled | AffectedSelectorEnabled); |
+ didAffectSelector(StyleChangeReasonForTracing::fromAttribute(disabledAttr), AffectedSelectorDisabled | AffectedSelectorEnabled); |
if (renderer() && renderer()->style()->hasAppearance()) |
RenderTheme::theme().stateChanged(renderer(), EnabledControlState); |
} |
@@ -243,7 +243,7 @@ void HTMLOptionElement::setSelectedState(bool selected) |
return; |
m_isSelected = selected; |
- didAffectSelector(AffectedSelectorChecked); |
+ didAffectSelector(StyleChangeReasonForTracing::fromAttribute(selectedAttr), AffectedSelectorChecked); |
if (HTMLSelectElement* select = ownerSelectElement()) |
select->invalidateSelectedItems(); |