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

Side by Side Diff: third_party/WebKit/Source/core/layout/ScrollAnchorTest.cpp

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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 #include "core/layout/ScrollAnchor.h" 5 #include "core/layout/ScrollAnchor.h"
6 6
7 #include "core/layout/LayoutBox.h" 7 #include "core/layout/LayoutBox.h"
8 #include "core/layout/LayoutTestHelper.h" 8 #include "core/layout/LayoutTestHelper.h"
9 #include "core/paint/PaintLayerScrollableArea.h" 9 #include "core/paint/PaintLayerScrollableArea.h"
10 10
(...skipping 13 matching lines...) Expand all
24 document().view()->updateAllLifecyclePhases(); 24 document().view()->updateAllLifecyclePhases();
25 } 25 }
26 26
27 ScrollableArea* layoutViewport() 27 ScrollableArea* layoutViewport()
28 { 28 {
29 return document().view()->layoutViewportScrollableArea(); 29 return document().view()->layoutViewportScrollableArea();
30 } 30 }
31 31
32 ScrollableArea* scrollerForElement(Element* element) 32 ScrollableArea* scrollerForElement(Element* element)
33 { 33 {
34 return toLayoutBox(element->layoutObject())->scrollableArea(); 34 return toLayoutBox(element->layoutObject())->getScrollableArea();
35 } 35 }
36 36
37 ScrollAnchor& scrollAnchor(ScrollableArea* scroller) 37 ScrollAnchor& scrollAnchor(ScrollableArea* scroller)
38 { 38 {
39 if (scroller->isFrameView()) 39 if (scroller->isFrameView())
40 return toFrameView(scroller)->scrollAnchor(); 40 return toFrameView(scroller)->scrollAnchor();
41 ASSERT(scroller->isPaintLayerScrollableArea()); 41 ASSERT(scroller->isPaintLayerScrollableArea());
42 return toPaintLayerScrollableArea(scroller)->scrollAnchor(); 42 return toPaintLayerScrollableArea(scroller)->scrollAnchor();
43 } 43 }
44 44
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 "<div id=c></div>" 226 "<div id=c></div>"
227 "<div id=d></div>"); 227 "<div id=d></div>");
228 228
229 checkCorner("a", Corner::BottomRight, DoublePoint(20, 20), DoubleSize(+400 , +300)); 229 checkCorner("a", Corner::BottomRight, DoublePoint(20, 20), DoubleSize(+400 , +300));
230 checkCorner("b", Corner::BottomLeft, DoublePoint(420, 20), DoubleSize(-400 , +300)); 230 checkCorner("b", Corner::BottomLeft, DoublePoint(420, 20), DoubleSize(-400 , +300));
231 checkCorner("c", Corner::TopRight, DoublePoint(20, 320), DoubleSize(+400 , -300)); 231 checkCorner("c", Corner::TopRight, DoublePoint(20, 320), DoubleSize(+400 , -300));
232 checkCorner("d", Corner::TopLeft, DoublePoint(420, 320), DoubleSize(-400 , -300)); 232 checkCorner("d", Corner::TopLeft, DoublePoint(420, 320), DoubleSize(-400 , -300));
233 } 233 }
234 234
235 } 235 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698