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

Unified Diff: Source/core/html/forms/TextFieldInputType.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/TextFieldInputType.cpp
diff --git a/Source/core/html/forms/TextFieldInputType.cpp b/Source/core/html/forms/TextFieldInputType.cpp
index 9be541e24b28b93753d28523b51bb055e8cfdc63..9c3f0d83763c8f974b1fbda420786ba42e656997 100644
--- a/Source/core/html/forms/TextFieldInputType.cpp
+++ b/Source/core/html/forms/TextFieldInputType.cpp
@@ -64,7 +64,7 @@ private:
inline DataListIndicatorElement(Document& document) : HTMLDivElement(document) { }
inline HTMLInputElement* hostInput() const { return toHTMLInputElement(shadowHost()); }
- virtual RenderObject* createRenderer(RenderStyle*) override
+ virtual RenderObject* createRenderer(const RenderStyle*) override
{
return new RenderDetailsMarker(this);
}
@@ -267,7 +267,7 @@ bool TextFieldInputType::shouldSubmitImplicitly(Event* event)
return (event->type() == EventTypeNames::textInput && event->hasInterface(EventNames::TextEvent) && toTextEvent(event)->data() == "\n") || InputType::shouldSubmitImplicitly(event);
}
-RenderObject* TextFieldInputType::createRenderer(RenderStyle*) const
+RenderObject* TextFieldInputType::createRenderer(const RenderStyle*) const
{
return new RenderTextControlSingleLine(&element());
}

Powered by Google App Engine
This is Rietveld 408576698