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

Unified Diff: third_party/WebKit/Source/core/page/SpatialNavigation.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/page/SpatialNavigation.cpp
diff --git a/third_party/WebKit/Source/core/page/SpatialNavigation.cpp b/third_party/WebKit/Source/core/page/SpatialNavigation.cpp
index 78be6ff18cbbc8380d9d6c43e076144ffc5c5389..a3efe2d1a628f033eee3d917760e85623b07e8b3 100644
--- a/third_party/WebKit/Source/core/page/SpatialNavigation.cpp
+++ b/third_party/WebKit/Source/core/page/SpatialNavigation.cpp
@@ -159,7 +159,7 @@ bool hasOffscreenRect(Node* node, WebFocusType type)
// exposed after we scroll. Adjust the viewport to post-scrolling position.
// If the container has overflow:hidden, we cannot scroll, so we do not pass direction
// and we do not adjust for scrolling.
- int pixelsPerLineStep = ScrollableArea::pixelsPerLineStep(frameView->hostWindow());
+ int pixelsPerLineStep = ScrollableArea::pixelsPerLineStep(frameView->getHostWindow());
switch (type) {
case WebFocusTypeLeft:
containerViewportRect.setX(containerViewportRect.x() - pixelsPerLineStep);
@@ -197,7 +197,7 @@ bool scrollInDirection(LocalFrame* frame, WebFocusType type)
if (frame && canScrollInDirection(frame->document(), type)) {
int dx = 0;
int dy = 0;
- int pixelsPerLineStep = ScrollableArea::pixelsPerLineStep(frame->view()->hostWindow());
+ int pixelsPerLineStep = ScrollableArea::pixelsPerLineStep(frame->view()->getHostWindow());
switch (type) {
case WebFocusTypeLeft:
dx = - pixelsPerLineStep;
@@ -236,7 +236,7 @@ bool scrollInDirection(Node* container, WebFocusType type)
int dy = 0;
// TODO(leviw): Why are these values truncated (toInt) instead of rounding?
FrameView* frameView = container->document().view();
- int pixelsPerLineStep = ScrollableArea::pixelsPerLineStep(frameView ? frameView->hostWindow() : nullptr);
+ int pixelsPerLineStep = ScrollableArea::pixelsPerLineStep(frameView ? frameView->getHostWindow() : nullptr);
switch (type) {
case WebFocusTypeLeft:
dx = - std::min(pixelsPerLineStep, container->layoutBox()->scrollLeft().toInt());

Powered by Google App Engine
This is Rietveld 408576698