Closed
Bug 1386963
Opened 7 years ago
Closed 7 years ago
stylo: make 'image-orientation' and 'paint-order' animatable
Categories
(Core :: CSS Parsing and Computation, enhancement)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox55 | --- | wontfix |
firefox56 | --- | wontfix |
firefox57 | --- | fixed |
People
(Reporter: daisuke, Assigned: daisuke)
References
Details
Attachments
(2 files, 2 obsolete files)
Both 'image-orientation' and 'paint-order' should animate discretely.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 4•7 years ago
|
||
try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=7234dc364ee804529baf6013807eed128acf5491
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8893274 [details] Bug 1386963 - Part 3: remove test fail annotations from meta in wpt. https://reviewboard.mozilla.org/r/164322/#review169640
Attachment #8893274 -
Flags: review?(hikezoe) → review+
Comment 6•7 years ago
|
||
mozreview-review |
Comment on attachment 8893272 [details] Bug 1386963 - Part 1: make paint-order animatable. https://reviewboard.mozilla.org/r/164318/#review169648 ::: servo/components/style/properties/gecko.mako.rs:5087 (Diff revision 1) > + use self::longhands::paint_order::SpecifiedValue; > + > + if self.gecko.mPaintOrder == structs::NS_STYLE_PAINT_ORDER_NORMAL as u8 { > + return SpecifiedValue(NORMAL); > + } Use computed_value::T instead of SpecifiedValue. ::: servo/components/style/properties/gecko.mako.rs:5093 (Diff revision 1) > + > + if self.gecko.mPaintOrder == structs::NS_STYLE_PAINT_ORDER_NORMAL as u8 { > + return SpecifiedValue(NORMAL); > + } > + > + let mask = (1 << structs::NS_STYLE_PAINT_ORDER_BITWIDTH) - 1; Can we define this as const u8? ::: servo/components/style/properties/gecko.mako.rs:5105 (Diff revision 1) > + structs::NS_STYLE_PAINT_ORDER_MARKERS => MARKERS, > + _ => unreachable!(), > + }; > + order |= value << (pos * SHIFT); > + }; > + SpecifiedValue(order) Use computed_value:T.
Attachment #8893272 -
Flags: review?(hikezoe) → review+
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8893273 [details] Bug 1386963 - Part 2: make image-orientation animatable. https://reviewboard.mozilla.org/r/164320/#review169664
Attachment #8893273 -
Flags: review?(hikezoe) → review+
Assignee | ||
Comment 8•7 years ago
|
||
(In reply to Hiroyuki Ikezoe (:hiro) from comment #6) > Comment on attachment 8893272 [details] > Bug 1386963 - Part 1: make paint-order animatable. > > https://reviewboard.mozilla.org/r/164318/#review169648 > > ::: servo/components/style/properties/gecko.mako.rs:5087 > (Diff revision 1) > > + use self::longhands::paint_order::SpecifiedValue; > > + > > + if self.gecko.mPaintOrder == structs::NS_STYLE_PAINT_ORDER_NORMAL as u8 { > > + return SpecifiedValue(NORMAL); > > + } > > Use computed_value::T instead of SpecifiedValue. > > ::: servo/components/style/properties/gecko.mako.rs:5093 > (Diff revision 1) > > + > > + if self.gecko.mPaintOrder == structs::NS_STYLE_PAINT_ORDER_NORMAL as u8 { > > + return SpecifiedValue(NORMAL); > > + } > > + > > + let mask = (1 << structs::NS_STYLE_PAINT_ORDER_BITWIDTH) - 1; > > Can we define this as const u8? > > ::: servo/components/style/properties/gecko.mako.rs:5105 > (Diff revision 1) > > + structs::NS_STYLE_PAINT_ORDER_MARKERS => MARKERS, > > + _ => unreachable!(), > > + }; > > + order |= value << (pos * SHIFT); > > + }; > > + SpecifiedValue(order) > > Use computed_value:T. Thanks, Hiro! Will fix and PR them.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8893272 -
Attachment is obsolete: true
Assignee | ||
Updated•7 years ago
|
Attachment #8893273 -
Attachment is obsolete: true
Comment 13•7 years ago
|
||
Pushed by dakatsuka@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b10ab5ac752e Part 3: remove test fail annotations from meta in wpt. r=hiro
Assignee | ||
Comment 14•7 years ago
|
||
Comment 15•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b10ab5ac752e
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Updated•7 years ago
|
status-firefox55:
--- → wontfix
status-firefox56:
--- → wontfix
status-firefox-esr52:
--- → unaffected
You need to log in
before you can comment on or make changes to this bug.
Description
•