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

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

Issue 340273003: Rename innerTextElement/Value used in <input> and <textarea> to innerEditor. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | Source/core/html/HTMLInputElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/SpellChecker.cpp
diff --git a/Source/core/editing/SpellChecker.cpp b/Source/core/editing/SpellChecker.cpp
index d54c5f84e59658a94118e694fd6dcc9b9b6f9a10..2e941caa278fc1c75312e66a4e6327d6d5b4ad08 100644
--- a/Source/core/editing/SpellChecker.cpp
+++ b/Source/core/editing/SpellChecker.cpp
@@ -129,7 +129,7 @@ void SpellChecker::didBeginEditing(Element* element)
if (isHTMLTextFormControlElement(*element)) {
HTMLTextFormControlElement* textControl = toHTMLTextFormControlElement(element);
parent = textControl;
- element = textControl->innerTextElement();
+ element = textControl->innerEditorElement();
isTextField = isHTMLInputElement(*textControl) && toHTMLInputElement(*textControl).isTextField();
}
@@ -702,11 +702,11 @@ void SpellChecker::didEndEditingOnTextField(Element* e)
// Prevent new ones from appearing too.
m_spellCheckRequester->cancelCheck();
HTMLTextFormControlElement* textFormControlElement = toHTMLTextFormControlElement(e);
- HTMLElement* innerText = textFormControlElement->innerTextElement();
+ HTMLElement* innerEditor = textFormControlElement->innerEditorElement();
DocumentMarker::MarkerTypes markerTypes(DocumentMarker::Spelling);
if (isGrammarCheckingEnabled() || unifiedTextCheckerEnabled())
markerTypes.add(DocumentMarker::Grammar);
- for (Node* node = innerText; node; node = NodeTraversal::next(*node, innerText)) {
+ for (Node* node = innerEditor; node; node = NodeTraversal::next(*node, innerEditor)) {
m_frame.document()->markers().removeMarkers(node, markerTypes);
}
}
« no previous file with comments | « no previous file | Source/core/html/HTMLInputElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698