Closed
Bug 1368229
Opened 8 years ago
Closed 7 years ago
stylo: We have no style sharing for mapped attributes (aka presentation hints or preshints)
Categories
(Core :: CSS Parsing and Computation, enhancement)
Tracking
()
RESOLVED
FIXED
People
(Reporter: bzbarsky, Unassigned)
References
Details
Attachments
(1 file)
In Gecko, these are explicitly coalesced on the DOM level just so we'll share the style side. With stylo we share the _declaration_, but preshints immediately disable ComputedValues sharing.
I don't see why we need to do that. As long as two elements have the same exact declaration pointer for their preshints, why can't we do style sharing for them?
Comment 1•8 years ago
|
||
(In reply to Boris Zbarsky [:bz] (work week until 5/26) (if a patch has no decent message, automatic r-) from comment #0)
> I don't see why we need to do that. As long as two elements have the same
> exact declaration pointer for their preshints, why can't we do style sharing
> for them?
Yes, I think the current setup predates the caching we do now. Worth checking whether with works for Servo too. Either way, should be a simple patch.
Comment 2•8 years ago
|
||
Yeah, we can. Servo creates a new declaration each time, so should be fine too AFAICT.
Comment 3•8 years ago
|
||
It needs to change a bit the setup, but it shouldn't be hard, I'll write a patch for it.
Comment 4•8 years ago
|
||
Attachment #8872041 -
Flags: review?(bobbyholley)
Reporter | ||
Comment 5•7 years ago
|
||
> Servo creates a new declaration each time
We should probably file an issue on that...
Comment 6•7 years ago
|
||
Comment on attachment 8872041 [details] [review]
Patch
delegate+ on github. Next time please post patches to bugzilla. :-)
Attachment #8872041 -
Flags: review?(bobbyholley) → review+
Comment 8•7 years ago
|
||
Yes, fixed in https://github.com/servo/servo/pull/17063
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(emilio+bugs)
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•