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

Unified Diff: Source/core/html/forms/TextFieldInputType.cpp

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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
« no previous file with comments | « Source/core/html/forms/SearchInputType.cpp ('k') | Source/core/html/shadow/ClearButtonElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/TextFieldInputType.cpp
diff --git a/Source/core/html/forms/TextFieldInputType.cpp b/Source/core/html/forms/TextFieldInputType.cpp
index 987a7afb6a3072702881d8f44d4b2d7fd3e0fa23..081d6499ac90d0ffe1b469fd60699f9821d511ee 100644
--- a/Source/core/html/forms/TextFieldInputType.cpp
+++ b/Source/core/html/forms/TextFieldInputType.cpp
@@ -227,8 +227,8 @@ void TextFieldInputType::forwardEvent(Event* event)
return;
}
- if (element().renderer() && (event->isMouseEvent() || event->isDragEvent() || event->hasInterface(EventNames::WheelEvent) || event->type() == EventTypeNames::blur || event->type() == EventTypeNames::focus)) {
- LayoutTextControlSingleLine* renderTextControl = toLayoutTextControlSingleLine(element().renderer());
+ if (element().layoutObject() && (event->isMouseEvent() || event->isDragEvent() || event->hasInterface(EventNames::WheelEvent) || event->type() == EventTypeNames::blur || event->type() == EventTypeNames::focus)) {
+ LayoutTextControlSingleLine* renderTextControl = toLayoutTextControlSingleLine(element().layoutObject());
if (event->type() == EventTypeNames::blur) {
if (LayoutBox* innerEditorRenderer = element().innerEditorElement()->layoutBox()) {
// FIXME: This class has no need to know about Layer!
@@ -484,7 +484,7 @@ String TextFieldInputType::convertFromVisibleValue(const String& visibleValue) c
void TextFieldInputType::subtreeHasChanged()
{
- ASSERT(element().renderer());
+ ASSERT(element().layoutObject());
bool wasChanged = element().wasChangedSinceLastFormControlChangeEvent();
element().setChangedSinceLastFormControlChangeEvent(true);
« no previous file with comments | « Source/core/html/forms/SearchInputType.cpp ('k') | Source/core/html/shadow/ClearButtonElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698