Don't use it yet (since I was working from a Servo tree). Will hook it up and improve in the Gecko bug. Right now it takes a `StyleRuleCascadeData`, which means that if all the origins in the document have state selectors we could do just one walk over the tree and not multiple, that will be improved. Other than that, this is completely untested of course, but I prefer to land it, given I don't think it's complex, and work on the Gecko integration separately. The reason for this is that I also plan to fix the `<slot>` bugs, which will change `StyleRuleCascadeData` and such, and I want the two bugs to conflict as little as possible. Source-Repo: https://github.com/servo/servo Source-Revision: 50e4171958d4ff7f1c76d133a8f89e7d5995376f
13 lines
426 B
Rust
13 lines
426 B
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
//! Invalidation of element styles due to attribute or style changes.
|
|
|
|
pub mod document_state;
|
|
pub mod element_wrapper;
|
|
pub mod invalidation_map;
|
|
pub mod invalidator;
|
|
pub mod restyle_hints;
|
|
pub mod state_and_attributes;
|