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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.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/modules/canvas2d/CanvasRenderingContext2DTest.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp
index c820db7988a6f51a4e8f94c01fdf76bca3935e42..4b99f9ff12b22b80afd0ee0a0aad7b543754e299 100644
--- a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DTest.cpp
@@ -5,6 +5,7 @@
#include "modules/canvas2d/CanvasRenderingContext2D.h"
#include <memory>
+#include "bindings/core/v8/V8Binding.h"
#include "bindings/core/v8/V8BindingForTesting.h"
#include "core/dom/Document.h"
#include "core/frame/FrameView.h"
@@ -125,7 +126,7 @@ class CanvasRenderingContext2DTest : public ::testing::Test {
String colorSpace = String(),
LinearPixelMathState = LinearPixelMathDisabled);
ScriptState* getScriptState() {
- return ScriptState::forMainWorld(m_canvasElement->frame());
+ return toScriptStateForMainWorld(m_canvasElement->frame());
}
void TearDown();

Powered by Google App Engine
This is Rietveld 408576698