Open Bug 1361032 Opened 8 years ago Updated 2 years ago

stylo: Remove redundant nsCSSValue getter/setter bindings

Categories

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

enhancement

Tracking

()

Tracking Status
firefox57 --- wontfix

People

(Reporter: canova, Unassigned)

References

Details

We can directly set/get `nsCSSValue` values and units without needing a binding(Like angle in bug 1360659). We don't have a reason to keep these unnecessary bindings. We should clean these and get/set in servo side directly.
In general, we should make clear under what conditions we expect them to be called. Right now all those functions imply that we're calling them either on values that don't hold any other memory from the parallel traversal (for calc()), or other values on main thread. We should clean that up, presumably if we want to make them generic we could add bindings to nsCSSValue::Reset, and then just implement the getters and setters properly (and let Reset assert if we get it wrong). The getters are just plain dumb I think.
Priority: -- → 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.