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

Unified Diff: Source/web/tests/TouchActionTest.cpp

Issue 967213004: Removed FrameView's windowToContents and contentsToWindow methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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: Source/web/tests/TouchActionTest.cpp
diff --git a/Source/web/tests/TouchActionTest.cpp b/Source/web/tests/TouchActionTest.cpp
index c7efed9ada54aa16712e77d7cdc6064148014a37..b69bed518011db25a759876f7992ca924052fb7b 100644
--- a/Source/web/tests/TouchActionTest.cpp
+++ b/Source/web/tests/TouchActionTest.cpp
@@ -259,7 +259,7 @@ void TouchActionTest::runTestOnTree(ContainerNode* root, WebView* webView, Touch
// we intended. This is the easiest way for a test to be broken, but has nothing really
// to do with touch action.
// Note that we can't use WebView's hit test API because it doesn't look into shadow DOM.
- IntPoint docPoint(frameView->windowToContents(clientPoint));
+ IntPoint docPoint(frameView->rootFrameToContents(clientPoint));
HitTestResult result = frame->eventHandler().hitTestResultAtPoint(docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active);
ASSERT_EQ(element, result.innerElement()) << "Unexpected hit test result " << failureContextPos
<< " Got element: \"" << result.innerElement()->outerHTML().stripWhiteSpace().left(80).ascii().data() << "\""

Powered by Google App Engine
This is Rietveld 408576698