mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Auto merge of #14471 - heycam:blockification, r=emilio
adjust display style fixup to handle more Gecko cases <!-- Please describe your changes on the following line: --> This tweaks the display property fixup we do when restyling to: * handle the display values that Gecko supports that Servo doesn't * blockify grid items (like we do flex items) * skip the fixup for NAC And while I'm in the area, this sets `nsStyleDisplay::mOriginalDisplay` too. r? @bholley cc @SimonSapin --- <!-- 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: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/14471) <!-- Reviewable:end -->
This commit is contained in:
commit
b5a96e6054
6 changed files with 77 additions and 17 deletions
|
@ -477,6 +477,10 @@ impl<'le> TElement for ServoLayoutElement<'le> {
|
|||
})
|
||||
}
|
||||
}
|
||||
|
||||
fn skip_root_and_item_based_display_fixup(&self) -> bool {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
impl<'le> PartialEq for ServoLayoutElement<'le> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue