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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTestHelper.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/layout/LayoutTestHelper.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp b/third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp
index 70d804296274d4459ef2f79d8dd4eb11c2910d16..2deb13155f8597e3856a4a9629ee13819a1d0171 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp
@@ -5,6 +5,7 @@
#include "core/layout/LayoutTestHelper.h"
#include "bindings/core/v8/StringOrArrayBufferOrArrayBufferView.h"
+#include "bindings/core/v8/V8Binding.h"
#include "core/css/FontFaceDescriptors.h"
#include "core/css/FontFaceSet.h"
#include "core/dom/DOMArrayBuffer.h"
@@ -84,7 +85,7 @@ void RenderingTest::loadAhem() {
FontFace* ahem =
FontFace::create(&document(), "Ahem", buffer, FontFaceDescriptors());
- ScriptState* scriptState = ScriptState::forMainWorld(&m_pageHolder->frame());
+ ScriptState* scriptState = toScriptStateForMainWorld(&m_pageHolder->frame());
DummyExceptionStateForTesting exceptionState;
FontFaceSet::from(document())
->addForBinding(scriptState, ahem, exceptionState);
« no previous file with comments | « third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp ('k') | third_party/WebKit/Source/core/loader/ImageLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698