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 |