Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure correct paint property state when painting floating objects
Before the regression, most of paint state adjustments were done in PaintLayerPainter. After we fixed the fundamental compositing bug by not forcing self-painting PaintLayer for some elements and create PaintOffsetTranslation for non-PaintLayers in more cases, the issue of missing paint state adjustments was exposed in more cases. This CL ensures correct paint state when painting floating objects. (cherry picked from commit 6626576) Bug: 1298871 Change-Id: Ifc16af5459ad34c30059229b9d75e825c84edb75 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3516735 Reviewed-by: Morten Stenshorne <mstensho@chromium.org> Reviewed-by: Philip Rogers <pdr@chromium.org> Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#981629} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3538160 Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/branch-heads/4896@{#704} Cr-Branched-From: 1f63ff4-refs/heads/main@{#972766}
- Loading branch information
1 parent
51c1089
commit 0c705fc
Showing
3 changed files
with
37 additions
and
27 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
10 changes: 10 additions & 0 deletions
10
...y/blink/web_tests/external/wpt/css/CSS2/floats/float-under-flatten-under-preserve-3d.html
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> | ||
<link rel="help" href="https://drafts.csswg.org/css2/visuren.html#float-position"> | ||
<link rel="help" href="https://crbug.com/1298871"> | ||
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p> | ||
<div style="transform-style: preserve-3d"> | ||
<div style="background: red; width: 100px; height: 100px"> | ||
<div style="float: left; background: green; width: 100px; height: 100px"></div> | ||
</div> | ||
</div> |