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

Unified Diff: Source/core/html/forms/InputType.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/forms/InputType.cpp
diff --git a/Source/core/html/forms/InputType.cpp b/Source/core/html/forms/InputType.cpp
index f8364203ae76ed3e890c2c3375d1e9ed9e3ba794..5757eba04ca1ef4a763cee281d06194de0540637 100644
--- a/Source/core/html/forms/InputType.cpp
+++ b/Source/core/html/forms/InputType.cpp
@@ -592,7 +592,7 @@ String InputType::sanitizeValue(const String& proposedValue) const
void InputType::warnIfValueIsInvalidAndElementIsVisible(const String& value) const
{
// Don't warn if the value is set in Modernizr.
- RenderStyle* style = element().renderStyle();
+ const RenderStyle* style = element().renderStyle();
if (style && style->visibility() != HIDDEN)
warnIfValueIsInvalid(value);
}
@@ -897,7 +897,7 @@ void InputType::stepUpFromRenderer(int n)
void InputType::countUsageIfVisible(UseCounter::Feature feature) const
{
- if (RenderStyle* style = element().renderStyle()) {
+ if (const RenderStyle* style = element().renderStyle()) {
if (style->visibility() != HIDDEN)
UseCounter::count(element().document(), feature);
}

Powered by Google App Engine
This is Rietveld 408576698