Skip to content

Implement mouseevent.which (needed for enyojs sampler). - #6691

Merged
bors-servo merged 3 commits into
servo:masterfrom
glennw:mouse-which
Jul 23, 2015
Merged

bors-servo merged 3 commits into
servo:masterfrom
glennw:mouse-which

Conversation

@glennw

@glennw glennw commented Jul 21, 2015

Copy link
Copy Markdown
Member

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 21, 2015
@hoppipolla-critic-bot

Copy link
Copy Markdown

Critic review: https://critic.hoppipolla.co.uk/r/5618

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@glennw

glennw commented Jul 21, 2015

Copy link
Copy Markdown
Member Author

r? @jdm

@Ms2ger

Ms2ger commented Jul 21, 2015

Copy link
Copy Markdown
Contributor

There appears to be another change in this commit that isn't covered by the commit message. It seems like you should have two distinct commits in this PR.

gw3583 added 2 commits July 22, 2015 08:17
The spec says this should be "A count of consecutive  clicks that happened in a short amount of time, incremented by one."

This change matches the typical behaviour in FF.
@glennw

glennw commented Jul 21, 2015

Copy link
Copy Markdown
Member Author

@Ms2ger split into two commits.

@jdm

jdm commented Jul 21, 2015

Copy link
Copy Markdown
Member

-S-awaiting-review +S-needs-code-changes


Reviewed 1 of 1 files at r1, 3 of 3 files at r2.
Review status: all files reviewed at latest revision, 2 unresolved discussions, all commit checks successful.


components/script/dom/document.rs, line 653 [r1] (raw file):
This should use the button method argument instead.


components/script_traits/lib.rs, line 48 [r2] (raw file):
Why's this necessary?


Comments from the review on Reviewable.io

@jdm jdm added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jul 21, 2015
@glennw

glennw commented Jul 22, 2015

Copy link
Copy Markdown
Member Author

Review status: all files reviewed at latest revision, 2 unresolved discussions, all commit checks successful.


components/script/dom/document.rs, line 653 [r1] (raw file):
I'm not sure I understand what you mean? This is making the default detail field closer to the spec, which says "indicates the current click count incremented by one. For example, if no click happened before the mousedown, UIEvent.detail will contain the value 1"


components/script_traits/lib.rs, line 48 [r2] (raw file):
I was finding it useful when debugging hit tests and figured it's useful to have - I can remove from this commit if you'd prefer.


Comments from the review on Reviewable.io

@jdm

jdm commented Jul 22, 2015

Copy link
Copy Markdown
Member

Review status: all files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.


components/script/dom/document.rs, line 653 [r1] (raw file):
Please add a let clickCount = 1 and pass that instead, in that case.


Comments from the review on Reviewable.io

@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Jul 22, 2015
@glennw

glennw commented Jul 22, 2015

Copy link
Copy Markdown
Member Author

Review status: 3 of 4 files reviewed at latest revision, 1 unresolved discussion, all commit checks successful.


components/script/dom/document.rs, line 653 [r1] (raw file):
Done.


Comments from the review on Reviewable.io

@jdm

jdm commented Jul 23, 2015

Copy link
Copy Markdown
Member

@bors-servo: r+
-S-awaiting-review +S-awaiting-merge


Reviewed 1 of 1 files at r3.
Review status: :shipit: all files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from the review on Reviewable.io

@jdm jdm added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jul 23, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit d2600e6 has been approved by jdm

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit d2600e6 with merge ff86e00...

bors-servo pushed a commit that referenced this pull request Jul 23, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux1, linux2, linux3, mac1, mac2, mac3

@bors-servo
bors-servo merged commit d2600e6 into servo:master Jul 23, 2015
@glennw
glennw deleted the mouse-which branch December 12, 2016 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants