Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
2009-03-09 Simon Fraser <simon.fraser@apple.com>
Reviewed by Dan Bernstein, Oliver Hunt https://bugs.webkit.org/show_bug.cgi?id=24475 When repainting replaced elements, need to union the selection and overflow rects because either may extend outside the other. Test: fast/repaint/transform-replaced-shadows.html * rendering/RenderReplaced.cpp: (WebCore::RenderReplaced::clippedOverflowRectForRepaint): Canonical link: https://commits.webkit.org/33611@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@41545 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
7 changed files
with
74 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
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,33 @@ | ||
<html> | ||
<head> | ||
<title>Scaling and box-shadow</title> | ||
<style type="text/css" media="screen"> | ||
#box { | ||
height: 100px; | ||
width: 100px; | ||
margin: 20px; | ||
background-color: gray; | ||
-webkit-transform-origin: top left; | ||
-webkit-box-shadow: 0px 20px 20px black; | ||
-webkit-transform: scale(2); | ||
} | ||
|
||
#box.smaller { | ||
-webkit-transform: scale(1); | ||
} | ||
</style> | ||
|
||
<script src="repaint.js" type="text/javascript" charset="utf-8"></script> | ||
<script type="text/javascript" charset="utf-8"> | ||
function repaintTest() | ||
{ | ||
document.getElementById('box').className = 'smaller'; | ||
} | ||
</script> | ||
</head> | ||
<body onload="runRepaintTest()"> | ||
|
||
<img id="box"> | ||
|
||
</body> | ||
</html> |
1 change: 1 addition & 0 deletions
1
LayoutTests/platform/mac/fast/repaint/transform-replaced-shadows-expected.checksum
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 @@ | ||
158602fb51ff2bbc218008a57713fb0b |
Binary file added
BIN
+13.9 KB
LayoutTests/platform/mac/fast/repaint/transform-replaced-shadows-expected.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions
10
LayoutTests/platform/mac/fast/repaint/transform-replaced-shadows-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,10 @@ | ||
layer at (0,0) size 800x600 | ||
RenderView at (0,0) size 800x600 | ||
layer at (0,0) size 800x600 | ||
RenderBlock {HTML} at (0,0) size 800x600 | ||
RenderBody {BODY} at (8,8) size 784x584 | ||
RenderText {#text} at (0,0) size 0x0 | ||
RenderText {#text} at (0,0) size 0x0 | ||
RenderText {#text} at (0,0) size 0x0 | ||
layer at (28,28) size 120x140 | ||
RenderImage {IMG} at (20,20) size 100x100 [bgcolor=#808080] |
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