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

Side by Side Diff: third_party/WebKit/Source/core/frame/RootFrameViewport.h

Issue 2911103002: Revert of Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef RootFrameViewport_h 5 #ifndef RootFrameViewport_h
6 #define RootFrameViewport_h 6 #define RootFrameViewport_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "platform/scroll/ScrollableArea.h" 9 #include "platform/scroll/ScrollableArea.h"
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void DidUpdateVisualViewport(); 54 void DidUpdateVisualViewport();
55 55
56 // ScrollableArea Implementation 56 // ScrollableArea Implementation
57 bool IsRootFrameViewport() const override { return true; } 57 bool IsRootFrameViewport() const override { return true; }
58 void SetScrollOffset(const ScrollOffset&, 58 void SetScrollOffset(const ScrollOffset&,
59 ScrollType, 59 ScrollType,
60 ScrollBehavior = kScrollBehaviorInstant) override; 60 ScrollBehavior = kScrollBehaviorInstant) override;
61 LayoutRect ScrollIntoView(const LayoutRect& rect_in_content, 61 LayoutRect ScrollIntoView(const LayoutRect& rect_in_content,
62 const ScrollAlignment& align_x, 62 const ScrollAlignment& align_x,
63 const ScrollAlignment& align_y, 63 const ScrollAlignment& align_y,
64 bool is_smooth,
65 ScrollType = kProgrammaticScroll) override; 64 ScrollType = kProgrammaticScroll) override;
66 IntRect VisibleContentRect( 65 IntRect VisibleContentRect(
67 IncludeScrollbarsInRect = kExcludeScrollbars) const override; 66 IncludeScrollbarsInRect = kExcludeScrollbars) const override;
68 bool ShouldUseIntegerScrollOffset() const override; 67 bool ShouldUseIntegerScrollOffset() const override;
69 bool IsActive() const override; 68 bool IsActive() const override;
70 int ScrollSize(ScrollbarOrientation) const override; 69 int ScrollSize(ScrollbarOrientation) const override;
71 bool IsScrollCornerVisible() const override; 70 bool IsScrollCornerVisible() const override;
72 IntRect ScrollCornerRect() const override; 71 IntRect ScrollCornerRect() const override;
73 void UpdateScrollOffset(const ScrollOffset&, ScrollType) override; 72 void UpdateScrollOffset(const ScrollOffset&, ScrollType) override;
74 IntSize ScrollOffsetInt() const override; 73 IntSize ScrollOffsetInt() const override;
(...skipping 14 matching lines...) Expand all
89 GraphicsLayer* LayerForScrollCorner() const override; 88 GraphicsLayer* LayerForScrollCorner() const override;
90 int HorizontalScrollbarHeight( 89 int HorizontalScrollbarHeight(
91 OverlayScrollbarClipBehavior = 90 OverlayScrollbarClipBehavior =
92 kIgnorePlatformOverlayScrollbarSize) const override; 91 kIgnorePlatformOverlayScrollbarSize) const override;
93 int VerticalScrollbarWidth( 92 int VerticalScrollbarWidth(
94 OverlayScrollbarClipBehavior = 93 OverlayScrollbarClipBehavior =
95 kIgnorePlatformOverlayScrollbarSize) const override; 94 kIgnorePlatformOverlayScrollbarSize) const override;
96 ScrollResult UserScroll(ScrollGranularity, const FloatSize&) override; 95 ScrollResult UserScroll(ScrollGranularity, const FloatSize&) override;
97 bool ScrollAnimatorEnabled() const override; 96 bool ScrollAnimatorEnabled() const override;
98 PlatformChromeClient* GetChromeClient() const override; 97 PlatformChromeClient* GetChromeClient() const override;
99 SmoothScrollSequencer* GetSmoothScrollSequencer() const override;
100 void ServiceScrollAnimations(double) override; 98 void ServiceScrollAnimations(double) override;
101 void UpdateCompositorScrollAnimations() override; 99 void UpdateCompositorScrollAnimations() override;
102 void CancelProgrammaticScrollAnimation() override; 100 void CancelProgrammaticScrollAnimation() override;
103 ScrollBehavior ScrollBehaviorStyle() const override; 101 ScrollBehavior ScrollBehaviorStyle() const override;
104 void ClearScrollableArea() override; 102 void ClearScrollableArea() override;
105 LayoutBox* GetLayoutBox() const override; 103 LayoutBox* GetLayoutBox() const override;
106 FloatQuad LocalToVisibleContentQuad(const FloatQuad&, 104 FloatQuad LocalToVisibleContentQuad(const FloatQuad&,
107 const LayoutObject*, 105 const LayoutObject*,
108 unsigned = 0) const final; 106 unsigned = 0) const final;
109 RefPtr<WebTaskRunner> GetTimerTaskRunner() const final; 107 RefPtr<WebTaskRunner> GetTimerTaskRunner() const final;
(...skipping 27 matching lines...) Expand all
137 135
138 DEFINE_TYPE_CASTS(RootFrameViewport, 136 DEFINE_TYPE_CASTS(RootFrameViewport,
139 ScrollableArea, 137 ScrollableArea,
140 scrollableArea, 138 scrollableArea,
141 scrollableArea->IsRootFrameViewport(), 139 scrollableArea->IsRootFrameViewport(),
142 scrollableArea.IsRootFrameViewport()); 140 scrollableArea.IsRootFrameViewport());
143 141
144 } // namespace blink 142 } // namespace blink
145 143
146 #endif // RootFrameViewport_h 144 #endif // RootFrameViewport_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrameView.cpp ('k') | third_party/WebKit/Source/core/frame/RootFrameViewport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698