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); |
} |