Bug 50989 - Change SelectionController::setFocusedNodeIfNeeded code to use DOM traversal instead of render tree traversal
Summary: Change SelectionController::setFocusedNodeIfNeeded code to use DOM traversal ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-13 15:28 PST by Emil A Eklund
Modified: 2010-12-13 16:25 PST (History)
2 users (show)

See Also:


Attachments
Patch (2.27 KB, patch)
2010-12-13 15:32 PST, Emil A Eklund
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Emil A Eklund 2010-12-13 15:28:03 PST
Per comment introduced in bug 49977 by dglazkov@chromium.org, we should use DOM traversal in discovering first focusable node, rather than render tree.
Comment 1 Emil A Eklund 2010-12-13 15:30:09 PST
A FIXME comment in setFocusedNodeIfNeeded suggest combining the traversal code with that in EventHandle::dispatchMouseEvent. I don't see how that would simplify things though as they both need to perform different additional checks on the node.
Comment 2 Emil A Eklund 2010-12-13 15:32:15 PST
Created attachment 76456 [details]
Patch
Comment 3 Dimitri Glazkov (Google) 2010-12-13 15:36:34 PST
Comment on attachment 76456 [details]
Patch

ok.
Comment 4 WebKit Review Bot 2010-12-13 16:25:04 PST
Comment on attachment 76456 [details]
Patch

Clearing flags on attachment: 76456

Committed r73984: <http://trac.webkit.org/changeset/73984>
Comment 5 WebKit Review Bot 2010-12-13 16:25:09 PST
All reviewed patches have been landed.  Closing bug.