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

Unified Diff: third_party/WebKit/Source/core/editing/Editor.cpp

Issue 2849463005: Refactor ImageBuffer to make OffscreenCanvas match HTMLCanvasElement (Closed)
Patch Set: x Created 3 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/editing/Editor.cpp
diff --git a/third_party/WebKit/Source/core/editing/Editor.cpp b/third_party/WebKit/Source/core/editing/Editor.cpp
index af7ea1a083cd631336fb97bccde5a13b9e181619..8207eb6381b2216ff33bb1f6d3992c1edec8bb11 100644
--- a/third_party/WebKit/Source/core/editing/Editor.cpp
+++ b/third_party/WebKit/Source/core/editing/Editor.cpp
@@ -570,8 +570,9 @@ static PassRefPtr<Image> ImageFromNode(const Node& node) {
return nullptr;
if (layout_object->IsCanvas()) {
- return toHTMLCanvasElement(node).CopiedImage(
- kFrontBuffer, kPreferNoAcceleration, kSnapshotReasonCopyToClipboard);
+ return toHTMLCanvasElement(const_cast<Node&>(node))
+ .CopiedImage(kFrontBuffer, kPreferNoAcceleration,
+ kSnapshotReasonCopyToClipboard);
}
if (layout_object->IsImage()) {
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSStyleImageValue.h ('k') | third_party/WebKit/Source/core/frame/ImageBitmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698