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.
Don't ever check for fragment intersections when painting ancestor cl…
…ipping masks, or clip to the compositing container. It doesn't make sense to do this, because (a) it doesn't achieve anything, and similar optimizations are already implemented in CompositedLayerMapping, and (b) it is not quite correct, because the overflow clip of the stacking ancestor is applied before checking fragment intersections, which can be wrong if the descendant is not clipped. This latter condition caused issue 747364. Bug: 749760, 747364 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I1485cc86c2f0dfc222171d1b53eb27f083d2c2c8 Reviewed-on: https://chromium-review.googlesource.com/589825 Reviewed-by: Stephen Chenney <schenney@chromium.org> Commit-Queue: Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/heads/master@{#490502}
- Loading branch information
Showing
4 changed files
with
19 additions
and
3 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
5 changes: 5 additions & 0 deletions
5
...y/WebKit/LayoutTests/compositing/overflow/relpos-under-abspos-border-radius-expected.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,5 @@ | ||
<!DOCTYPE html> | ||
<div id=border-radius style="border-radius: 5px; overflow: hidden; position: absolute; width: 100px; height: 100px; top: 0px; left: 0px; backface-visibility: hidden; "> | ||
<div id=child style="width: 25px; height: 25px; position: relative; background: green; "> | ||
</div> | ||
</div> |
8 changes: 8 additions & 0 deletions
8
third_party/WebKit/LayoutTests/compositing/overflow/relpos-under-abspos-border-radius.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,8 @@ | ||
<!DOCTYPE html> | ||
<!-- Passes if there is a rounded green rect at the top left --> | ||
<div id=root style="margin-left: 200px; margin-top: 200px; width: 20px; height: 20px; opacity: 0.99999; overflow: hidden;"> | ||
<div id=border-radius style="border-radius: 5px; overflow: hidden; position: absolute; width: 100px; height: 100px; top: 0px; left: 0px; backface-visibility: hidden; "> | ||
<div id=child style="width: 25px; height: 25px; position: relative; background: green; "> | ||
</div> | ||
</div> | ||
</div> |
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