Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r186981 - (display: block)input range's thumb disappears when m…
…oved. https://bugs.webkit.org/show_bug.cgi?id=146896 <rdar://problem/21787807> Reviewed by Simon Fraser. Since the thumb is positioned after the layout for the input (shadow) subtree is finished, the repaint rects issued during the layout will not cover the re-positioned thumb. We need to issue a repaint soon after the thumb is re-positioned. Source/WebCore: Test: fast/repaint/block-inputrange-repaint.html * html/shadow/SliderThumbElement.cpp: (WebCore::RenderSliderContainer::layout): LayoutTests: * fast/repaint/block-inputrange-repaint-expected.txt: Added. * fast/repaint/block-inputrange-repaint.html: Added.
- Loading branch information
1 parent
7c167b6
commit 9b6dbb1
Showing
5 changed files
with
66 additions
and
0 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
LayoutTests/fast/repaint/block-inputrange-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 repaintRects.indexOf('495 8 15 15') is not -1 | ||
PASS successfullyParsed is true | ||
|
||
TEST COMPLETE | ||
|
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,28 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<title>This tests when input=range is block we issue correct repaint rects</title> | ||
<script>jsTestIsAsync = true;</script> | ||
<script src="../../resources/js-test-pre.js"></script> | ||
<style> | ||
input[type="range"] { | ||
display: block; | ||
width: 500px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<input id=moveme type=range> | ||
<script> | ||
window.internals.startTrackingRepaints(); | ||
document.getElementById("moveme").value = 100; | ||
document.body.offsetHeight; | ||
if (window.internals) { | ||
repaintRects = window.internals.repaintRectsAsText(); | ||
window.internals.stopTrackingRepaints(); | ||
shouldNotBe("repaintRects.indexOf('495 8 15 15')", "-1"); | ||
finishJSTest(); | ||
} | ||
</script> | ||
</body> | ||
<script src="../../resources/js-test-post.js"></script> | ||
</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
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