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

Unified Diff: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h

Issue 1928043002: Add drawImage() originClean() getSecurityOrigin() to OffscreenCanvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: drawImage API added to interface listing Created 4 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/offscreencanvas/OffscreenCanvas.h
diff --git a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
index f97398d3001858850fb96e32c7d8c873e1d3c044..f6e592a7737d633085ef4a1abf87ebe07ae3ee42 100644
--- a/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
+++ b/third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h
@@ -43,6 +43,9 @@ public:
static void registerRenderingContextFactory(PassOwnPtr<CanvasRenderingContextFactory>);
+ bool originClean() const;
+ void setOriginTainted() { m_originClean = false; }
+
DECLARE_VIRTUAL_TRACE();
private:
@@ -56,6 +59,8 @@ private:
int m_canvasId = -1; // DOMNodeIds starts from 0, using -1 to indicate no associated canvas element.
IntSize m_size;
bool m_isNeutered = false;
+
+ bool m_originClean;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698