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

Unified Diff: third_party/WebKit/Source/core/css/resolver/SharedStyleFinderTest.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/SharedStyleFinderTest.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/SharedStyleFinderTest.cpp b/third_party/WebKit/Source/core/css/resolver/SharedStyleFinderTest.cpp
index 8f0c48cbd65c81636015eb6587d64241cda3d9ea..16a4ff2a76cb6faca9ad5ce8e36825869f17e534 100644
--- a/third_party/WebKit/Source/core/css/resolver/SharedStyleFinderTest.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/SharedStyleFinderTest.cpp
@@ -4,6 +4,8 @@
#include "core/css/resolver/SharedStyleFinder.h"
+#include <memory>
+#include "bindings/core/v8/V8Binding.h"
#include "core/css/RuleFeature.h"
#include "core/css/RuleSet.h"
#include "core/css/parser/CSSParser.h"
@@ -15,7 +17,6 @@
#include "core/html/HTMLElement.h"
#include "core/testing/DummyPageHolder.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include <memory>
namespace blink {
@@ -35,7 +36,7 @@ class SharedStyleFinderTest : public ::testing::Test {
ShadowRootInit init;
init.setMode("open");
ShadowRoot* shadowRoot =
- host.attachShadow(ScriptState::forMainWorld(document().frame()), init,
+ host.attachShadow(toScriptStateForMainWorld(document().frame()), init,
ASSERT_NO_EXCEPTION);
EXPECT_TRUE(shadowRoot);
return *shadowRoot;

Powered by Google App Engine
This is Rietveld 408576698