| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index c6f9227d4c0b070804ed6a19422e0f92215202f8..4809ce48ca19591939fa643cefdd356bb212a18e 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -304,12 +304,7 @@ static bool acceptsEditingFocus(Element* element)
|
| ASSERT(element);
|
| ASSERT(element->rendererIsEditable());
|
|
|
| - Element* root = element->rootEditableElement();
|
| - Frame* frame = element->document().frame();
|
| - if (!frame || !root)
|
| - return false;
|
| -
|
| - return frame->editor().shouldBeginEditing(rangeOfContents(root).get());
|
| + return element->document().frame() && element->rootEditableElement();
|
| }
|
|
|
| static bool canAccessAncestor(const SecurityOrigin* activeSecurityOrigin, Frame* targetFrame)
|
| @@ -3312,9 +3307,6 @@ bool Document::setFocusedElement(PassRefPtr<Element> prpNewFocusedElement, Focus
|
| newFocusedElement = 0;
|
| }
|
|
|
| - if (oldFocusedElement->isRootEditableElement())
|
| - frame()->editor().didEndEditing();
|
| -
|
| if (view()) {
|
| Widget* oldWidget = widgetForElement(oldFocusedElement.get());
|
| if (oldWidget)
|
|
|