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 StyleSheet.disabled #14340

Merged
merged 1 commit into from Nov 25, 2016
Merged

implement StyleSheet.disabled #14340

merged 1 commit into from Nov 25, 2016

Conversation

@heycam
Copy link
Member

heycam commented Nov 23, 2016

This implements the CSSOM StyleSheet.disabled IDL attribute.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #__ (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because _____

This change is Reviewable

@highfive
Copy link

highfive commented Nov 23, 2016

Heads up! This PR modifies the following files:

  • @bholley: components/style/stylesheets.rs, components/style/stylist.rs
  • @KiChjang: components/script/dom/htmllinkelement.rs, components/script/dom/htmlstyleelement.rs, components/script/dom/webidls/StyleSheet.webidl, components/script/dom/htmlmetaelement.rs, components/script/dom/cssstylesheet.rs, components/script/dom/stylesheet.rs
  • @fitzgen: components/script/dom/htmllinkelement.rs, components/script/dom/htmlstyleelement.rs, components/script/dom/webidls/StyleSheet.webidl, components/script/dom/htmlmetaelement.rs, components/script/dom/cssstylesheet.rs, components/script/dom/stylesheet.rs
  • @emilio: components/style/stylesheets.rs, components/style/stylist.rs
@highfive
Copy link

highfive commented Nov 23, 2016

warning Warning warning

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

heycam commented Nov 23, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Nov 23, 2016

Trying commit f7676fc with merge 122e8a4...

bors-servo added a commit that referenced this pull request Nov 23, 2016
implement StyleSheet.disabled

<!-- Please describe your changes on the following line: -->

This implements the [CSSOM StyleSheet.disabled](https://drafts.csswg.org/cssom/#dom-stylesheet-disabled) IDL attribute.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
@heycam heycam assigned SimonSapin and unassigned asajeffrey Nov 23, 2016
@bors-servo
Copy link
Contributor

bors-servo commented Nov 23, 2016

💔 Test failed - linux-dev

@heycam heycam force-pushed the heycam:sheet-disabled branch from f7676fc to c774129 Nov 23, 2016
@heycam
Copy link
Member Author

heycam commented Nov 23, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Nov 23, 2016

Trying commit c774129 with merge d7336c1...

bors-servo added a commit that referenced this pull request Nov 23, 2016
implement StyleSheet.disabled

<!-- Please describe your changes on the following line: -->

This implements the [CSSOM StyleSheet.disabled](https://drafts.csswg.org/cssom/#dom-stylesheet-disabled) IDL attribute.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/14340)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 23, 2016

💔 Test failed - linux-dev

@heycam
Copy link
Member Author

heycam commented Nov 23, 2016

r? @SimonSapin

(I might still need to update some test expectations once the try run is done.)

@heycam
Copy link
Member Author

heycam commented Nov 23, 2016

One thing I'm not sure about is my use of AtomicBool on the Stylesheet. Should I be using some sort of cell?

@bholley
Copy link
Contributor

bholley commented Nov 23, 2016

AtomicFoo is basically the Sync version of Cell.

@bors-servo
Copy link
Contributor

bors-servo commented Nov 23, 2016

The latest upstream changes (presumably #14241) made this pull request unmergeable. Please resolve the merge conflicts.

@heycam heycam force-pushed the heycam:sheet-disabled branch from c774129 to 1618474 Nov 24, 2016
@heycam
Copy link
Member Author

heycam commented Nov 24, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Nov 24, 2016

Trying commit 1618474 with merge 8d73042...

bors-servo added a commit that referenced this pull request Nov 24, 2016
implement StyleSheet.disabled

<!-- Please describe your changes on the following line: -->

This implements the [CSSOM StyleSheet.disabled](https://drafts.csswg.org/cssom/#dom-stylesheet-disabled) IDL attribute.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/14340)
<!-- Reviewable:end -->
@heycam heycam force-pushed the heycam:sheet-disabled branch from 1618474 to 9d1109a Nov 24, 2016
@heycam
Copy link
Member Author

heycam commented Nov 24, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Nov 24, 2016

💔 Test failed - linux-rel-wpt

@jdm
Copy link
Member

jdm commented Nov 24, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Nov 24, 2016

Trying commit a97d126 with merge d769281...

bors-servo added a commit that referenced this pull request Nov 24, 2016
implement StyleSheet.disabled

<!-- Please describe your changes on the following line: -->

This implements the [CSSOM StyleSheet.disabled](https://drafts.csswg.org/cssom/#dom-stylesheet-disabled) IDL attribute.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/14340)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 24, 2016

Copy link
Member

Manishearth left a comment

r=me with the change

pub fn set_disabled(&self, disabled: bool) {
if self.style_stylesheet.set_disabled(disabled) {
let owner = self.owner.upcast::<Node>();
let doc = document_from_node(owner);

This comment has been minimized.

@Manishearth

Manishearth Nov 25, 2016

Member

self.global().as_window().Document() works too, and doesn't need the node.

@heycam heycam force-pushed the heycam:sheet-disabled branch from a97d126 to 64ff6dc Nov 25, 2016
@heycam
Copy link
Member Author

heycam commented Nov 25, 2016

@bors-servo r=Manishearth

@bors-servo
Copy link
Contributor

bors-servo commented Nov 25, 2016

📌 Commit 64ff6dc has been approved by Manishearth

@bors-servo
Copy link
Contributor

bors-servo commented Nov 25, 2016

Testing commit 64ff6dc with merge c1c3974...

bors-servo added a commit that referenced this pull request Nov 25, 2016
implement StyleSheet.disabled

<!-- Please describe your changes on the following line: -->

This implements the [CSSOM StyleSheet.disabled](https://drafts.csswg.org/cssom/#dom-stylesheet-disabled) IDL attribute.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/14340)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Nov 25, 2016

💔 Test failed - mac-rel-wpt2

@heycam
Copy link
Member Author

heycam commented Nov 25, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Nov 25, 2016

Previous build results for arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, windows-dev are reusable. Rebuilding only mac-rel-wpt2...

@bors-servo
Copy link
Contributor

bors-servo commented Nov 25, 2016

The build was interrupted to prioritize another pull request.

@bors-servo
Copy link
Contributor

bors-servo commented Nov 25, 2016

Previous build results for arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, windows-dev are reusable. Rebuilding only mac-rel-wpt2...

@bors-servo
Copy link
Contributor

bors-servo commented Nov 25, 2016

The build was interrupted to prioritize another pull request.

@bors-servo
Copy link
Contributor

bors-servo commented Nov 25, 2016

Previous build results for arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, windows-dev are reusable. Rebuilding only mac-rel-wpt2...

@bors-servo
Copy link
Contributor

bors-servo commented Nov 25, 2016

@bors-servo bors-servo merged commit 64ff6dc into servo:master Nov 25, 2016
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
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

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