aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/invalidation/mod.rs
Commit message (Collapse)AuthorAgeFilesLines
* style: More fine-grained viewport units invalidationEmilio Cobos Álvarez2023-05-241-0/+1
| | | | | | This should speed up window resize significantly. Differential Revision: https://phabricator.services.mozilla.com/D118878
* Update MPL license to https (part 4)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* style: Implement a more fine-grained invalidation method.Emilio Cobos Álvarez2017-06-131-0/+1
| | | | | | | | | | | This commit also removes the old restyle_hints module and splits it into multiple modules under components/style/invalidation/element/. The basic approach is to walk down the tree using compound selectors as needed, in order to do as little selector-matching as possible. Bug: 1368240 MozReview-Commit-ID: 2YO8fKFygZI
* Cache effective media query results.Emilio Cobos Álvarez2017-06-031-0/+1
| | | | | | | | | | | This patch also makes RulesIterator not iterate over rules for which we don't process nested rules. There's nothing depending on this behavior right now afaik, and this will make us duplicate less code in following patches. Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1357461 MozReview-Commit-ID: CaMFQtAVnJF
* style: Move the stylesheet invalidation code to another submodule.Emilio Cobos Álvarez2017-06-031-291/+2
| | | | | Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1357461 MozReview-Commit-ID: DIzZXoHycZs
* Bug 1357583: style: Make effective_rules return an iterator, stop ↵Emilio Cobos Álvarez2017-05-291-77/+16
| | | | | | | | | | | | refcounting the Device. r=heycam This makes the code cleaner, and also documents the fact that effective_rules recurses into imports. No we're not adding the imported stylesheets twice, and we share code with the invalidation analysis. MozReview-Commit-ID: DOF2AViTlmR
* Bug 1357583: style: Recurse into @import rules when looking at the added ↵Emilio Cobos Álvarez2017-05-291-2/+17
| | | | | | | | | | rules. r=heycam Apparently my whole conception of how the list of sheets in the styleset looked like was flawled, and we only ever get one append_sheet for the topmost stylesheet, instead of one for each. MozReview-Commit-ID: FMClygMJkTc
* Bug 1357583: Add a bunch of logging, shortcuts, and look also at the ↵Emilio Cobos Álvarez2017-05-291-16/+64
| | | | | | rightmost selector while invalidating sheets. r=heycam MozReview-Commit-ID: 2XGcOCTa7MV
* Bug 1357583: style: Hook up the invalidator in the StyleSheetSet. r=heycamEmilio Cobos Álvarez2017-05-291-2/+21
| | | | MozReview-Commit-ID: IhgKAovTJMX
* Bug 1357583: style: Add an initial version of the stylesheet invalidation ↵Emilio Cobos Álvarez2017-05-291-0/+275
code. r=heycam MozReview-Commit-ID: 4jLxPYNF07U