Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r173046 - Scrollbar corner can be drawn outside containing frame
https://bugs.webkit.org/show_bug.cgi?id=133131 <rdar://problem/16382769> Reviewed by Simon Fraser. Source/WebCore: Merged from Blink (patch by Levi Weintraub): <https://src.chromium.org/viewvc/blink?revision=170625&view=revision> Fixes an issue where the scroll corner may be painted outside the rectangle of its associated frame by setting a clip rectangle before painting the scroll bar(s) and scroll corner. Test: scrollbars/custom-scrollbars-paint-outside-iframe.html * platform/ScrollView.cpp: (WebCore::ScrollView::paint): LayoutTests: Add DRT test that was derived from the test included in <https://src.chromium.org/viewvc/blink?revision=170625&view=revision>. * scrollbars/custom-scrollbars-paint-outside-iframe-expected.html: Added. * scrollbars/custom-scrollbars-paint-outside-iframe.html: Added.
- Loading branch information
1 parent
7549f98
commit 9b7db21
Showing
5 changed files
with
85 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
25 changes: 25 additions & 0 deletions
25
LayoutTests/scrollbars/custom-scrollbars-paint-outside-iframe-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,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.waitUntilDone(); | ||
|
||
function done() | ||
{ | ||
if (window.testRunner) | ||
testRunner.notifyDone(); | ||
} | ||
</script> | ||
</head> | ||
<body style="margin: 0px"> | ||
<div style="background-color: green; width: 100px; height: 100px"></div> | ||
<p>This tests ensures that themed scrollbars are clipped to their iframe. You should see a green box above.</p> | ||
<iframe style="position: absolute; top: 100px; left: 100px;" width="1" height="1" srcdoc=" | ||
<html><head><style> | ||
html,body {width:200px; height:100px;} | ||
::-webkit-scrollbar {height: 1px; width: 1px;} | ||
::-webkit-scrollbar-corner {background-color: red;} | ||
</style></head></html>" onload="done()"></iframe> | ||
</body> | ||
</html> |
25 changes: 25 additions & 0 deletions
25
LayoutTests/scrollbars/custom-scrollbars-paint-outside-iframe.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,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<script> | ||
if (window.testRunner) | ||
testRunner.waitUntilDone(); | ||
|
||
function done() | ||
{ | ||
if (window.testRunner) | ||
testRunner.notifyDone(); | ||
} | ||
</script> | ||
</head> | ||
<body style="margin: 0px"> | ||
<div style="background-color: green; width: 100px; height: 100px"></div> | ||
<p>This tests ensures that themed scrollbars are clipped to their iframe. You should see a green box above.</p> | ||
<iframe style="position: absolute; top: 100px; left: 100px;" width="1" height="1" srcdoc=" | ||
<html><head><style> | ||
html,body {width:200px; height:100px;} | ||
::-webkit-scrollbar {height: 200px; width: 200px;} | ||
::-webkit-scrollbar-corner {background-color: red;} | ||
</style></head></html>" onload="done()"></iframe> | ||
</body> | ||
</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