Use FocusEvent.relatedTarget in {FocusIn,FocusOut,Focus,Blur}EventDispatchMediator.
https://bugs.webkit.org/show_bug.cgi?id=109650

Reviewed by Dimitri Glazkov.

Set FocusEvent.relatedTarget in its constructor so that each
EventDispatchMediator can use FocusEvent.relatedTarget rather than
its redundant m_{old,new}FocusedNode member variable.

I've also removed FIXME comments, mentioning bug 109261, since I
can not reproduce the issue.

No new tests. No change in functionality.

* dom/FocusEvent.cpp:
(WebCore::FocusEventDispatchMediator::create):
(WebCore::FocusEventDispatchMediator::FocusEventDispatchMediator):
(WebCore::FocusEventDispatchMediator::dispatchEvent):
(WebCore::BlurEventDispatchMediator::create):
(WebCore::BlurEventDispatchMediator::BlurEventDispatchMediator):
(WebCore::BlurEventDispatchMediator::dispatchEvent):
(WebCore::FocusInEventDispatchMediator::create):
(WebCore::FocusInEventDispatchMediator::FocusInEventDispatchMediator):
(WebCore::FocusInEventDispatchMediator::dispatchEvent):
(WebCore::FocusOutEventDispatchMediator::create):
(WebCore::FocusOutEventDispatchMediator::FocusOutEventDispatchMediator):
(WebCore::FocusOutEventDispatchMediator::dispatchEvent):
* dom/FocusEvent.h:
(FocusEventDispatchMediator):
(BlurEventDispatchMediator):
(FocusInEventDispatchMediator):
(FocusOutEventDispatchMediator):
* dom/Node.cpp:
(WebCore::Node::dispatchFocusInEvent):
(WebCore::Node::dispatchFocusOutEvent):
(WebCore::Node::dispatchFocusEvent):
(WebCore::Node::dispatchBlurEvent):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142719 268f45cc-cd09-0410-ab3c-d52691b4dbfc
 AX: crash when accessing AccessibilityScrollbar after page has been unloaded
 https://bugs.webkit.org/show_bug.cgi?id=109524

 Reviewed by Ryosuke Niwa.

 AX clients can hold onto AccesibilityScrollbar references that reference parent
 AccessibilityScrollViews that have already gone away.

 AccessibilityScrollView is not calling detachFromParent after it is removed, which
 leads to a crash. The fix is to clearChildren() when an object is deallocated.

 I could not create a test because the crash only manifests over multiple page loads.

 * accessibility/AccessibilityObject.cpp:
 (WebCore::AccessibilityObject::detach):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142721 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Versioning.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142722 268f45cc-cd09-0410-ab3c-d52691b4dbfc