Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upimplement StyleSheet.disabled #14340
Conversation
highfive
commented
Nov 23, 2016
|
Heads up! This PR modifies the following files:
|
highfive
commented
Nov 23, 2016
|
@bors-servo try |
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. -->
|
|
|
@bors-servo try |
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 -->
|
|
|
r? @SimonSapin (I might still need to update some test expectations once the try run is done.) |
|
One thing I'm not sure about is my use of |
|
AtomicFoo is basically the Sync version of Cell. |
|
|
|
@bors-servo try |
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 try |
|
|
|
@bors-servo: retry |
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 -->
|
|
|
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.
This comment has been minimized.
Manishearth
Nov 25, 2016
Member
self.global().as_window().Document() works too, and doesn't need the node.
|
@bors-servo r=Manishearth |
|
|
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 retry |
|
|
|
|
|
|
|
|
|
|
|
|
heycam commentedNov 23, 2016
•
edited by larsbergstrom
This implements the CSSOM StyleSheet.disabled IDL attribute.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is