Index: Source/core/editing/Editor.cpp |
diff --git a/Source/core/editing/Editor.cpp b/Source/core/editing/Editor.cpp |
index 28368083914da7a7da5e5b2470ded41c4102b47e..8b813a3a70958ffa8dda89c0dbdcd9a0497366e7 100644 |
--- a/Source/core/editing/Editor.cpp |
+++ b/Source/core/editing/Editor.cpp |
@@ -419,7 +419,7 @@ void Editor::writeSelectionToPasteboard(Pasteboard* pasteboard, Range* selectedR |
static PassRefPtr<Image> imageFromNode(const Node& node) |
{ |
node.document().updateLayoutIgnorePendingStylesheets(); |
- LayoutObject* renderer = node.renderer(); |
+ LayoutObject* renderer = node.layoutObject(); |
if (!renderer) |
return nullptr; |
@@ -1168,7 +1168,7 @@ PassRefPtrWillBeRawPtr<Range> Editor::findStringAndScrollToVisible(const String& |
if (!nextMatch) |
return nullptr; |
- nextMatch->firstNode()->renderer()->scrollRectToVisible(LayoutRect(nextMatch->boundingBox()), |
+ nextMatch->firstNode()->layoutObject()->scrollRectToVisible(LayoutRect(nextMatch->boundingBox()), |
ScrollAlignment::alignCenterIfNeeded, ScrollAlignment::alignCenterIfNeeded); |
return nextMatch.release(); |