Bug 109650

Summary: Use FocusEvent.relatedTarget in {FocusIn,FocusOut,Focus,Blur}EventDispatchMediator.
Product: WebKit Reporter: Hayato Ito <hayato>
Component: UI EventsAssignee: Hayato Ito <hayato>
Status: RESOLVED FIXED    
Severity: Normal CC: ojan.autocc, webcomponents-bugzilla, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 109561    
Bug Blocks: 109156    
Attachments:
Description Flags
Use FocusEvent.relatedTarget.
none
Rabased
none
Patch for landing none

Hayato Ito
Reported 2013-02-12 19:38:34 PST
Remove m_{old,new}FocusedNode member variable from these mediators It's redundant since FocusEvent has relatedTarget member variable.
Attachments
Use FocusEvent.relatedTarget. (13.09 KB, patch)
2013-02-12 20:24 PST, Hayato Ito
no flags
Rabased (13.07 KB, patch)
2013-02-12 21:02 PST, Hayato Ito
no flags
Patch for landing (13.10 KB, patch)
2013-02-12 21:41 PST, Hayato Ito
no flags
Hayato Ito
Comment 1 2013-02-12 20:24:52 PST
Created attachment 187996 [details] Use FocusEvent.relatedTarget.
Hayato Ito
Comment 2 2013-02-12 20:25:37 PST
The uploaded patch depends on the patch in bug 109561.
Hayato Ito
Comment 3 2013-02-12 21:02:01 PST
Dimitri Glazkov (Google)
Comment 4 2013-02-12 21:25:43 PST
Comment on attachment 188000 [details] Rabased View in context: https://bugs.webkit.org/attachment.cgi?id=188000&action=review > Source/WebCore/dom/FocusEvent.h:101 > + FocusInEventDispatchMediator(PassRefPtr<FocusEvent>); explicit? > Source/WebCore/dom/FocusEvent.h:110 > + FocusOutEventDispatchMediator(PassRefPtr<FocusEvent>); explicit?
Hayato Ito
Comment 5 2013-02-12 21:32:39 PST
Thank you for the review. Let me land this after making these single parameter constructors explicit. (In reply to comment #4) > (From update of attachment 188000 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=188000&action=review > > > Source/WebCore/dom/FocusEvent.h:101 > > + FocusInEventDispatchMediator(PassRefPtr<FocusEvent>); > > explicit? > > > Source/WebCore/dom/FocusEvent.h:110 > > + FocusOutEventDispatchMediator(PassRefPtr<FocusEvent>); > > explicit?
Hayato Ito
Comment 6 2013-02-12 21:41:47 PST
Created attachment 188008 [details] Patch for landing
WebKit Review Bot
Comment 7 2013-02-12 22:10:54 PST
Comment on attachment 188008 [details] Patch for landing Clearing flags on attachment: 188008 Committed r142719: <http://trac.webkit.org/changeset/142719>
WebKit Review Bot
Comment 8 2013-02-12 22:10:59 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.