diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-11-16 15:05:59 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-16 15:05:59 -0600 |
commit | afc60bee2809059b8b754a1c6d6d10c1d36326fb (patch) | |
tree | 8813d15dd9a140bc612a181b1120fe739ede355a /components/compositing/lib.rs | |
parent | 17bf6aed21cb966c52382e7cef23d2bd66144874 (diff) | |
parent | 7fcad8afde9a4e70643e85499ca9a262b5dd474c (diff) | |
download | servo-afc60bee2809059b8b754a1c6d6d10c1d36326fb.tar.gz servo-afc60bee2809059b8b754a1c6d6d10c1d36326fb.zip |
Auto merge of #14190 - Manishearth:cssom, r=SimonSapin
Immutable CSSOM
This PR is intended to add basic support for all CSSOM interfaces, with the ability to index `document.styleSheets` and css rule lists, and serializing individual css rules. Handling individual interface methods for CSSRule subclasses can probably be done with easy/medium bugs.
Mutation safety isn't dealt with here; if the css rule list is mutated the CSSOM will be in an inconsistent state. I intend to deal with this via zero sized tokens, see https://groups.google.com/forum/#!topic/mozilla.dev.servo/AnxJoVmtMXQ . I'll handle that when I start making the CSSOM mutable. (Getting the immutable bit landed first opens this up for easy bugs)
This doesn't really change style aside from adding an extra arc in the CSS rule list as discussed in the linked thread. So far this same design can be used by stylo as well when the time comes.
f? @SimonSapin @emilio
cc @upsuper
part of #11420
Todo:
- [x] Stubs for rest of the CSSRule subclasses
- [x] <s>ToCSS impls for CSSRules.</s> May make into easy bugs and stub out in this PR https://github.com/servo/servo/issues/14195
- [x] Cache CSSStyleSheet on the relevant node
<!-- 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/14190)
<!-- Reviewable:end -->
Diffstat (limited to 'components/compositing/lib.rs')
0 files changed, 0 insertions, 0 deletions