| Index: third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp b/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
|
| index 2ffecaa4015912209e1f077b875ccc746d2702e5..04e7e95366f6a0136ed2297eed95163c70bb80cb 100644
|
| --- a/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
|
| +++ b/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
|
| @@ -228,9 +228,13 @@
|
| if (PaintLayer* innerLayer = innerEditorLayoutObject->layer()) {
|
| if (PaintLayerScrollableArea* innerScrollableArea =
|
| innerLayer->getScrollableArea()) {
|
| - innerScrollableArea->setScrollPosition(
|
| - DoublePoint(innerScrollableArea->scrollOrigin()),
|
| - ProgrammaticScroll, ScrollBehaviorInstant);
|
| + IntSize scrollOffset(
|
| + !layoutTextControl->style()->isLeftToRightDirection()
|
| + ? innerScrollableArea->scrollWidth().toInt()
|
| + : 0,
|
| + 0);
|
| + innerScrollableArea->scrollToOffset(scrollOffset,
|
| + ScrollOffsetClamped);
|
| }
|
| }
|
| }
|
|
|