| Index: Source/core/html/forms/InputType.cpp
|
| diff --git a/Source/core/html/forms/InputType.cpp b/Source/core/html/forms/InputType.cpp
|
| index 94209d5a4d3f86afd7a5ab0769d57a9c47833424..db27fffaf59e6b1ca7c06a19e9c3c8f967bc386d 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.
|
| - LayoutStyle* style = element().layoutStyle();
|
| + const LayoutStyle* style = element().layoutStyle();
|
| if (style && style->visibility() != HIDDEN)
|
| warnIfValueIsInvalid(value);
|
| }
|
| @@ -892,7 +892,7 @@ void InputType::stepUpFromRenderer(int n)
|
|
|
| void InputType::countUsageIfVisible(UseCounter::Feature feature) const
|
| {
|
| - if (LayoutStyle* style = element().layoutStyle()) {
|
| + if (const LayoutStyle* style = element().layoutStyle()) {
|
| if (style->visibility() != HIDDEN)
|
| UseCounter::count(element().document(), feature);
|
| }
|
|
|