WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
109278
Factor EventContext and introduces MouseOrFocusEventContext.
https://bugs.webkit.org/show_bug.cgi?id=109278
Summary
Factor EventContext and introduces MouseOrFocusEventContext.
Hayato Ito
Reported
2013-02-08 02:59:40 PST
This is a separated patch from
bug 109156
.
Attachments
Factor EventContext
(21.03 KB, patch)
2013-02-08 03:15 PST
,
Hayato Ito
no flags
Details
Formatted Diff
Diff
Patch for landing
(23.65 KB, patch)
2013-02-11 19:51 PST
,
Hayato Ito
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Hayato Ito
Comment 1
2013-02-08 03:15:41 PST
Created
attachment 187277
[details]
Factor EventContext
WebKit Review Bot
Comment 2
2013-02-08 03:25:07 PST
Attachment 187277
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCore/dom/EventContext.cpp', u'Source/WebCore/dom/EventContext.h', u'Source/WebCore/dom/EventDispatcher.cpp', u'Source/WebCore/dom/EventDispatcher.h', u'Source/WebCore/inspector/InspectorInstrumentation.cpp', u'Source/WebCore/inspector/InspectorInstrumentation.h']" exit_code: 1 Source/WebCore/dom/EventContext.h:65: The parameter name "target" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 1 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
Dimitri Glazkov (Google)
Comment 3
2013-02-08 09:26:09 PST
Comment on
attachment 187277
[details]
Factor EventContext View in context:
https://bugs.webkit.org/attachment.cgi?id=187277&action=review
> Source/WebCore/dom/EventContext.h:61 > +typedef Vector<OwnPtr<EventContext>, 32> EventContextAncestors;
I am having trouble with this name. It seems more like an EventContextList. The word "ancestors" is completely out of place here, though I personally understand where it came from. Another idea: we could use the DOM core terminology of "event path" (
http://dom.spec.whatwg.org/#dispatching-events
) and instead of EventContextAncestors and ensureEventContextAncestors (neither make good sense), we just say "EventPath" and "ensureEventPath"?
>> Source/WebCore/dom/EventContext.h:65 >> + MouseOrFocusEventContext(PassRefPtr<Node>, PassRefPtr<EventTarget> currentTarget, PassRefPtr<EventTarget> target); > > The parameter name "target" adds no information, so it should be removed. [readability/parameter_name] [5]
Style elf is mistaken! :)
Hayato Ito
Comment 4
2013-02-11 19:24:54 PST
Thank you for the review. Let me land this after addressing the comment. (In reply to
comment #3
)
> (From update of
attachment 187277
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=187277&action=review
> > > Source/WebCore/dom/EventContext.h:61 > > +typedef Vector<OwnPtr<EventContext>, 32> EventContextAncestors; > > I am having trouble with this name. It seems more like an EventContextList. The word "ancestors" is completely out of place here, though I personally understand where it came from. > > Another idea: we could use the DOM core terminology of "event path" (
http://dom.spec.whatwg.org/#dispatching-events
) and instead of EventContextAncestors and ensureEventContextAncestors (neither make good sense), we just say "EventPath" and "ensureEventPath"?
I like it. Let me use that. We should use terminology from the spec unless there is a strong reason. We don't have a strong reason. :)
> > >> Source/WebCore/dom/EventContext.h:65 > >> + MouseOrFocusEventContext(PassRefPtr<Node>, PassRefPtr<EventTarget> currentTarget, PassRefPtr<EventTarget> target); > > > > The parameter name "target" adds no information, so it should be removed. [readability/parameter_name] [5] > > Style elf is mistaken! :)
Yeah :)
Hayato Ito
Comment 5
2013-02-11 19:51:44 PST
Created
attachment 187761
[details]
Patch for landing
WebKit Review Bot
Comment 6
2013-02-11 20:45:34 PST
Comment on
attachment 187761
[details]
Patch for landing Clearing flags on attachment: 187761 Committed
r142575
: <
http://trac.webkit.org/changeset/142575
>
WebKit Review Bot
Comment 7
2013-02-11 20:45:37 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.
Top of Page
Format For Printing
XML
Clone This Bug