| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index 0663435a7141c3d520bd36c34143a3da0cc671a3..b95ac77e4876acca138c5e338e7cfc3c46cc8a78 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -1956,7 +1956,7 @@ void Element::updateFocusAppearance(bool /*restorePreviousSelection*/)
|
| return;
|
|
|
| // FIXME: We should restore the previous selection if there is one.
|
| - VisibleSelection newSelection = VisibleSelection(firstPositionInOrBeforeNode(this), DOWNSTREAM);
|
| + VisibleSelection newSelection = VisibleSelection(firstPositionInOrBeforeNode(selfHandle()), DOWNSTREAM);
|
|
|
| if (frame->selection()->shouldChangeSelection(newSelection)) {
|
| frame->selection()->setSelection(newSelection);
|
|
|