| Index: Source/core/editing/Editor.cpp
|
| diff --git a/Source/core/editing/Editor.cpp b/Source/core/editing/Editor.cpp
|
| index e7a94da239887348ebb8aeb50caf3be92d9c37bf..41db7ddd8743f9356450a05b35713db2634b9993 100644
|
| --- a/Source/core/editing/Editor.cpp
|
| +++ b/Source/core/editing/Editor.cpp
|
| @@ -420,15 +420,15 @@ void Editor::writeSelectionToPasteboard()
|
| static PassRefPtr<Image> imageFromNode(const Node& node)
|
| {
|
| node.document().updateLayoutIgnorePendingStylesheets();
|
| - LayoutObject* renderer = node.layoutObject();
|
| - if (!renderer)
|
| + LayoutObject* layoutObject = node.layoutObject();
|
| + if (!layoutObject)
|
| return nullptr;
|
|
|
| - if (renderer->isCanvas())
|
| + if (layoutObject->isCanvas())
|
| return toHTMLCanvasElement(node).copiedImage(FrontBuffer);
|
|
|
| - if (renderer->isImage()) {
|
| - LayoutImage* layoutImage = toLayoutImage(renderer);
|
| + if (layoutObject->isImage()) {
|
| + LayoutImage* layoutImage = toLayoutImage(layoutObject);
|
| if (!layoutImage)
|
| return nullptr;
|
|
|
|
|