Page MenuHomePhabricator

Bug 1809005 - Make scroll-timeline-{name|axis} be a coordinating list property group.
ClosedPublic

Authored by boris on Jan 11 2023, 10:34 PM.
Referenced Files
Unknown Object (File)
Tue, Apr 14, 3:46 PM
Unknown Object (File)
Tue, Apr 14, 2:12 PM
Unknown Object (File)
Tue, Apr 14, 4:25 AM
Unknown Object (File)
Mon, Apr 13, 11:44 PM
Unknown Object (File)
Fri, Apr 10, 11:16 AM
Unknown Object (File)
Fri, Apr 10, 11:12 AM
Unknown Object (File)
Wed, Apr 8, 11:12 AM
Unknown Object (File)
Wed, Apr 8, 11:08 AM
Subscribers

Details

Summary

Named scroll progress timelines are declared in the coordinated value list
constructed from the longhands of the scroll-timeline shorthand property,
which form a coordinating list property group with scroll-timeline-name as
the coordinating list base property.

In the meantime, we also update its shorthand to match the current spec.

Event Timeline

phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.
emilio requested changes to this revision.Jan 20 2023, 8:13 PM
emilio added inline comments.
dom/animation/ScrollTimeline.cpp
118

This seems a drive-by change, maybe worth a separate patch?

122

If we change the code above to use the flat tree, we also need to change this.

130

Let's use for (const auto& timeline : ...) {?

layout/style/nsStyleStruct.h
1292

Same, let's do mAxis = StyleScrollAxis::Block; so that we don't have uninit values.

servo/components/style/properties/shorthands/ui.mako.rs
337

Probably worth a Vec::with_capacity(1) perhaps?

343

unwrap_or_default()?

368

I think you can just remove this condition, for two reasons:

  • I think it cannot happen.
  • Even if it did the behavior would be correct.
This revision now requires changes to proceed.Jan 20 2023, 8:13 PM
boris marked 7 inline comments as done.

Rebased and addressed comments

emilio added a project: testing-approved.
emilio removed reviewers: Restricted Project, layout-reviewers.
emilio added inline comments.
servo/components/style/properties/shorthands/ui.mako.rs
379

write_char(' ')?

This revision is now accepted and ready to land.Jan 26 2023, 11:27 AM
boris marked an inline comment as done.

Addresed comments