Open Bug 1369984 Opened 7 years ago Updated 2 years ago

stylo: Track which changes may affect the default computed values to recompute them less often.

Categories

(Core :: CSS Parsing and Computation, enhancement, P4)

enhancement

Tracking

()

Tracking Status
firefox57 --- wontfix

People

(Reporter: emilio, Unassigned)

References

(Blocks 1 open bug)

Details

In bug 1357461, I added code to recompute the default computed values when media query-affecting values changed, because zoom changes affect the meaning of em units.

We could be a bit smarter and only recompute them for zoom changes. This bug tracks that work.
Does this mean that, for example, we'll recompute the default computed values hundreds of times when the window is being resized? Or more concretely: is this something we need to do before shipping?
Blocks: stylo-perf
Flags: needinfo?(emilio+bugs)
Priority: -- → P2
(In reply to Bobby Holley (:bholley) (busy with Stylo) from comment #1)
> Does this mean that, for example, we'll recompute the default computed
> values hundreds of times when the window is being resized? Or more
> concretely: is this something we need to do before shipping?

Not hundreds, but each time the window resizes, yeah. I don't think it's really prioritary, there are other stuff we need to fix in that area (right now we do a full document re-cascade and rebuild each time the window is resized, which we don't need).
Flags: needinfo?(emilio+bugs)
Priority: P2 → P4
status-firefox57=wontfix unless someone thinks this bug should block 57
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.