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

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: Created 6 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: Source/core/editing/Editor.cpp
diff --git a/Source/core/editing/Editor.cpp b/Source/core/editing/Editor.cpp
index 992dd86450cecd876e0df4e63bdecd3417f8306b..7ee731b83622303f90eb854ca4fc8c05c47ebee0 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)
Justin Novosad 2014/11/27 00:49:30 Can you explain why this needs to be a RefPtr now?
dshwang 2014/11/27 15:12:11 Next patch removes it. I changed HTMLCanvasElemen
{
node.document().updateLayoutIgnorePendingStylesheets();
RenderObject* renderer = node.renderer();

Powered by Google App Engine
This is Rietveld 408576698