Closed
Bug 1401449
Opened 7 years ago
Closed 7 years ago
stylo: Convert :-moz-list-bullet and :-moz-list-number to (non-web-exposed) inheriting anonymous boxes and eliminate the lazy pseudo cache
Categories
(Core :: CSS Parsing and Computation, enhancement, P4)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
WONTFIX
Tracking | Status | |
---|---|---|
firefox57 | --- | wontfix |
firefox58 | --- | fix-optional |
People
(Reporter: bholley, Assigned: bholley)
Details
Attachments
(2 files, 1 obsolete file)
7.00 KB,
patch
|
bzbarsky
:
feedback+
|
Details | Diff | Splinter Review |
12.92 KB,
patch
|
emilio
:
review+
|
Details | Diff | Splinter Review |
See bug 1401317 comment 11. There is some webcompat risk here, but it would simplify various things and save memory.
Updated•7 years ago
|
Priority: -- → P4
Updated•7 years ago
|
status-firefox57:
--- → wontfix
status-firefox58:
--- → fix-optional
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → bobbyholley
Assignee | ||
Comment 1•7 years ago
|
||
Doing this on top of bug 1429126.
Assignee | ||
Comment 2•7 years ago
|
||
Assignee | ||
Comment 3•7 years ago
|
||
MozReview-Commit-ID: 91X3bG7MAsg
Attachment #8941273 -
Flags: review?(emilio)
Assignee | ||
Comment 4•7 years ago
|
||
MozReview-Commit-ID: 8rR8tz6Rq7w
Attachment #8941274 -
Flags: review?(emilio)
Assignee | ||
Comment 5•7 years ago
|
||
MozReview-Commit-ID: 8rR8tz6Rq7w
Attachment #8941284 -
Flags: review?(emilio)
Assignee | ||
Updated•7 years ago
|
Attachment #8941274 -
Attachment is obsolete: true
Attachment #8941274 -
Flags: review?(emilio)
Comment 6•7 years ago
|
||
Comment on attachment 8941273 [details] [diff] [review]
Part 1 - Convert -moz-list-bullet and -moz-list-number to (non-web-exposed) inheriting anonymous boxes. v1
Review of attachment 8941273 [details] [diff] [review]:
-----------------------------------------------------------------
Code-wise looks ok, though I'm surprised to not see any test-changes. Also, could you send an intent to unship to dev-platform, and wait a bit for replies or concerns to come in in case there are any?
Comment 7•7 years ago
|
||
Comment on attachment 8941273 [details] [diff] [review]
Part 1 - Convert -moz-list-bullet and -moz-list-number to (non-web-exposed) inheriting anonymous boxes. v1
Review of attachment 8941273 [details] [diff] [review]:
-----------------------------------------------------------------
Also, thinking a bit more about this change, it's probably kinda weird how the restyling setup ends up... Because this is still restyling them from UpdatePseudoElementStyles, and AppendDirectlyOwnedAnonBoxes doesn't append it...
Boris, wdyt of the patch as-is? Maybe we should change them to actually make bullets use the anon box machinery instead...
Attachment #8941273 -
Flags: feedback?(bzbarsky)
Comment 8•7 years ago
|
||
Comment on attachment 8941284 [details] [diff] [review]
Part 2 - Eliminate lazy pseudo style cache. v2
Review of attachment 8941284 [details] [diff] [review]:
-----------------------------------------------------------------
This is fine of course, once the previous patch is addressed.
Maybe worth mentioning in the commit message that the other lazy pseudos don't seem worth sharing.
Attachment #8941284 -
Flags: review?(emilio) → review+
Assignee | ||
Comment 9•7 years ago
|
||
NI Jason, just as a heads-up that -moz-list-bullet and -moz-list-number will no longer be content-exposed and thus the fuzzers probably shouldn't bother generating them anymore once this lands.
Flags: needinfo?(jkratzer)
Assignee | ||
Comment 10•7 years ago
|
||
Comment 11•7 years ago
|
||
Noted - thanks. Eventually, supported selectors will be detected as part of our CI process but for now, I'll go ahead and manually remove them.
Flags: needinfo?(jkratzer)
Assignee | ||
Comment 12•7 years ago
|
||
While drafting the intent-to-unship, I realized that the current implementation lines up pretty well with ::marker, which we may want to implement at some point. Emilio, wdyt?
Assignee | ||
Comment 13•7 years ago
|
||
(and Jason, maybe don't remove them just yet, since there's a chance we might not land this)
Flags: needinfo?(jkratzer)
Flags: needinfo?(emilio)
Updated•7 years ago
|
Flags: needinfo?(jkratzer)
Assignee | ||
Comment 14•7 years ago
|
||
Hm, I suppose now that we have the patches in bug 1429126, the reasoning for two separate linked lists (in bug 1368291 comment 5) no longer holds, and we could just merge the lazy pseudo cache with the anonymous box cache. I'll go ahead and do that.
Assignee | ||
Comment 15•7 years ago
|
||
(My patches for this bug, which I will probably abandon, are at https://github.com/bholley/gecko/commits/list_bullet_and_number_to_anon_box )
Comment 16•7 years ago
|
||
Comment on attachment 8941273 [details] [diff] [review]
Part 1 - Convert -moz-list-bullet and -moz-list-number to (non-web-exposed) inheriting anonymous boxes. v1
Worth checking whether people style these in the wild and why?
And yes, ::marker would likely have similar issues in terms of sharing, so those might be worth solving anyway.
Attachment #8941273 -
Flags: feedback?(bzbarsky) → feedback+
Comment 17•7 years ago
|
||
Fwiw, a least github searches show very few hits for these pseudo-elements...
Assignee | ||
Comment 18•7 years ago
|
||
I'm going to try merging the caches in bug 1429529, and leaving moz-list-{bullet,number} alone.
Comment 19•7 years ago
|
||
If we want to implement ::marker I agree this problem needs to be solved regardless. But if we can make this problem not exist by merging the caches, that's even better, I agree :)
Flags: needinfo?(emilio)
Updated•7 years ago
|
Attachment #8941273 -
Flags: review?(emilio)
Assignee | ||
Comment 20•7 years ago
|
||
OK, let's take the approach in the other bug then.
So Jason, the final word here is that :-moz-list-bullet and :-moz-list-number should not be removed from the fuzzer, since they'll still be valid (and fruitful for fuzz bugs). NI-ing just to be extra sure you see this. :-)
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(jkratzer)
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•