mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 763133 - border-radius not clipping SVG contents. r=bzbarsky
This commit is contained in:
parent
3b397ad01b
commit
3fd65ea12a
13
layout/reftests/svg/border-radius-01.html
Normal file
13
layout/reftests/svg/border-radius-01.html
Normal file
@ -0,0 +1,13 @@
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body style="background-color: lime;">
|
||||
<svg width="300" height="300"
|
||||
style="border-radius: 200px; overflow: hidden; background-color: red; position: absolute;">
|
||||
<rect width="300" height="300" fill="red"/>
|
||||
</svg>
|
||||
<svg width="300" height="300" style="position: absolute;">
|
||||
<circle cx="150" cy="150" r="155" fill="lime"/>
|
||||
</svg>
|
||||
</body>
|
||||
</html>
|
@ -23,6 +23,7 @@ include moz-only/reftest.list
|
||||
include svg-integration/reftest.list
|
||||
|
||||
== altGlyph-01.svg altGlyph-01-ref.svg
|
||||
== border-radius-01.html pass.svg
|
||||
== cssComment-in-attribute-01.svg cssComment-in-attribute-01-ref.svg
|
||||
== clip-01.svg pass.svg
|
||||
== clip-02a.svg clip-02-ref.svg
|
||||
|
@ -626,8 +626,15 @@ nsSVGOuterSVGFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
nsresult rv = DisplayBorderBackgroundOutline(aBuilder, aLists);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
return aLists.Content()->AppendNewToTop(
|
||||
nsDisplayList replacedContent;
|
||||
|
||||
rv = replacedContent.AppendNewToTop(
|
||||
new (aBuilder) nsDisplaySVG(aBuilder, this));
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
WrapReplacedContentForBorderRadius(aBuilder, &replacedContent, aLists);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user