aboutsummaryrefslogtreecommitdiffstats
path: root/components/compositing/lib.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-11-16 15:05:59 -0600
committerGitHub <noreply@github.com>2016-11-16 15:05:59 -0600
commitafc60bee2809059b8b754a1c6d6d10c1d36326fb (patch)
tree8813d15dd9a140bc612a181b1120fe739ede355a /components/compositing/lib.rs
parent17bf6aed21cb966c52382e7cef23d2bd66144874 (diff)
parent7fcad8afde9a4e70643e85499ca9a262b5dd474c (diff)
downloadservo-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