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

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

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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/SpellChecker.cpp
diff --git a/Source/core/editing/SpellChecker.cpp b/Source/core/editing/SpellChecker.cpp
index 5d1e4676f8b585ec62bd35504cb9e49900a6a4b9..f99aaf9bf645c0cff89bdb7fca066ac385c3e3db 100644
--- a/Source/core/editing/SpellChecker.cpp
+++ b/Source/core/editing/SpellChecker.cpp
@@ -876,12 +876,12 @@ void SpellChecker::spellCheckOldSelection(const VisibleSelection& oldSelection,
static Node* findFirstMarkable(Node* node)
{
while (node) {
- if (!node->renderer())
+ if (!node->layoutObject())
return 0;
- if (node->renderer()->isText())
+ if (node->layoutObject()->isText())
return node;
- if (node->renderer()->isTextControl())
- node = toLayoutTextControl(node->renderer())->textFormControlElement()->visiblePositionForIndex(1).deepEquivalent().deprecatedNode();
+ if (node->layoutObject()->isTextControl())
+ node = toLayoutTextControl(node->layoutObject())->textFormControlElement()->visiblePositionForIndex(1).deepEquivalent().deprecatedNode();
else if (node->hasChildren())
node = node->firstChild();
else
« no previous file with comments | « Source/core/editing/SpellCheckRequester.cpp ('k') | Source/core/editing/SplitTextNodeContainingElementCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698