WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
61839
Refactor functions related with focus in WebCore::Document
https://bugs.webkit.org/show_bug.cgi?id=61839
Summary
Refactor functions related with focus in WebCore::Document
Hayato Ito
Reported
2011-06-01 00:36:00 PDT
This is a separated patch form
bug 61410
, containing only a refactoring part.
Attachments
move focus related functions from Document to FocusController
(18.04 KB, patch)
2011-06-01 00:40 PDT
,
Hayato Ito
tkent
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Hayato Ito
Comment 1
2011-06-01 00:40:14 PDT
Created
attachment 95558
[details]
move focus related functions from Document to FocusController
Kent Tamura
Comment 2
2011-06-01 01:01:53 PDT
Comment on
attachment 95558
[details]
move focus related functions from Document to FocusController View in context:
https://bugs.webkit.org/attachment.cgi?id=95558&action=review
> Source/WebCore/page/FocusController.cpp:312 > + for (Node* n = start; n; n = n->traverseNextNode())
nit: Should avoid 1-letter variable name.
> Source/WebCore/page/FocusController.cpp:332 > + int winningTabIndex = SHRT_MAX + 1;
nit: Because this is C++, we had better use numeric_limits<short> instead of SHRT_MAX.
> Source/WebCore/page/FocusController.h:79 > + /**
nit: We usually use '//' for comments.
Hayato Ito
Comment 3
2011-06-01 02:03:02 PDT
Thank you for the review. I'll land this patch after addressing the review comments. (In reply to
comment #2
)
> (From update of
attachment 95558
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=95558&action=review
> > > Source/WebCore/page/FocusController.cpp:312 > > + for (Node* n = start; n; n = n->traverseNextNode()) > > nit: Should avoid 1-letter variable name. > > > Source/WebCore/page/FocusController.cpp:332 > > + int winningTabIndex = SHRT_MAX + 1; > > nit: Because this is C++, we had better use numeric_limits<short> instead of SHRT_MAX. > > > Source/WebCore/page/FocusController.h:79 > > + /** > > nit: We usually use '//' for comments.
Hayato Ito
Comment 4
2011-06-01 19:24:11 PDT
Committed
r87874
: <
http://trac.webkit.org/changeset/87874
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug