mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Auto merge of #16891 - kvark:preserve3d, r=glennw,emilio
Using TransformStyle::Preserve3D <!-- Please describe your changes on the following line: --> The changes were reviewed previously as a part of WR update PRs, but then we decided to move them out. r? @emilio --- <!-- 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. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16891) <!-- Reviewable:end -->
This commit is contained in:
commit
a5ff57b20f
9 changed files with 79 additions and 57 deletions
|
@ -2470,7 +2470,10 @@ impl Fragment {
|
|||
if self.style().get_effects().mix_blend_mode != mix_blend_mode::T::normal {
|
||||
return true
|
||||
}
|
||||
if self.style().get_box().transform.0.is_some() {
|
||||
|
||||
if self.style().get_box().transform.0.is_some() ||
|
||||
self.style().get_box().transform_style == transform_style::T::preserve_3d ||
|
||||
self.style().overrides_transform_style() {
|
||||
return true
|
||||
}
|
||||
|
||||
|
@ -2485,13 +2488,6 @@ impl Fragment {
|
|||
return true
|
||||
}
|
||||
|
||||
match self.style().get_used_transform_style() {
|
||||
transform_style::T::flat | transform_style::T::preserve_3d => {
|
||||
return true
|
||||
}
|
||||
transform_style::T::auto => {}
|
||||
}
|
||||
|
||||
match (self.style().get_box().position,
|
||||
self.style().get_position().z_index,
|
||||
self.style().get_box().overflow_x,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue