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

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

Issue 2387883002: Use float for scroll offset. (Closed)
Patch Set: Fix README.md Created 4 years, 2 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: 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 9d8ed1848c1b1099ebd1fdf9e3d6bb98c4f4baf0..0dda4f82e336e0b13d6aeb5a6f0300441fd2c417 100644
--- a/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
+++ b/third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp
@@ -228,9 +228,8 @@ void TextFieldInputType::forwardEvent(Event* event) {
if (PaintLayer* innerLayer = innerEditorLayoutObject->layer()) {
if (PaintLayerScrollableArea* innerScrollableArea =
innerLayer->getScrollableArea()) {
- innerScrollableArea->setScrollPosition(
- DoublePoint(innerScrollableArea->scrollOrigin()),
- ProgrammaticScroll, ScrollBehaviorInstant);
+ innerScrollableArea->setScrollOffset(ScrollOffset(0, 0),
+ ProgrammaticScroll);
}
}
}
« no previous file with comments | « third_party/WebKit/Source/core/html/ImageDocument.cpp ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698