Bug 115844
Summary: | Avoid full style recalc for scoped style element | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Normal | CC: | benjamin, kling, koivisto |
Priority: | P2 | Keywords: | BlinkMergeCandidate |
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Ryosuke Niwa
We should probably merge
https://chromium.googlesource.com/chromium/blink/+/628ec64c197dc92c5e87b1c4f7b6e13af1f86b75
Since rules in scoped styles could be treated as scoped selector rules, we don't need to full style recalc.
So updated in the following way:
- register with scoping node before invoking DocumentStyleSheets::updateActiveStyleSheets.
- move needsStyleRecalc logic for scoped styles from HTMLStyleElement to StyleInvalidationAnalysis.
- make StyleInvalidationAnalysis support scoped styles.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ryosuke Niwa
This one caused assertion failures.
https://chromium.googlesource.com/chromium/blink/+/f253680301e93041b6ba02d95a31ca931e7a8f9e is what we want.
Benjamin Poulain
Irrelevant now.