| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 4ccc14f768ad2841cc739e5c3574937f33c42d48..fba2406e5f4ae784dbc98ca9590bddf961bb23a5 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -3196,7 +3196,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());
|
| @@ -3245,7 +3245,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
|
|
|