Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r184874 - SVG fragment identifier rendering issue
https://bugs.webkit.org/show_bug.cgi?id=137328 Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2015-05-26 Reviewed by Darin Adler. Source/WebCore: This is a follow up for http://trac.webkit.org/changeset/164983. In this changeset, scrolling to the fragment should have been added before the the paint to guarantee setting the proper display position for the SVG fragment. Test: svg/css/svg-resource-fragment-identifier-order.html * svg/graphics/SVGImage.cpp: (WebCore::SVGImage::draw): Move view->scrollToFragment() before calling view->paint(). LayoutTests: * svg/css/svg-resource-fragment-identifier-order-expected.html: Added. * svg/css/svg-resource-fragment-identifier-order.html: Added. Ensure the SVG fragment is drawn correctly when the same SVG image is referenced multiple times.
- Loading branch information
1 parent
fcc6a55
commit 9ca3d62
Showing
5 changed files
with
70 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
19 changes: 19 additions & 0 deletions
19
LayoutTests/svg/css/svg-resource-fragment-identifier-order-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,19 @@ | ||
<html> | ||
<head> | ||
<style> | ||
div { | ||
width: 100px; | ||
height: 100px; | ||
display: inline-block; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div style="background-color: red"></div> | ||
<div style="background-color: red"></div> | ||
<div style="background-color: green"></div> | ||
<div style="background-color: green"></div> | ||
<div style="background-color: blue"></div> | ||
<div style="background-color: blue"></div> | ||
</body> | ||
</html> |
18 changes: 18 additions & 0 deletions
18
LayoutTests/svg/css/svg-resource-fragment-identifier-order.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,18 @@ | ||
<html> | ||
<head> | ||
<style> | ||
img { | ||
width: 100px; | ||
height: 100px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<img src="resources/fragment-identifiers.svg#red"> | ||
<img src="resources/fragment-identifiers.svg#red"> | ||
<img src="resources/fragment-identifiers.svg#green"> | ||
<img src="resources/fragment-identifiers.svg#green"> | ||
<img src="resources/fragment-identifiers.svg#blue"> | ||
<img src="resources/fragment-identifiers.svg#blue"> | ||
</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