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

Unified Diff: third_party/WebKit/Source/core/page/FocusControllerTest.cpp

Issue 2796653003: Move ScriptState::forWorld/ScriptState::forMainWorld (Part 2) (Closed)
Patch Set: Rebase Created 3 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/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.

Powered by Google App Engine
This is Rietveld 408576698