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)

enhancement
Not set
normal

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 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 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 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+
(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.
Attachment #8893272 - Attachment is obsolete: true
Attachment #8893273 - Attachment is obsolete: true
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
Attached file Servo PR 17964
https://hg.mozilla.org/mozilla-central/rev/b10ab5ac752e
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: