| Index: third_party/WebKit/Source/core/page/FocusControllerTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/page/FocusControllerTest.cpp b/third_party/WebKit/Source/core/page/FocusControllerTest.cpp
|
| index 2d5ec7b84eeb270e2e062b4e778aad400bb281ed..33323877b633d192e452bfd082577491f046c244 100644
|
| --- a/third_party/WebKit/Source/core/page/FocusControllerTest.cpp
|
| +++ b/third_party/WebKit/Source/core/page/FocusControllerTest.cpp
|
| @@ -4,11 +4,12 @@
|
|
|
| #include "core/page/FocusController.h"
|
|
|
| +#include <memory>
|
| +#include "bindings/core/v8/V8Binding.h"
|
| #include "core/dom/shadow/ShadowRootInit.h"
|
| #include "core/html/HTMLElement.h"
|
| #include "core/testing/DummyPageHolder.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| -#include <memory>
|
|
|
| namespace blink {
|
|
|
| @@ -46,7 +47,7 @@ TEST_F(FocusControllerTest, DoNotCrash1) {
|
| Element* host = toElement(document().body()->firstChild());
|
| ShadowRootInit init;
|
| init.setMode("open");
|
| - host->attachShadow(ScriptState::forMainWorld(document().frame()), init,
|
| + host->attachShadow(toScriptStateForMainWorld(document().frame()), init,
|
| ASSERT_NO_EXCEPTION);
|
| // "This test is for crbug.com/609012"
|
| Node* text = host->nextSibling();
|
| @@ -73,7 +74,7 @@ TEST_F(FocusControllerTest, DoNotCrash2) {
|
| Element* host = toElement(text->nextSibling());
|
| ShadowRootInit init;
|
| init.setMode("open");
|
| - host->attachShadow(ScriptState::forMainWorld(document().frame()), init,
|
| + host->attachShadow(toScriptStateForMainWorld(document().frame()), init,
|
| ASSERT_NO_EXCEPTION);
|
|
|
| // Set sequential focus navigation point at text node.
|
|
|