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

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

Issue 1865813002: Remove RawPtr from Source/web/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 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/web/tests/TouchActionTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/TouchActionTest.cpp b/third_party/WebKit/Source/web/tests/TouchActionTest.cpp
index 3b792ff21e0f309265336b189d1f81480b3d2000..f9f5903a8327e4b9fdca58f17d11cc5dccd9aa5e 100644
--- a/third_party/WebKit/Source/web/tests/TouchActionTest.cpp
+++ b/third_party/WebKit/Source/web/tests/TouchActionTest.cpp
@@ -145,7 +145,7 @@ void TouchActionTest::runTouchActionTest(std::string file)
// scenario.
WebView* webView = setupTest(file, client);
- Persistent<Document> document = static_cast<RawPtr<Document>>(webView->mainFrame()->document());
+ Persistent<Document> document = static_cast<Document*>(webView->mainFrame()->document());
runTestOnTree(document.get(), webView, client);
m_webViewHelper.reset(); // Explicitly reset to break dependency on locally scoped client.
@@ -160,7 +160,7 @@ void TouchActionTest::runShadowDOMTest(std::string file)
TrackExceptionState es;
// Oilpan: see runTouchActionTest() comment why these are persistent references.
- Persistent<Document> document = static_cast<RawPtr<Document>>(webView->mainFrame()->document());
+ Persistent<Document> document = static_cast<Document*>(webView->mainFrame()->document());
Persistent<StaticElementList> hostNodes = document->querySelectorAll("[shadow-host]", es);
ASSERT_FALSE(es.hadException());
ASSERT_GE(hostNodes->length(), 1u);
@@ -186,7 +186,7 @@ void TouchActionTest::runIFrameTest(std::string file)
for (; curFrame; curFrame = curFrame->nextSibling()) {
// Oilpan: see runTouchActionTest() comment why these are persistent references.
- Persistent<Document> contentDoc = static_cast<RawPtr<Document>>(curFrame->document());
+ Persistent<Document> contentDoc = static_cast<Document*>(curFrame->document());
runTestOnTree(contentDoc.get(), webView, client);
}
@@ -204,7 +204,7 @@ WebView* TouchActionTest::setupTest(std::string file, TouchActionTrackingWebView
// Scroll to verify the code properly transforms windows to client co-ords.
const int kScrollOffset = 100;
- RawPtr<Document> document = static_cast<RawPtr<Document>>(webView->mainFrame()->document());
+ Document* document = static_cast<Document*>(webView->mainFrame()->document());
document->frame()->view()->setScrollPosition(IntPoint(0, kScrollOffset), ProgrammaticScroll);
return webView;
« no previous file with comments | « third_party/WebKit/Source/web/tests/TopControlsTest.cpp ('k') | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698