Bug 1465305 - ensure nsDisplayBackgroundColor::Paint begins a new path before adding rectangle. r=jfkthame

This commit is contained in:
Lee Salzman 2018-06-07 11:49:39 -04:00
parent 3f4e2f6df4
commit 0512c7822e
3 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,8 @@
<style>
:not(cursor) {
-webkit-background-clip: text;
border-top-right-radius: 0vh;
}
</style>
><input>
<dialog open="">

View File

@ -11,3 +11,5 @@ load 1428906-1.html
skip-if(webrender) load 1430589-1.html # bug 1421825 for webrender
load 1454105-1.html
load 1455944-1.html
load 1465305-1.html

View File

@ -4850,6 +4850,7 @@ nsDisplayBackgroundColor::Paint(nsDisplayListBuilder* aBuilder,
}
ctx->SetColor(mColor);
ctx->NewPath();
ctx->Rectangle(bounds, true);
ctx->Fill();
ctx->PopGroupAndBlend();