Closed Bug 1355003 Opened 7 years ago Closed 7 years ago

stylo: Implement shape-outside

Categories

(Core :: CSS Parsing and Computation, enhancement, P1)

x86_64
Linux
enhancement

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: shinglyu, Assigned: canova)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Attached file Failing test cases
Priority: -- → P1
Nazim, can you knock this one out? Should be pretty easy and blocks quite a number of tests.
Assignee: nobody → canaltinova
Comment on attachment 8857234 [details]
Bug 1355003 - stylo: Change some binding names to generalize them

https://reviewboard.mozilla.org/r/129174/#review131730
Attachment #8857234 - Flags: review?(manishearth) → review+
Comment on attachment 8857235 [details]
Bug 1355003 - stylo: Update test expectations for shape-outside

https://reviewboard.mozilla.org/r/129176/#review131732

::: servo/components/style/gecko/conversions.rs:481
(Diff revision 1)
> +    }
> +
> +    // Will panic on NoBox or other GeometryBox items.
> +    // Ideally these would be implemented on Option<T>,
> +    // but coherence doesn't like that and TryFrom isn't stable
> +    impl From<StyleGeometryBox> for ShapeBox {

Can this instead be a function that returns Option? It's fine if you don't use From.
Attachment #8857235 - Flags: review?(manishearth) → review+
You'll also need to update expectations. I did a try push (Automation > Trigger try on mozreview), https://treeherder.mozilla.org/#/jobs?repo=try&revision=7c4046f50e7d

I have a script that can help update reftest expectations in bulk if you need it.
Servo side: https://github.com/servo/servo/pull/16384

> Can this instead be a function that returns Option? It's fine if you don't use From.

Oh, I wrote this impl because it was implemented for `GeometryBox` but it looks like it's not needed for this change. I just removed it.
Also added a commit for test expectations.
We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again.

hg error in cmd: hg rebase -s aa95673a15d9 -d b1e0a9bc3655: rebasing 389545:aa95673a15d9 "Bug 1355003 - stylo: Change some binding names to generalize them r=manishearth"
merging layout/style/ServoBindings.cpp
merging layout/style/ServoBindings.h
rebasing 389546:6bb63b2cb4c6 "Bug 1355003 - stylo: Update test expectations for shape-outside r=manishearth" (tip)
merging layout/style/test/stylo-failures.md
warning: conflicts while merging layout/style/test/stylo-failures.md! (edit, then use 'hg resolve --mark')
unresolved conflicts (see hg resolve, then hg rebase --continue)
Pushed by manishearth@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/2eeb5637d6b2
stylo: Change some binding names to generalize them r=Manishearth
https://hg.mozilla.org/integration/autoland/rev/bfcf26eb6590
stylo: Update test expectations for shape-outside; r=Manishearth
https://hg.mozilla.org/mozilla-central/rev/2eeb5637d6b2
https://hg.mozilla.org/mozilla-central/rev/bfcf26eb6590
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: