Geckolib/glue changes to support @page rule size attribute
Categories
(Core :: CSS Parsing and Computation, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox89 | --- | fixed |
People
(Reporter: alaskanemily, Assigned: alaskanemily)
References
Details
(Whiteboard: [DevRel:P3][layout:backlog:2020], [wptsync upstream])
Attachments
(2 files)
To use the size attribute from @page rules, the following changes will likely need to be made:
- Update the geckolib glue to handle the new fields
- Add a ServoStyleSet::AppendPageRules (similar in structure to ServoStyleSet::AppendFontFaceRules)
- Update the existing Gecko CSSPageRule class to handle the new attributes. This might end up looking more like a rewrite, as it needs to behave more like a CSSFontFaceRule (with possible support for block names like keyframes in the future).
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
This is NOT COMPLETE yet. This needs to be hidden behind a pref still and have
the testing situation fixed up.
This adds a bit of a hack to properties.mako.rs where we just handle the size
attribute in a special manner. Ideally we would do something more like a bitmap
of allowed rule types for each property.
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
To know the valid rules for each property, we need to puyt this information
into the Servo prop list and add an appropriate getter to Longhand/Shorthand.
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 5•4 years ago
|
||
Backed out 2 changesets (Bug 1647845) for causing assertions in nsStyleStruct.cpp CLOSED TREE
Failure log: https://treeherder.mozilla.org/logviewer?job_id=333445720&repo=autoland&lineNumber=4222
https://treeherder.mozilla.org/logviewer?job_id=333446246&repo=autoland&lineNumber=2533
https://treeherder.mozilla.org/logviewer?job_id=333446285&repo=autoland&lineNumber=2274
https://treeherder.mozilla.org/logviewer?job_id=333450333&repo=autoland&lineNumber=4058
Backout: https://hg.mozilla.org/integration/autoland/rev/fd3c8b11577c6355f046bc99a7f868f6b979f122
Comment 8•4 years ago
|
||
Backed out for causing build bustages.
Backout link: https://hg.mozilla.org/integration/autoland/rev/cd4ec7fca61fa1dd97f61580298db7d84e618c2d
Failure log: https://treeherder.mozilla.org/logviewer?job_id=333706342&repo=autoland&lineNumber=13189
Comment 10•4 years ago
|
||
Comment 11•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/131f3f40fbce
https://hg.mozilla.org/mozilla-central/rev/2dffdaa4ef0b
Assignee | ||
Updated•3 years ago
|
Description
•