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

Unified Diff: third_party/WebKit/Source/core/css/resolver/ScopedStyleResolverTest.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/css/resolver/ScopedStyleResolverTest.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolverTest.cpp b/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolverTest.cpp
index 689e4b45e34433bad1104b20cbbf8dd9c4727deb..8b51f09ac25e3637e7060190fd26af0b171cb95b 100644
--- a/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolverTest.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/ScopedStyleResolverTest.cpp
@@ -4,6 +4,7 @@
#include "core/css/resolver/ScopedStyleResolver.h"
+#include "bindings/core/v8/V8Binding.h"
#include "core/dom/shadow/ShadowRoot.h"
#include "core/dom/shadow/ShadowRootInit.h"
#include "core/frame/FrameView.h"
@@ -31,7 +32,7 @@ ShadowRoot& ScopedStyleResolverTest::attachShadow(Element& host) {
ShadowRootInit init;
init.setMode("open");
ShadowRoot* shadowRoot = host.attachShadow(
- ScriptState::forMainWorld(document().frame()), init, ASSERT_NO_EXCEPTION);
+ toScriptStateForMainWorld(document().frame()), init, ASSERT_NO_EXCEPTION);
EXPECT_TRUE(shadowRoot);
return *shadowRoot;
}

Powered by Google App Engine
This is Rietveld 408576698