forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make window.resizeTo() resize the web contents in web tests.
The resizeTo() method is doing nothing in content_shell currently. Tests that want a resize are either accidentally doing nothing or call useUnfortunateSynchronousResizeMode() to fake out the resize in the renderer. This implements WebContentsDelegate::SetContentsBounds() in Shell, for web tests, to resize the web contents to the specified size. This is not perfect, even though the web contents is resized, the window rect is not changed as that comes from the WebContents UI view. For mac headless we have already plumbed the web contents' size to override the window rect so we can get the right values there. For aura, we are unable to do the same at this time, so after calling resizeTo, a resizeBy will do the wrong thing as it relies on the window rect. As most tests that try to resize useUnfortunateSynchronousResizeMode(), they will not notice this problem. R=avi@chromium.org Bug: 891427 Change-Id: I95f95b7fa8631a364988769ba3d4259bfef17f30 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2238384 Commit-Queue: danakj <danakj@chromium.org> Reviewed-by: Avi Drissman <avi@chromium.org> Cr-Commit-Position: refs/heads/master@{#776982}
- Loading branch information
Showing
11 changed files
with
20 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
third_party/blink/web_tests/paint/invalidation/svg/viewport-mask-update-expected.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters