-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
layout: Cleanup for replaced elements with widgets #40769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This cleans up the changes done in servo#40578. In particular, it removes the unnecessary `Contents::ReplacedWithWidget` since we can handle that with `Contents::Replaced`. It also removes `IndependentFormattingContextContents::ReplacedWithWidget` in favor of `IndependentFormattingContextContents::Replaced`, by adding an optional parameter for the widget. That ensures that the behavior of replaced elements won't accidentally diverge dependign on whether they have a widget. For example, servo#40578 forgot to handle `ReplacedWithWidget` in `tentative_block_content_size()`. Additionally, this removes the hardcoded especial behavior for `<video>` that was added in `ServoThreadSafeLayoutElement::with_pseudo()`. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
|
🔨 Triggering try run (#19549643033) for Linux (WPT) |
mrobinson
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great cleanup! Thank you.
|
Test results for linux-wpt from try job (#19549643033): Flaky unexpected result (52)
Stable unexpected results that are known to be intermittent (25)
|
|
✨ Try run (#19549643033) succeeded. |
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
|
🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#56153) with upstreamable changes. |
|
✍ Updated existing upstream WPT pull request (web-platform-tests/wpt#56153) title and body. |
This cleans up the changes done in #40578.
In particular, it removes the unnecessary
Contents::ReplacedWithWidgetsince we can handle that withContents::Replaced. It also removesIndependentFormattingContextContents::ReplacedWithWidgetin favor ofIndependentFormattingContextContents::Replaced, by adding an optional parameter for the widget.That ensures that the behavior of replaced elements won't accidentally diverge dependign on whether they have a widget. For example, #40578 forgot to handle
ReplacedWithWidgetintentative_block_content_size().Additionally, this removes the hardcoded especial behavior for
<video>that was added inServoThreadSafeLayoutElement::with_pseudo().Testing: Adding a reftest
Fixes: #40708
Fixes: #40770