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

Unified Diff: third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp

Issue 2493673002: Synchronize OffscreenCanvas content with the placeholder canvas (Closed)
Patch Set: fix obsolete test Created 4 years, 1 month 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/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
diff --git a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
index 72000926bf2f48aeef54bd80c41870358ee995d4..4599d147eaff4bf69836dff08758138327d80ca2 100644
--- a/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
+++ b/third_party/WebKit/Source/modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.cpp
@@ -49,7 +49,7 @@ void OffscreenCanvasRenderingContext2D::commit(ScriptState* scriptState,
ExceptionState& exceptionState) {
UseCounter::Feature feature = UseCounter::OffscreenCanvasCommit2D;
UseCounter::count(scriptState->getExecutionContext(), feature);
- if (getOffscreenCanvas()->getAssociatedCanvasId() < 0) {
+ if (!getOffscreenCanvas()->hasPlaceholderCanvas()) {
// If an OffscreenCanvas has no associated canvas Id, it indicates that
// it is not an OffscreenCanvas created by transfering control from html
// canvas.

Powered by Google App Engine
This is Rietveld 408576698