Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement EventListenerOptions for EventTarget #18612

Merged
merged 1 commit into from Sep 30, 2017
Merged

Conversation

@nox
Copy link
Member

nox commented Sep 24, 2017

This change is Reviewable

@highfive
Copy link

highfive commented Sep 24, 2017

Heads up! This PR modifies the following files:

  • @fitzgen: components/script/dom/eventtarget.rs, components/script/dom/mediaquerylist.rs, components/script/dom/webidls/EventTarget.webidl
  • @KiChjang: components/script/dom/eventtarget.rs, components/script/dom/mediaquerylist.rs, components/script/dom/webidls/EventTarget.webidl
@highfive
Copy link

highfive commented Sep 24, 2017

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@nox
Copy link
Member Author

nox commented Sep 24, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Sep 24, 2017

Trying commit eb08b66 with merge 25df84b...

bors-servo added a commit that referenced this pull request Sep 24, 2017
Implement EventListenerOptions for EventTarget

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18612)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Sep 24, 2017

💔 Test failed - linux-rel-wpt

Copy link
Member

asajeffrey left a comment

LGTM, you can r=me once the test issues are cleared up.

self.upcast::<EventTarget>().add_event_listener(
DOMString::from_string("change".to_owned()),
listener,
AddEventListenerOptions { parent: EventListenerOptions { capture: false } },

This comment has been minimized.

@asajeffrey

asajeffrey Sep 26, 2017

Member

Worth implementing Default for AddEventListenerOptions?

listener: Option<Rc<EventListener>>,
options: EventListenerOptionsOrBoolean,
) {
self.remove_event_listener(ty, listener, options.into())

This comment has been minimized.

listener: Option<Rc<EventListener>>,
options: AddEventListenerOptionsOrBoolean,
) {
self.add_event_listener(ty, listener, options.into())

This comment has been minimized.

@asajeffrey

asajeffrey Sep 26, 2017

Member

Nit: I always find x.into() very mysterious compared to Y::from(x).

@nox nox force-pushed the event-listener-options branch from eb08b66 to fa58bf9 Sep 29, 2017
@nox
Copy link
Member Author

nox commented Sep 29, 2017

@bors-servo
Copy link
Contributor

bors-servo commented Sep 29, 2017

Trying commit fa58bf9 with merge fe1534e...

bors-servo added a commit that referenced this pull request Sep 29, 2017
Implement EventListenerOptions for EventTarget

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18612)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Sep 30, 2017

💔 Test failed - mac-rel-wpt2

For now, only "capture" is supported.
@nox nox force-pushed the event-listener-options branch from fa58bf9 to 3d0b7fb Sep 30, 2017
@nox
Copy link
Member Author

nox commented Sep 30, 2017

@bors-servo r=asajeffrey

@bors-servo
Copy link
Contributor

bors-servo commented Sep 30, 2017

📌 Commit 3d0b7fb has been approved by asajeffrey

@bors-servo
Copy link
Contributor

bors-servo commented Sep 30, 2017

Testing commit 3d0b7fb with merge 81044e0...

bors-servo added a commit that referenced this pull request Sep 30, 2017
Implement EventListenerOptions for EventTarget

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18612)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Sep 30, 2017

@bors-servo bors-servo merged commit 3d0b7fb into master Sep 30, 2017
4 checks passed
4 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
dependency-ci Dependencies checked
Details
homu Test successful
Details
@nox nox deleted the event-listener-options branch Oct 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.