Closed
Bug 1372488
Opened 8 years ago
Closed 8 years ago
Make counter style 'disc' not overridable
Categories
(Core :: CSS Parsing and Computation, enhancement)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: xidorn, Assigned: xidorn)
References
Details
Attachments
(1 file)
As I proposed in w3c/csswg-drafts#1521. This would allow us to avoid building counter style for initial struct. That would simplify our handling of counter style in stylo.
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → xidorn+moz
Comment hidden (mozreview-request) |
Assignee | ||
Comment 2•8 years ago
|
||
Assignee | ||
Comment 3•8 years ago
|
||
Also I suspect that, before this change, CounterStyleManager::IsInitial() actually never returns true after the first restyle, because creating nsStyleList would always insert the "disc" item into the table. That said, doing this should allow us to actually benefit from skipping flushing counter style manager in many pages.
I think this is a reasonable change to make. Not allowing @counter-style rules to change the meaning of the initial value of list-style-type seems like a good restriction to add.
The one thing I'm confused about is layout/reftests/counter-style/redefine-attr-mapping-ref.html. Why does the reference have triangles rather than discs?
Flags: needinfo?(xidorn+moz)
See Also: → https://github.com/w3c/csswg-drafts/issues/1521
Assignee | ||
Comment 5•8 years ago
|
||
The changes to redefine-attr-mapping-ref.html correspond to changes in redefine-attr-mapping.html, where I just removed all instances which may lead to using 'disc'.
That test is for checking the given predefined counter styles are indeed overridden. Since 'disc' is no longer overridable, I just remove them from it.
(Not sure what your question really is...)
Flags: needinfo?(xidorn+moz)
Comment 6•8 years ago
|
||
mozreview-review |
Comment on attachment 8877063 [details]
Bug 1372488 - Make counter style 'disc' not overridable.
https://reviewboard.mozilla.org/r/148406/#review154356
Oops, for some reason I was thinking those lines were added rather than removed. r=dbaron
Attachment #8877063 -
Flags: review?(dbaron) → review+
Comment 7•8 years ago
|
||
hg error in cmd: hg push -r tip ssh://hg.mozilla.org/integration/autoland: pushing to ssh://hg.mozilla.org/integration/autoland
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 9 changes to 9 files
remote: (dc243c10abeb modifies servo/components/style/stylesheets/rule_parser.rs from Servo; not enforcing peer review)
remote: (1 changesets contain changes to protected servo/ directory: dc243c10abeb)
remote: ************************************************************************
remote: you do not have permissions to modify files under servo/
remote:
remote: the servo/ directory is kept in sync with the canonical upstream
remote: repository at https://github.com/servo/servo
remote:
remote: changes to servo/ are only allowed by the syncing tool and by sheriffs
remote: performing cross-repository "merges"
remote:
remote: to make changes to servo/, submit a Pull Request against the servo/servo
remote: GitHub project
remote: ************************************************************************
remote: transaction abort!
remote: rollback completed
remote: pretxnchangegroup.e_prevent_vendored hook failed
abort: push failed on remote
Assignee | ||
Comment 8•8 years ago
|
||
Servo PR: servo/servo#17353
Comment hidden (mozreview-request) |
Comment 10•8 years ago
|
||
Pushed by xquan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e2f80edad993
Make counter style 'disc' not overridable. r=dbaron
Comment 11•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•