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

Unified Diff: third_party/WebKit/Source/core/css/ActiveStyleSheetsTest.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/ActiveStyleSheetsTest.cpp
diff --git a/third_party/WebKit/Source/core/css/ActiveStyleSheetsTest.cpp b/third_party/WebKit/Source/core/css/ActiveStyleSheetsTest.cpp
index 1007d24c51d26270f4ef417d1313d44a02639648..d7cc3649ceb78b62c1eba7264614bbd00dd9a866 100644
--- a/third_party/WebKit/Source/core/css/ActiveStyleSheetsTest.cpp
+++ b/third_party/WebKit/Source/core/css/ActiveStyleSheetsTest.cpp
@@ -4,6 +4,7 @@
#include "core/css/ActiveStyleSheets.h"
+#include "bindings/core/v8/V8Binding.h"
#include "core/css/CSSStyleSheet.h"
#include "core/css/MediaQueryEvaluator.h"
#include "core/css/StyleSheetContents.h"
@@ -49,7 +50,7 @@ ShadowRoot& ApplyRulesetsTest::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