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

Unified Diff: Source/core/css/CSSCanvasValue.cpp

Issue 758493004: canvas: make a temporary buffer when a context doesn't exist. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rename to isPaintable() Created 6 years 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: Source/core/css/CSSCanvasValue.cpp
diff --git a/Source/core/css/CSSCanvasValue.cpp b/Source/core/css/CSSCanvasValue.cpp
index 1c089e642f2702dc5b02cb83ffeeb865493511f6..5d776799a78e3039108152211fbca6d6d03d75bf 100644
--- a/Source/core/css/CSSCanvasValue.cpp
+++ b/Source/core/css/CSSCanvasValue.cpp
@@ -89,7 +89,7 @@ PassRefPtr<Image> CSSCanvasValue::image(RenderObject* renderer, const IntSize& /
{
ASSERT(clients().contains(renderer));
HTMLCanvasElement* elt = element(&renderer->document());
- if (!elt || !elt->buffer())
+ if (!elt)
return nullptr;
return elt->copiedImage(FrontBuffer);
}
« no previous file with comments | « no previous file | Source/core/editing/Editor.cpp » ('j') | Source/core/html/canvas/WebGLRenderingContextBase.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698