| Index: third_party/WebKit/Source/web/tests/WebViewTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/WebViewTest.cpp b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
|
| index c07d091f234cbf64543d83224afcdc608a41684a..e06309b501891374fbc7707f4241c828f4e8c050 100644
|
| --- a/third_party/WebKit/Source/web/tests/WebViewTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/WebViewTest.cpp
|
| @@ -3215,7 +3215,7 @@ TEST_F(WebViewTest, WebSubstringUtil)
|
| ASSERT_TRUE(!!result);
|
|
|
| WebPoint point(baselinePoint.x, frameView->height() - baselinePoint.y);
|
| - result = WebSubstringUtil::attributedWordAtPoint(webView, point, baselinePoint);
|
| + result = WebSubstringUtil::attributedWordAtPoint(webView, nullptr, point, baselinePoint);
|
| ASSERT_TRUE(!!result);
|
|
|
| webView->setZoomLevel(3);
|
| @@ -3224,7 +3224,7 @@ TEST_F(WebViewTest, WebSubstringUtil)
|
| ASSERT_TRUE(!!result);
|
|
|
| point = WebPoint(baselinePoint.x, frameView->height() - baselinePoint.y);
|
| - result = WebSubstringUtil::attributedWordAtPoint(webView, point, baselinePoint);
|
| + result = WebSubstringUtil::attributedWordAtPoint(webView, nullptr, point, baselinePoint);
|
| ASSERT_TRUE(!!result);
|
| }
|
|
|
| @@ -3244,7 +3244,7 @@ TEST_F(WebViewTest, WebSubstringUtilIframe)
|
| ASSERT_NE(result, nullptr);
|
|
|
| WebPoint point(baselinePoint.x, mainFrame->frameView()->height() - baselinePoint.y);
|
| - result = WebSubstringUtil::attributedWordAtPoint(webView, point, baselinePoint);
|
| + result = WebSubstringUtil::attributedWordAtPoint(webView, nullptr, point, baselinePoint);
|
| ASSERT_NE(result, nullptr);
|
|
|
| int yBeforeChange = baselinePoint.y;
|
| @@ -3254,7 +3254,7 @@ TEST_F(WebViewTest, WebSubstringUtilIframe)
|
| "document.querySelector('iframe').style.marginTop = '100px';"));
|
|
|
| point = WebPoint(point.x, point.y + 100);
|
| - result = WebSubstringUtil::attributedWordAtPoint(webView, point, baselinePoint);
|
| + result = WebSubstringUtil::attributedWordAtPoint(webView, nullptr, point, baselinePoint);
|
| ASSERT_NE(result, nullptr);
|
|
|
| EXPECT_EQ(yBeforeChange, baselinePoint.y + 100);
|
|
|