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

Unified Diff: third_party/WebKit/Source/web/tests/LinkSelectionTest.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/LinkSelectionTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp b/third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp
index 5693121f76d89dfa9c861adf961450848dc58a8e..a82e133a74db7c2da87c618205e002b9a3a54d35 100644
--- a/third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp
+++ b/third_party/WebKit/Source/web/tests/LinkSelectionTest.cpp
@@ -200,7 +200,7 @@ TEST_F(LinkSelectionTest, SingleClickWithAltStartsDownloadWhenTextSelected)
ASSERT_NE(nullptr, textToSelect);
// Select some page text outside the link element.
- const RawPtr<Range> rangeToSelect = Range::create(*document, textToSelect, 1, textToSelect, 20);
+ const Range* rangeToSelect = Range::create(*document, textToSelect, 1, textToSelect, 20);
const auto& selectionRect = rangeToSelect->boundingBox();
m_mainFrame->moveRangeSelection(selectionRect.minXMinYCorner(), selectionRect.maxXMaxYCorner());
EXPECT_FALSE(getSelectionText().isEmpty());
@@ -213,7 +213,7 @@ class LinkSelectionClickEventsTest : public LinkSelectionTestBase {
protected:
class MockEventListener final : public EventListener {
public:
- static RawPtr<MockEventListener> create()
+ static MockEventListener* create()
{
return new MockEventListener();
}
@@ -265,7 +265,7 @@ protected:
Persistent<Element> m_element;
} const listenersCleaner(&element);
- RawPtr<MockEventListener> eventHandler = MockEventListener::create();
+ MockEventListener* eventHandler = MockEventListener::create();
element.addEventListener(
doubleClickEvent ? EventTypeNames::dblclick : EventTypeNames::click,
eventHandler);
« no previous file with comments | « third_party/WebKit/Source/web/tests/KeyboardTest.cpp ('k') | third_party/WebKit/Source/web/tests/TextFinderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698