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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.h

Issue 2935813002: "Find" scrolling should be smoothly animated. (Closed)
Patch Set: Move smooth scroll logic to LayoutBox Created 3 years, 6 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/layout/LayoutBox.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h
index 9bccd21192a0b541172769db47c5eb40d013a712..5e553df951ad42d40cf2d9791eb869820a75e4b3 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.h
@@ -588,6 +588,13 @@ class CORE_EXPORT LayoutBox : public LayoutBoxModelObject {
void ScrollByRecursively(const ScrollOffset& delta);
// If makeVisibleInVisualViewport is set, the visual viewport will be scrolled
// if required to make the rect visible.
+ void ScrollRectToVisibleRecursive(const LayoutRect&,
bokan 2017/06/13 17:58:51 This should be private
+ const ScrollAlignment& align_x,
+ const ScrollAlignment& align_y,
+ ScrollType = kProgrammaticScroll,
+ bool make_visible_in_visual_viewport = true,
+ ScrollBehavior = kScrollBehaviorAuto);
+
void ScrollRectToVisible(const LayoutRect&,
const ScrollAlignment& align_x,
const ScrollAlignment& align_y,
« no previous file with comments | « third_party/WebKit/Source/core/editing/Editor.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698