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

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

Issue 1115353002: Update renderer to layoutObject in core/html. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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/InputType.cpp ('k') | Source/core/html/shadow/DateTimeEditElement.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 5c25aa132ba3191f9881e29f3a7d64035aae86b4..36f77198c7b432d58bb2d0ff3bc9633b292ad44c 100644
--- a/Source/core/html/forms/TextFieldInputType.cpp
+++ b/Source/core/html/forms/TextFieldInputType.cpp
@@ -228,21 +228,21 @@ void TextFieldInputType::forwardEvent(Event* event)
}
if (element().layoutObject() && (event->isMouseEvent() || event->isDragEvent() || event->hasInterface(EventNames::WheelEvent) || event->type() == EventTypeNames::blur || event->type() == EventTypeNames::focus)) {
- LayoutTextControlSingleLine* renderTextControl = toLayoutTextControlSingleLine(element().layoutObject());
+ LayoutTextControlSingleLine* layoutTextControl = toLayoutTextControlSingleLine(element().layoutObject());
if (event->type() == EventTypeNames::blur) {
- if (LayoutBox* innerEditorRenderer = element().innerEditorElement()->layoutBox()) {
+ if (LayoutBox* innerEditorLayoutObject = element().innerEditorElement()->layoutBox()) {
// FIXME: This class has no need to know about DeprecatedPaintLayer!
- if (DeprecatedPaintLayer* innerLayer = innerEditorRenderer->layer()) {
+ if (DeprecatedPaintLayer* innerLayer = innerEditorLayoutObject->layer()) {
if (DeprecatedPaintLayerScrollableArea* innerScrollableArea = innerLayer->scrollableArea()) {
- IntSize scrollOffset(!renderTextControl->style()->isLeftToRightDirection() ? innerScrollableArea->scrollWidth().toInt() : 0, 0);
+ IntSize scrollOffset(!layoutTextControl->style()->isLeftToRightDirection() ? innerScrollableArea->scrollWidth().toInt() : 0, 0);
innerScrollableArea->scrollToOffset(scrollOffset, ScrollOffsetClamped);
}
}
}
- renderTextControl->capsLockStateMayHaveChanged();
+ layoutTextControl->capsLockStateMayHaveChanged();
} else if (event->type() == EventTypeNames::focus) {
- renderTextControl->capsLockStateMayHaveChanged();
+ layoutTextControl->capsLockStateMayHaveChanged();
}
element().forwardEvent(event);
@@ -511,12 +511,12 @@ void TextFieldInputType::didSetValueByUserEdit(ValueChangeState state)
void TextFieldInputType::spinButtonStepDown()
{
- stepUpFromRenderer(-1);
+ stepUpFromLayoutObject(-1);
}
void TextFieldInputType::spinButtonStepUp()
{
- stepUpFromRenderer(1);
+ stepUpFromLayoutObject(1);
}
void TextFieldInputType::updateView()
« no previous file with comments | « Source/core/html/forms/InputType.cpp ('k') | Source/core/html/shadow/DateTimeEditElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698