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()) { |