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

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: Updated patch after splitting Created 5 years, 10 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 650e9a695a8de9391f3bb0a744117e69aaeacc14..9129912df4f2394619c541acace6ec8150b61f41 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);
}
@@ -897,7 +897,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);
}

Powered by Google App Engine
This is Rietveld 408576698