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

Unified Diff: Source/core/testing/Internals.cpp

Issue 967213004: Removed FrameView's windowToContents and contentsToWindow methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 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
« no previous file with comments | « Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp ('k') | Source/web/ChromeClientImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 466a92a9cb2b3231c048308ed06e36f6dd754991..f0c308a4aa384e11cbd4b007701a7e48980ceb96 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -977,7 +977,7 @@ DOMPoint* Internals::touchPositionAdjustedToBestClickableNode(long x, long y, lo
IntPoint point(x + radius.width(), y + radius.height());
EventHandler& eventHandler = document->frame()->eventHandler();
- IntPoint hitTestPoint = document->frame()->view()->windowToContents(point);
+ IntPoint hitTestPoint = document->frame()->view()->rootFrameToContents(point);
HitTestResult result = eventHandler.hitTestResultAtPoint(hitTestPoint, HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::ListBased, LayoutSize(radius));
Node* targetNode = 0;
@@ -1004,7 +1004,7 @@ Node* Internals::touchNodeAdjustedToBestClickableNode(long x, long y, long width
IntPoint point(x + radius.width(), y + radius.height());
EventHandler& eventHandler = document->frame()->eventHandler();
- IntPoint hitTestPoint = document->frame()->view()->windowToContents(point);
+ IntPoint hitTestPoint = document->frame()->view()->rootFrameToContents(point);
HitTestResult result = eventHandler.hitTestResultAtPoint(hitTestPoint, HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::ListBased, LayoutSize(radius));
Node* targetNode = 0;
@@ -1027,7 +1027,7 @@ DOMPoint* Internals::touchPositionAdjustedToBestContextMenuNode(long x, long y,
IntPoint point(x + radius.width(), y + radius.height());
EventHandler& eventHandler = document->frame()->eventHandler();
- IntPoint hitTestPoint = document->frame()->view()->windowToContents(point);
+ IntPoint hitTestPoint = document->frame()->view()->rootFrameToContents(point);
HitTestResult result = eventHandler.hitTestResultAtPoint(hitTestPoint, HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::ListBased, LayoutSize(radius));
Node* targetNode = 0;
@@ -1054,7 +1054,7 @@ Node* Internals::touchNodeAdjustedToBestContextMenuNode(long x, long y, long wid
IntPoint point(x + radius.width(), y + radius.height());
EventHandler& eventHandler = document->frame()->eventHandler();
- IntPoint hitTestPoint = document->frame()->view()->windowToContents(point);
+ IntPoint hitTestPoint = document->frame()->view()->rootFrameToContents(point);
HitTestResult result = eventHandler.hitTestResultAtPoint(hitTestPoint, HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::ListBased, LayoutSize(radius));
Node* targetNode = 0;
« no previous file with comments | « Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp ('k') | Source/web/ChromeClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698