Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Unified Diff: third_party/WebKit/Source/core/html/HTMLOptionElement.cpp

Issue 2001453002: Set ComputedStyle on Node and use that in buildOwnLayout() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@storage
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLOptionElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp b/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp
index 3f85a53534bdc75a37565030ea4201e165bcdc38..86da18e8c0eea267073c0fb8d30195b80f3bcfff 100644
--- a/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp
@@ -213,7 +213,7 @@ void HTMLOptionElement::parseAttribute(const QualifiedName& name, const AtomicSt
if (oldValue.isNull() != value.isNull()) {
pseudoStateChanged(CSSSelector::PseudoDisabled);
pseudoStateChanged(CSSSelector::PseudoEnabled);
- if (layoutObject())
+ if (hasLayoutObject())
LayoutTheme::theme().controlStateChanged(*layoutObject(), EnabledControlState);
}
} else if (name == selectedAttr) {

Powered by Google App Engine
This is Rietveld 408576698