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

Unified Diff: third_party/WebKit/Source/core/page/SpatialNavigation.cpp

Issue 2824753005: Rename HostWindow to PlatformChromeClient (Closed)
Patch Set: mac Created 3 years, 8 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 ea4018c31cf562d7fe1488dbdeb054060c92806a..76fef104d7ff810488f37ef7fdf436901585d981 100644
--- a/third_party/WebKit/Source/core/page/SpatialNavigation.cpp
+++ b/third_party/WebKit/Source/core/page/SpatialNavigation.cpp
@@ -160,7 +160,7 @@ bool HasOffscreenRect(Node* node, WebFocusType type) {
// If the container has overflow:hidden, we cannot scroll, so we do not pass
// direction and we do not adjust for scrolling.
int pixels_per_line_step =
- ScrollableArea::PixelsPerLineStep(frame_view->GetHostWindow());
+ ScrollableArea::PixelsPerLineStep(frame_view->GetChromeClient());
switch (type) {
case kWebFocusTypeLeft:
container_viewport_rect.SetX(container_viewport_rect.X() -
@@ -204,7 +204,7 @@ bool ScrollInDirection(LocalFrame* frame, WebFocusType type) {
int dx = 0;
int dy = 0;
int pixels_per_line_step =
- ScrollableArea::PixelsPerLineStep(frame->View()->GetHostWindow());
+ ScrollableArea::PixelsPerLineStep(frame->View()->GetChromeClient());
switch (type) {
case kWebFocusTypeLeft:
dx = -pixels_per_line_step;
@@ -243,7 +243,7 @@ bool ScrollInDirection(Node* container, WebFocusType type) {
// TODO(leviw): Why are these values truncated (toInt) instead of rounding?
FrameView* frame_view = container->GetDocument().View();
int pixels_per_line_step = ScrollableArea::PixelsPerLineStep(
- frame_view ? frame_view->GetHostWindow() : nullptr);
+ frame_view ? frame_view->GetChromeClient() : nullptr);
switch (type) {
case kWebFocusTypeLeft:
dx = -pixels_per_line_step;
« no previous file with comments | « third_party/WebKit/Source/core/page/ChromeClient.cpp ('k') | third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698