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

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

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase to master Created 5 years, 10 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: 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();

Powered by Google App Engine
This is Rietveld 408576698