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

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: Rebase to master 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/TextFieldInputType.cpp
diff --git a/Source/core/html/forms/TextFieldInputType.cpp b/Source/core/html/forms/TextFieldInputType.cpp
index 9a0d60755aa9946bdce830107045ebafcad6a434..333dee48215efda35581fa27955ad252e8a8a50e 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);

Powered by Google App Engine
This is Rietveld 408576698