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

Unified Diff: Source/core/dom/Document.cpp

Issue 21694005: Spell check whole content of an editable element when it gets focused. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: async test added. Sync suffixed with -sync Created 7 years, 4 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/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 888dce0df80c89e8e39ddb4ff5dbda141dc35d82..87753afde19219ebb604592b28d85ea0881db5f9 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -3294,7 +3294,7 @@ bool Document::setFocusedElement(PassRefPtr<Element> prpNewFocusedElement, Focus
}
if (oldFocusedElement->isRootEditableElement())
- frame()->editor()->didEndEditing();
+ frame()->editor()->didEndEditing(oldFocusedElement.get());
if (view()) {
Widget* oldWidget = widgetForElement(oldFocusedElement.get());
@@ -3343,7 +3343,7 @@ bool Document::setFocusedElement(PassRefPtr<Element> prpNewFocusedElement, Focus
m_focusedElement->setFocus(true);
if (m_focusedElement->isRootEditableElement())
- frame()->editor()->didBeginEditing();
+ frame()->editor()->didBeginEditing(m_focusedElement.get());
// eww, I suck. set the qt focus correctly
// ### find a better place in the code for this

Powered by Google App Engine
This is Rietveld 408576698