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)

53 Branch
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bzbarsky, Unassigned)

References

Details

Attachments

(1 file)

41 bytes, text/x-github-pull-request
bholley
: review+
Details | Review
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?
(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.
Yeah, we can. Servo creates a new declaration each time, so should be fine too AFAICT.
It needs to change a bit the setup, but it shouldn't be hard, I'll write a patch for it.
Attached file Patch
Attachment #8872041 - Flags: review?(bobbyholley)
See Also: → 1368399
> Servo creates a new declaration each time We should probably file an issue on that...
Blocks: 1368399
Comment on attachment 8872041 [details] [review] Patch delegate+ on github. Next time please post patches to bugzilla. :-)
Attachment #8872041 - Flags: review?(bobbyholley) → review+
Is this fixed now?
Flags: needinfo?(emilio+bugs)
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.

Attachment

General

Created:
Updated:
Size: