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

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

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix a crashers (everything is building!) Created 5 years, 11 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: Source/core/html/HTMLOptionElement.cpp
diff --git a/Source/core/html/HTMLOptionElement.cpp b/Source/core/html/HTMLOptionElement.cpp
index f2e91136c37ca1a254190d8f3c738f6fd705fe81..0897032909c199206bd62f5ebaf3094ef0c1ddb1 100644
--- a/Source/core/html/HTMLOptionElement.cpp
+++ b/Source/core/html/HTMLOptionElement.cpp
@@ -400,7 +400,7 @@ bool HTMLOptionElement::isDisplayNone() const
Element* parent = parentElement();
ASSERT(parent);
if (isHTMLOptGroupElement(*parent)) {
- RenderStyle* parentStyle = parent->renderStyle() ? parent->renderStyle() : parent->computedStyle();
+ const RenderStyle* parentStyle = parent->renderStyle() ? parent->renderStyle() : parent->computedStyle();
return !parentStyle || parentStyle->display() == NONE;
}
}

Powered by Google App Engine
This is Rietveld 408576698