Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Subpixel rendering: RenderLayer's clipping should snap to device pixe…
…l boundaries. https://bugs.webkit.org/show_bug.cgi?id=131466 Reviewed by Simon Fraser. Fractional pixel clipping can produce cruft on RenderLayers. Since RenderLayer sizing and painting are snapped, painting clip rect needs to be snapped the same way. Source/WebCore: Test: fast/clip/clip-when-rect-has-fractional-pixel-value.html * rendering/RenderLayer.cpp: (WebCore::RenderLayer::clipToRect): LayoutTests: * fast/clip/clip-when-rect-has-fractional-pixel-value-expected.html: Added. * fast/clip/clip-when-rect-has-fractional-pixel-value.html: Added. Canonical link: https://commits.webkit.org/149982@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@167562 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
bd46a9a
commit d1ab07182011638c64a3b2458ec70250d368ab6f
Showing
5 changed files
with
71 additions
and
2 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,19 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>This tests that clipping a block element does not leave cruft behind.</title> | ||
<style> | ||
div { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100px; | ||
height: 72px; | ||
background-color: yellow; | ||
-webkit-transform: translateZ(0); | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div></div> | ||
</body> |
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,21 @@ | ||
<html> | ||
<head> | ||
<title>This tests that clipping a block element does not leave cruft behind.</title> | ||
<style> | ||
div { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
clip: rect(0, 100, 6.5em, 0); | ||
font-size: 11px; | ||
background-color: yellow; | ||
-webkit-transform: translateZ(0); | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div></div> | ||
</body> | ||
|
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