-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid some repaints in RenderElement::repaintAfterLayoutIfNeeded()
https://bugs.webkit.org/show_bug.cgi?id=264275 rdar://118014812 Reviewed by Alan Baradlay. In RenderElement::repaintAfterLayoutIfNeeded(), we repaint both the old and the new clippedOverflowRect in the `fullRepaint` code path. But these rectangles might overlap; we only need to repaint both if one does not contain the other. The `contains` checks also take care of the equality check. * LayoutTests/fast/css-grid-layout/grid-element-change-columns-repaint-expected.txt: * LayoutTests/fast/css-grid-layout/grid-element-change-rows-repaint-expected.txt: * LayoutTests/fast/css-grid-layout/grid-item-change-column-repaint-expected.txt: * LayoutTests/fast/css-grid-layout/grid-item-change-row-repaint-expected.txt: * LayoutTests/fast/repaint/align-items-overflow-change-expected.txt: * LayoutTests/fast/repaint/border-radius-repaint-2-expected.txt: * LayoutTests/fast/repaint/focus-ring-repaint-expected.txt: * LayoutTests/fast/repaint/justify-items-change-expected.txt: * LayoutTests/fast/repaint/justify-items-legacy-change-expected.txt: * LayoutTests/fast/repaint/justify-items-overflow-change-expected.txt: * LayoutTests/fast/repaint/justify-self-change-expected.txt: * LayoutTests/fast/repaint/reflection-table-layout-expected.txt: * LayoutTests/fast/repaint/repaint-float-only-and-moves-expected.txt: * LayoutTests/fast/repaint/text-content-shrinks-repaint-expected.txt: * LayoutTests/fast/repaint/text-content-shrinks-repaint.html: * LayoutTests/fast/repaint/transform-table-layout-expected.txt: * LayoutTests/platform/ios-wk2/fast/repaint/focus-ring-repaint-expected.txt: * LayoutTests/platform/ios-wk2/fast/repaint/placeholder-after-caps-lock-hidden-expected.txt: * LayoutTests/platform/ios-wk2/fast/repaint/text-content-shrinks-repaint-expected.txt: Copied from LayoutTests/fast/repaint/text-content-shrinks-repaint-expected.txt. * LayoutTests/platform/ios/fast/repaint/border-radius-repaint-2-expected.txt: * LayoutTests/platform/mac-wk1/fast/repaint/border-radius-repaint-2-expected.txt: * LayoutTests/platform/mac-wk2/fast/repaint/placeholder-after-caps-lock-hidden-expected.txt: * Source/WebCore/rendering/RenderElement.cpp: (WebCore::RenderElement::repaintAfterLayoutIfNeeded): Canonical link: https://commits.webkit.org/270370@main
- Loading branch information
Showing
28 changed files
with
55 additions
and
99 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
Repaint rects: | ||
|
||
(repaint rects | ||
(rect 38 30 100 100) | ||
(rect 20 12 156 156) | ||
(rect 8 12 784 18) | ||
) | ||
|
1 change: 0 additions & 1 deletion
1
LayoutTests/fast/css-grid-layout/grid-element-change-columns-repaint-expected.txt
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
This test checks that changing the grid-template-columns lead to a repaint. The final grid element should be 250px * 50px, the grid item should be 50px * 50px. No trace of the elements before the grid-template-columns change should be seen. | ||
(repaint rects | ||
(rect 8 48 100 50) | ||
(rect 8 48 50 50) | ||
(rect 8 48 250 50) | ||
) | ||
|
1 change: 0 additions & 1 deletion
1
LayoutTests/fast/css-grid-layout/grid-element-change-rows-repaint-expected.txt
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
1 change: 0 additions & 1 deletion
1
LayoutTests/fast/css-grid-layout/grid-item-change-column-repaint-expected.txt
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
1 change: 0 additions & 1 deletion
1
LayoutTests/fast/css-grid-layout/grid-item-change-row-repaint-expected.txt
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
LayoutTests/fast/repaint/border-radius-repaint-2-expected.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
(repaint rects | ||
(rect 7 8 2 1) | ||
(rect 6 8 4 2) | ||
(rect -92 9 200 1) | ||
(rect -92 8 200 2) | ||
|
1 change: 0 additions & 1 deletion
1
LayoutTests/fast/repaint/repaint-float-only-and-moves-expected.txt
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
(repaint rects | ||
(rect 8 8 100 50) | ||
(rect 8 8 200 50) | ||
(rect 8 8 200 50) | ||
(rect 108 8 100 100) | ||
|
5 changes: 4 additions & 1 deletion
5
LayoutTests/fast/repaint/text-content-shrinks-repaint-expected.txt
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
Pass if this line is properly repainted. | ||
PASS | ||
(repaint rects | ||
(rect 8 8 480 23) | ||
) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
(repaint rects | ||
(rect 8 108 1 1) | ||
(rect 8 108 2 2) | ||
(rect 8 109 100 1) | ||
(rect 8 108 100 2) | ||
|
7 changes: 7 additions & 0 deletions
7
LayoutTests/platform/ios-wk2/fast/box-shadow/shadow-repaint-expected.txt
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,7 @@ | ||
Repaint rects: | ||
|
||
(repaint rects | ||
(rect 20 12 156 156) | ||
(rect 8 12 784 18) | ||
) | ||
|
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
5 changes: 5 additions & 0 deletions
5
LayoutTests/platform/ios-wk2/fast/repaint/text-content-shrinks-repaint-expected.txt
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 @@ | ||
Pass if this line is properly repainted. | ||
(repaint rects | ||
(rect 8 8 480 21) | ||
) | ||
|
2 changes: 0 additions & 2 deletions
2
LayoutTests/platform/ios/fast/repaint/border-radius-repaint-2-expected.txt
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
LayoutTests/platform/mac-wk1/fast/repaint/border-radius-repaint-2-expected.txt
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
4 changes: 4 additions & 0 deletions
4
LayoutTests/platform/mac-wk1/fast/repaint/placeholder-after-caps-lock-hidden-expected.txt
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,4 @@ | ||
Tests that the placeholder text is repainted when the caps lock indicator is hidden. | ||
|
||
|
||
|
26 changes: 0 additions & 26 deletions
26
LayoutTests/platform/mac-wk2/fast/repaint/placeholder-after-caps-lock-hidden-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