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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 markMisspellingsAndBadGrammar(oldAdjacentWords, true, selectedSenten ce); 869 markMisspellingsAndBadGrammar(oldAdjacentWords, true, selectedSenten ce);
870 } else { 870 } else {
871 markMisspellingsAndBadGrammar(oldAdjacentWords, false, oldAdjacentWo rds); 871 markMisspellingsAndBadGrammar(oldAdjacentWords, false, oldAdjacentWo rds);
872 } 872 }
873 } 873 }
874 } 874 }
875 875
876 static Node* findFirstMarkable(Node* node) 876 static Node* findFirstMarkable(Node* node)
877 { 877 {
878 while (node) { 878 while (node) {
879 if (!node->renderer()) 879 if (!node->layoutObject())
880 return 0; 880 return 0;
881 if (node->renderer()->isText()) 881 if (node->layoutObject()->isText())
882 return node; 882 return node;
883 if (node->renderer()->isTextControl()) 883 if (node->layoutObject()->isTextControl())
884 node = toLayoutTextControl(node->renderer())->textFormControlElement ()->visiblePositionForIndex(1).deepEquivalent().deprecatedNode(); 884 node = toLayoutTextControl(node->layoutObject())->textFormControlEle ment()->visiblePositionForIndex(1).deepEquivalent().deprecatedNode();
885 else if (node->hasChildren()) 885 else if (node->hasChildren())
886 node = node->firstChild(); 886 node = node->firstChild();
887 else 887 else
888 node = node->nextSibling(); 888 node = node->nextSibling();
889 } 889 }
890 890
891 return 0; 891 return 0;
892 } 892 }
893 893
894 bool SpellChecker::selectionStartHasMarkerFor(DocumentMarker::MarkerType markerT ype, int from, int length) const 894 bool SpellChecker::selectionStartHasMarkerFor(DocumentMarker::MarkerType markerT ype, int from, int length) const
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
944 m_spellCheckRequester->requestCheckingFor(SpellCheckRequest::create(TextChec kingTypeSpelling | TextCheckingTypeGrammar, TextCheckingProcessBatch, rangeToChe ck, rangeToCheck)); 944 m_spellCheckRequester->requestCheckingFor(SpellCheckRequest::create(TextChec kingTypeSpelling | TextCheckingTypeGrammar, TextCheckingProcessBatch, rangeToChe ck, rangeToCheck));
945 } 945 }
946 946
947 DEFINE_TRACE(SpellChecker) 947 DEFINE_TRACE(SpellChecker)
948 { 948 {
949 visitor->trace(m_frame); 949 visitor->trace(m_frame);
950 visitor->trace(m_spellCheckRequester); 950 visitor->trace(m_spellCheckRequester);
951 } 951 }
952 952
953 } // namespace blink 953 } // namespace blink
OLDNEW
« 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