Skip to content

libservo: Remove WebViewInner::rect#41156

Merged
mrobinson merged 1 commit intoservo:mainfrom
mrobinson:remove-webview-rect
Dec 9, 2025
Merged

libservo: Remove WebViewInner::rect#41156
mrobinson merged 1 commit intoservo:mainfrom
mrobinson:remove-webview-rect

Conversation

@mrobinson
Copy link
Copy Markdown
Member

With the removal of the MDI support, a WebView is now always as big as
the RenderingContext onto which it renders. This change removes the
remnant of the MDI support which is the rect property. This was
problematic because it could get out of sync with the size of the
RenderingContext.

This change also adds a test for the case where these could get out of
sync.

Testing: There is a unit test for this change.
Closes: #41148.
Fixes: #41116.

@mrobinson mrobinson requested a review from atbrakhi as a code owner December 9, 2025 13:21
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 9, 2025
With the removal of the MDI support, a `WebView` is now always as big as
the `RenderingContext` onto which it renders. This change removes the
remnant of the MDI support which is the `rect` property. This was
problematic because it could get out of sync with the size of the
`RenderingContext`.

This change also adds a test for the case where these could get out of
sync.

Signed-off-by: Martin Robinson <[email protected]>
@mrobinson mrobinson force-pushed the remove-webview-rect branch from 25ba2de to 78a638e Compare December 9, 2025 14:28
}

pub fn notify_input_event(&self, event: InputEvent) -> InputEventId {
println!("notify: {event:?}");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
println!("notify: {event:?}");

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed in latest force push.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Dec 9, 2025
@mrobinson mrobinson added this pull request to the merge queue Dec 9, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 9, 2025
Merged via the queue into servo:main with commit 6de21e1 Dec 9, 2025
29 checks passed
@mrobinson mrobinson deleted the remove-webview-rect branch December 9, 2025 15:27
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Webviewer Rect isn't recalculated after resize

3 participants