Repository navigation
layout: Make the implementation of used TransformStyle more complete - #45629
Conversation
|
🔨 Triggering try run (#27444187815) for Linux (WPT) |
|
🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#60593) with upstreamable changes. |
|
Test results for linux-wpt from try job (#27444187815): Flaky unexpected result (54)
Stable unexpected results that are known to be intermittent (12)
Stable unexpected results (3)
|
|
|
71d98ed to
598b23d
Compare
get_used_transform_styleTransformStyle more complete
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#60593). |
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#60593) title and body. |
|
🔨 Triggering try run (#27458899534) for Linux (WPT) |
|
Test results for linux-wpt from try job (#27458899534): Flaky unexpected result (52)
Stable unexpected results that are known to be intermittent (11)
|
|
✨ Try run (#27458899534) succeeded. |
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#60593) title and body. |
2 similar comments
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#60593) title and body. |
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#60593) title and body. |
598b23d to
ed059d3
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#60593). |
ed059d3 to
4a9f6fc
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#60593). |
4a9f6fc to
07514dd
Compare
|
@Loirooriol Thanks for the review. Addressed your concerns. |
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#60593). |
07514dd to
295afe9
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#60593). |
| use style::computed_values::mix_blend_mode::{T as ComputedMixBlendMode, T as MixBlendMode}; | ||
| use style::computed_values::position::T as ComputedPosition; | ||
| use style::computed_values::transform_style::T as ComputedTransformStyle; | ||
| use style::computed_values::transform_style::{T as ComputedTransformStyle, T as TransformStyle}; |
There was a problem hiding this comment.
These are also importing twice
Stylo was using a very incomplete method for calculating the used `TransformStyle` for boxes, which didn't incorporate all of the grouping properties from the specification. This change moves the functionality into Servo (as cannot properly compute this value without `FragmentFlags`) and makes it more complete. We still do not process the value of `contain`, `mask-iamge`, and `mask-boarder-source` as we do not support those values yet. Incidentally, this also fixes a panic that we were causing in WebRender, probably by going down a path that Gecko does not exercise. Stylo PR: servo/stylo#388 Signed-off-by: Martin Robinson <[email protected]>
295afe9 to
8f400ee
Compare
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#60593). |
…servo#388) It's not possible to properly calculate these only looking at style, because the results depends on the used `overflow` value. Servo PR: servo/servo#45629 Signed-off-by: Martin Robinson <[email protected]>
…#388) It's not possible to properly calculate these only looking at style, because the results depends on the used `overflow` value. Servo PR: servo/servo#45629 Signed-off-by: Martin Robinson <[email protected]>
Stylo was using a very incomplete method for calculating the used
TransformStylefor boxes, which didn't incorporate all of the groupingproperties from the specification. This change moves the functionality
into Servo (as cannot properly compute this value without
FragmentFlags) and makes it more complete. We still do not process thevalue of
contain,mask-image, andmask-border-sourceas we do notsupport those values yet.
Incidentally, this also fixes a panic that we were causing in WebRender,
probably by going down a path that Gecko does not exercise.
Stylo PR: servo/stylo#388
Testing: This adds a new crashtest. Three other WPT tests start to pass.
Fixes: #42476.