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 af808c4718241e3dbd5dfe2d91c355bb6a489178..d9740656461467e5a97d76170298bfbcb41c7dac 100644 |
--- a/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp |
+++ b/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp |
@@ -227,13 +227,8 @@ void TextFieldInputType::forwardEvent(Event* event) { |
if (PaintLayer* innerLayer = innerEditorLayoutObject->layer()) { |
if (PaintLayerScrollableArea* innerScrollableArea = |
innerLayer->getScrollableArea()) { |
- IntSize scrollOffset( |
- !layoutTextControl->style()->isLeftToRightDirection() |
- ? innerScrollableArea->scrollWidth().toInt() |
- : 0, |
- 0); |
- innerScrollableArea->scrollToOffset(scrollOffset, |
- ScrollOffsetClamped); |
+ innerScrollableArea->setScrollPosition(DoublePoint(0, 0), |
+ ProgrammaticScroll); |
} |
} |
} |