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

Unified Diff: Source/core/editing/Editor.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/editing/Editor.cpp
diff --git a/Source/core/editing/Editor.cpp b/Source/core/editing/Editor.cpp
index d317fc8515b7664a67605f732448e845cccd1797..f19039bc7a66816b9b262a91be455c7af3027087 100644
--- a/Source/core/editing/Editor.cpp
+++ b/Source/core/editing/Editor.cpp
@@ -421,7 +421,7 @@ void Editor::writeSelectionToPasteboard(Pasteboard* pasteboard, Range* selectedR
pasteboard->writeHTML(html, url, plainText, canSmartCopyOrDelete());
}
-static Image* imageFromNode(const Node& node)
+static PassRefPtr<Image> imageFromNode(const Node& node)
{
node.document().updateLayoutIgnorePendingStylesheets();
RenderObject* renderer = node.renderer();

Powered by Google App Engine
This is Rietveld 408576698