Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd layout_2020 support for filters and mix-blend-mode #25788
Conversation
highfive
commented
Feb 18, 2020
|
|
||
| /// CSS filters to be applied to this stacking context (including opacity). | ||
| filters: Vec<wr::FilterOp>, | ||
|
|
||
| /// The blend mode with which this stacking context blends with its backdrop. | ||
| mix_blend_mode: wr::MixBlendMode, |
This comment has been minimized.
This comment has been minimized.
SimonSapin
Feb 18, 2020
Member
Do these need to be kept in the stacking context tree, or could they be recomputed from the &ComputedValues style of the element that generates this stacking context?
This comment has been minimized.
This comment has been minimized.
mrobinson
Feb 18, 2020
Author
Member
I think they can be recomputed. I can try to organize the code in that way.
This comment has been minimized.
This comment has been minimized.
mrobinson
Feb 18, 2020
Author
Member
Okay. I've pushed a new version of this change that minimizes data members in the StackingContext data structure.
9123459
to
90f1bf0
|
r+ with two changes |
| @@ -414,3 +490,52 @@ impl AnonymousFragment { | |||
| } | |||
| } | |||
| } | |||
|
|
|||
| pub trait ToLayout { | |||
This comment has been minimized.
This comment has been minimized.
SimonSapin
Feb 18, 2020
Member
Could this reuse the geom::ToWebrender trait instead? (And perhaps move it to some other module since it’s not geometry-specific. Perhaps display_list/mod.rs since that’s the module that interacts most with WebRender?)
This comment has been minimized.
This comment has been minimized.
mrobinson
Feb 19, 2020
Author
Member
Great idea. I've moved this to a "conversions" module that is similar to the one in layout_2013.
| @@ -19,5 +19,7 @@ skip: true | |||
| skip: false | |||
| [css-backgrounds] | |||
| skip: false | |||
| [filter-effects] | |||
| skip: false | |||
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
90f1bf0
to
d03560b
|
@bors-servo r=SimonSapin |
|
|
Add layout_2020 support for filters and mix-blend-mode --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
|
|
@bors-servo retry
|
Add layout_2020 support for filters and mix-blend-mode --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
|
Add layout_2020 support for filters and mix-blend-mode --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) <!-- Either: --> - [x] There are tests for these changes OR - [ ] These changes do not require tests because ___ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
mrobinson commentedFeb 18, 2020
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors