Skip to content
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

view-transitions: Clip snapshots to max texture size/viewport. #38946

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Mar 11, 2023

If an element's painting exceeds viewport bounds, clip it down to max
texture size or twice the viewport bounds by painting the subset which
is closest to the snapshot root.

This involves the following 2 changes:

  1. A new ClipNode is introduced to paint the desired subrect when
    rendering this element in paint, raster and compositing. All these
    stages should render only this subset.

  2. The object-view-box on the replaced element is still set to the
    ink overflow rect. So at paint time, we adjust the replaced content
    rect to the actual subset that will be painted based on the clipping
    above.

R=[email protected], [email protected], [email protected]

Bug: 1409713
Change-Id: If81bc67ad6ffe49d68e4470a6717b704edafcd3f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4330193
Reviewed-by: Xianzhu Wang <[email protected]>
Commit-Queue: Khushal Sagar <[email protected]>
Reviewed-by: Philip Rogers <[email protected]>
Auto-Submit: Khushal Sagar <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1121126}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-4330193 branch 2 times, most recently from d047e78 to 671f387 Compare March 15, 2023 04:20
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-4330193 branch 3 times, most recently from 691420b to 134796a Compare March 22, 2023 01:26
@chromium-wpt-export-bot chromium-wpt-export-bot changed the title view-transitions: Clip snapshots to max texture size. view-transitions: Clip snapshots to max texture size/viewport. Mar 22, 2023
@chromium-wpt-export-bot chromium-wpt-export-bot force-pushed the chromium-export-cl-4330193 branch 5 times, most recently from 275ef3f to 2cfa7f5 Compare March 23, 2023 01:23
If an element's painting exceeds viewport bounds, clip it down to max
texture size or twice the viewport bounds by painting the subset which
is closest to the snapshot root.

This involves the following 2 changes:

1) A new ClipNode is introduced to paint the desired subrect when
rendering this element in paint, raster and compositing. All these
stages should render only this subset.

2) The object-view-box on the replaced element is still set to the
ink overflow rect. So at paint time, we adjust the replaced content
rect to the actual subset that will be painted based on the clipping
above.

[email protected], [email protected], [email protected]

Bug: 1409713
Change-Id: If81bc67ad6ffe49d68e4470a6717b704edafcd3f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4330193
Reviewed-by: Xianzhu Wang <[email protected]>
Commit-Queue: Khushal Sagar <[email protected]>
Reviewed-by: Philip Rogers <[email protected]>
Auto-Submit: Khushal Sagar <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1121126}
@sj0602 sj0602 merged commit 87e344f into master Mar 23, 2023
@sj0602 sj0602 deleted the chromium-export-cl-4330193 branch March 23, 2023 18:06
marcoscaceres pushed a commit that referenced this pull request Mar 28, 2023
If an element's painting exceeds viewport bounds, clip it down to max
texture size or twice the viewport bounds by painting the subset which
is closest to the snapshot root.

This involves the following 2 changes:

1) A new ClipNode is introduced to paint the desired subrect when
rendering this element in paint, raster and compositing. All these
stages should render only this subset.

2) The object-view-box on the replaced element is still set to the
ink overflow rect. So at paint time, we adjust the replaced content
rect to the actual subset that will be painted based on the clipping
above.

[email protected], [email protected], [email protected]

Bug: 1409713
Change-Id: If81bc67ad6ffe49d68e4470a6717b704edafcd3f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4330193
Reviewed-by: Xianzhu Wang <[email protected]>
Commit-Queue: Khushal Sagar <[email protected]>
Reviewed-by: Philip Rogers <[email protected]>
Auto-Submit: Khushal Sagar <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1121126}

Co-authored-by: Khushal Sagar <[email protected]>
cookiecrook pushed a commit to cookiecrook/wpt that referenced this pull request Mar 29, 2023
…latform-tests#38946)

If an element's painting exceeds viewport bounds, clip it down to max
texture size or twice the viewport bounds by painting the subset which
is closest to the snapshot root.

This involves the following 2 changes:

1) A new ClipNode is introduced to paint the desired subrect when
rendering this element in paint, raster and compositing. All these
stages should render only this subset.

2) The object-view-box on the replaced element is still set to the
ink overflow rect. So at paint time, we adjust the replaced content
rect to the actual subset that will be painted based on the clipping
above.

[email protected], [email protected], [email protected]

Bug: 1409713
Change-Id: If81bc67ad6ffe49d68e4470a6717b704edafcd3f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4330193
Reviewed-by: Xianzhu Wang <[email protected]>
Commit-Queue: Khushal Sagar <[email protected]>
Reviewed-by: Philip Rogers <[email protected]>
Auto-Submit: Khushal Sagar <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1121126}

Co-authored-by: Khushal Sagar <[email protected]>
cookiecrook pushed a commit to cookiecrook/wpt that referenced this pull request Apr 8, 2023
…latform-tests#38946)

If an element's painting exceeds viewport bounds, clip it down to max
texture size or twice the viewport bounds by painting the subset which
is closest to the snapshot root.

This involves the following 2 changes:

1) A new ClipNode is introduced to paint the desired subrect when
rendering this element in paint, raster and compositing. All these
stages should render only this subset.

2) The object-view-box on the replaced element is still set to the
ink overflow rect. So at paint time, we adjust the replaced content
rect to the actual subset that will be painted based on the clipping
above.

[email protected], [email protected], [email protected]

Bug: 1409713
Change-Id: If81bc67ad6ffe49d68e4470a6717b704edafcd3f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4330193
Reviewed-by: Xianzhu Wang <[email protected]>
Commit-Queue: Khushal Sagar <[email protected]>
Reviewed-by: Philip Rogers <[email protected]>
Auto-Submit: Khushal Sagar <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1121126}

Co-authored-by: Khushal Sagar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants