| Index: third_party/WebKit/Source/web/tests/TextFinderTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/TextFinderTest.cpp b/third_party/WebKit/Source/web/tests/TextFinderTest.cpp
|
| index 2b7781e1a5ae2c32247873465e519a71f8ef6267..fccd7d6903e48ee8b8c05a7af0f4ea5b66678839 100644
|
| --- a/third_party/WebKit/Source/web/tests/TextFinderTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/TextFinderTest.cpp
|
| @@ -35,7 +35,7 @@ protected:
|
| WebLocalFrameImpl& frameImpl = *m_webViewHelper.webViewImpl()->mainFrameImpl();
|
| frameImpl.viewImpl()->resize(WebSize(640, 480));
|
| frameImpl.viewImpl()->updateAllLifecyclePhases();
|
| - m_document = RawPtr<Document>(frameImpl.document());
|
| + m_document = static_cast<Document*>(frameImpl.document());
|
| m_textFinder = &frameImpl.ensureTextFinder();
|
| }
|
|
|
| @@ -62,8 +62,8 @@ TextFinder& TextFinderTest::textFinder() const
|
|
|
| WebFloatRect TextFinderTest::findInPageRect(Node* startContainer, int startOffset, Node* endContainer, int endOffset)
|
| {
|
| - RawPtr<Range> range = Range::create(startContainer->document(), startContainer, startOffset, endContainer, endOffset);
|
| - return WebFloatRect(findInPageRectFromRange(range.get()));
|
| + Range* range = Range::create(startContainer->document(), startContainer, startOffset, endContainer, endOffset);
|
| + return WebFloatRect(findInPageRectFromRange(range));
|
| }
|
|
|
| TEST_F(TextFinderTest, FindTextSimple)
|
| @@ -186,7 +186,7 @@ TEST_F(TextFinderTest, FindTextNotFound)
|
| TEST_F(TextFinderTest, FindTextInShadowDOM)
|
| {
|
| document().body()->setInnerHTML("<b>FOO</b><i>foo</i>", ASSERT_NO_EXCEPTION);
|
| - RawPtr<ShadowRoot> shadowRoot = document().body()->createShadowRootInternal(ShadowRootType::V0, ASSERT_NO_EXCEPTION);
|
| + ShadowRoot* shadowRoot = document().body()->createShadowRootInternal(ShadowRootType::V0, ASSERT_NO_EXCEPTION);
|
| shadowRoot->setInnerHTML("<content select=\"i\"></content><u>Foo</u><content></content>", ASSERT_NO_EXCEPTION);
|
| Node* textInBElement = document().body()->firstChild()->firstChild();
|
| Node* textInIElement = document().body()->lastChild()->firstChild();
|
| @@ -300,7 +300,7 @@ TEST_F(TextFinderTest, ScopeTextMatchesSimple)
|
| TEST_F(TextFinderTest, ScopeTextMatchesWithShadowDOM)
|
| {
|
| document().body()->setInnerHTML("<b>FOO</b><i>foo</i>", ASSERT_NO_EXCEPTION);
|
| - RawPtr<ShadowRoot> shadowRoot = document().body()->createShadowRootInternal(ShadowRootType::V0, ASSERT_NO_EXCEPTION);
|
| + ShadowRoot* shadowRoot = document().body()->createShadowRootInternal(ShadowRootType::V0, ASSERT_NO_EXCEPTION);
|
| shadowRoot->setInnerHTML("<content select=\"i\"></content><u>Foo</u><content></content>", ASSERT_NO_EXCEPTION);
|
| Node* textInBElement = document().body()->firstChild()->firstChild();
|
| Node* textInIElement = document().body()->lastChild()->firstChild();
|
|
|