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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp

Issue 2815313002: Reland of Move ScriptState::GetExecutionContext (Part 5) (Closed)
Patch Set: 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/BaseRenderingContext2D.cpp
diff --git a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
index a348ef06db6c6e6d72e4cf594580d66420d1f3c6..44ccdb3c9b161ec4abbb310eeca399318120e32c 100644
--- a/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
+++ b/third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp
@@ -9,6 +9,7 @@
#include "bindings/core/v8/ScriptState.h"
#include "core/css/cssom/CSSURLImageValue.h"
#include "core/css/parser/CSSParser.h"
+#include "core/dom/ExecutionContext.h"
#include "core/dom/NotShared.h"
#include "core/frame/ImageBitmap.h"
#include "core/html/HTMLCanvasElement.h"
@@ -1354,7 +1355,7 @@
}
if (OriginClean() &&
- WouldTaintOrigin(image_source, script_state->GetExecutionContext()))
+ WouldTaintOrigin(image_source, ExecutionContext::From(script_state)))
SetOriginTainted();
}
@@ -1469,7 +1470,7 @@
DCHECK(image_for_rendering);
bool origin_clean =
- !WouldTaintOrigin(image_source, script_state->GetExecutionContext());
+ !WouldTaintOrigin(image_source, ExecutionContext::From(script_state));
return CanvasPattern::Create(image_for_rendering.Release(), repeat_mode,
origin_clean);

Powered by Google App Engine
This is Rietveld 408576698