Commit 6f6b5bef authored by darin@apple.com's avatar darin@apple.com

* dom/Document.cpp:

(WebCore::Document::setFocusedNode): Removed unneeded calls
to RefPtr::get.

Reviewed by Sam Weinig.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47365 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 0ffba5f1
2009-08-17 Darin Adler <darin@apple.com>
Reviewed by Sam Weinig.
* dom/Document.cpp:
(WebCore::Document::setFocusedNode): Removed unneeded calls
to RefPtr::get.
2009-08-17 Pavel Feldman <pfeldman@chromium.org>
Reviewed by Timothy Hatcher.
......@@ -2564,10 +2564,10 @@ bool Document::setFocusedNode(PassRefPtr<Node> newFocusedNode)
focusChangeBlocked = true;
newFocusedNode = 0;
}
if ((oldFocusedNode.get() == this) && oldFocusedNode->hasOneRef())
if (oldFocusedNode == this && oldFocusedNode->hasOneRef())
return true;
if (oldFocusedNode.get() == oldFocusedNode->rootEditableElement())
if (oldFocusedNode == oldFocusedNode->rootEditableElement())
frame()->editor()->didEndEditing();
}
......@@ -2596,7 +2596,7 @@ bool Document::setFocusedNode(PassRefPtr<Node> newFocusedNode)
}
m_focusedNode->setFocus();
if (m_focusedNode.get() == m_focusedNode->rootEditableElement())
if (m_focusedNode == m_focusedNode->rootEditableElement())
frame()->editor()->didBeginEditing();
// eww, I suck. set the qt focus correctly
......@@ -2627,9 +2627,9 @@ bool Document::setFocusedNode(PassRefPtr<Node> newFocusedNode)
RenderObject* newFocusedRenderer = 0;
if (oldFocusedNode)
oldFocusedRenderer = oldFocusedNode.get()->renderer();
oldFocusedRenderer = oldFocusedNode->renderer();
if (newFocusedNode)
newFocusedRenderer = newFocusedNode.get()->renderer();
newFocusedRenderer = newFocusedNode->renderer();
axObjectCache()->handleFocusedUIElementChangedWithRenderers(oldFocusedRenderer, newFocusedRenderer);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment