Bug 1409243 - Enable dotted and dashed border support for webrender; r=ethlin

MozReview-Commit-ID: 4TGeavMJY2Q

--HG--
extra : rebase_source : 1638dcf7abf66736e17b632fa2ae1f19bbe5e920
This commit is contained in:
Kevin Chen 2017-10-25 10:17:41 +08:00
Родитель 73701c8f36
Коммит 24e2b68f15
4 изменённых файлов: 9 добавлений и 14 удалений

Просмотреть файл

@ -647,10 +647,10 @@ load 1275059.html
load 1278007.html
load 1278080.html
load 1279814.html
load large-border-radius-dashed.html
load large-border-radius-dashed2.html
load large-border-radius-dotted.html
load large-border-radius-dotted2.html
skip-if(webrender) load large-border-radius-dashed.html # see bug 1409243, not handled by webrender
skip-if(webrender) load large-border-radius-dashed2.html # see bug 1409243, not handled by webrender
skip-if(webrender) load large-border-radius-dotted.html # see bug 1409243, not handled by webrender
skip-if(webrender) load large-border-radius-dotted2.html # see bug 1409243, not handled by webrender
load 1278461-1.html
load 1278461-2.html
load 1281102.html

Просмотреть файл

@ -3591,11 +3591,6 @@ nsCSSBorderRenderer::CanCreateWebRenderCommands()
if (mCompositeColors[i] != nullptr) {
return false;
}
if (mBorderStyles[i] == NS_STYLE_BORDER_STYLE_DOTTED ||
mBorderStyles[i] == NS_STYLE_BORDER_STYLE_DASHED) {
return false;
}
}
return true;

Просмотреть файл

@ -5,12 +5,12 @@
# XXX: We mark fails-if to these tests for now to enable styled border in WR.
# We should remove them after Bug 1399485 is fixed.
fuzzy(80,1500) == border-dotted-interaction.html masked.html
fuzzy(80,1500) == border-dotted-no-radius.html masked.html
fuzzy(80,1500) fails-if(webrender) == border-dotted-interaction.html masked.html
fuzzy(80,1500) fails-if(webrender) == border-dotted-no-radius.html masked.html
fuzzy(80,1500) fails-if(webrender) == border-dotted-radius.html masked.html
fuzzy(80,1500) == border-dashed-no-radius.html masked.html
fuzzy(80,1500) fails-if(webrender) == border-dashed-no-radius.html masked.html
fuzzy(80,1500) fails-if(webrender) == border-dashed-radius.html masked.html
fuzzy(80,1500) fails-if(webrender) == border-mixed.html masked.html
fuzzy(80,1500) fails-if(webrender) == border-dashed-non-integer.html masked.html
fuzzy(80,1500) fails-if(webrender) == border-dashed-radius-zoom.html masked-zoom.html
fuzzy(80,1500) == border-dotted-radius-zero.html masked-small.html
fuzzy(80,1500) fails-if(webrender) == border-dotted-radius-zero.html masked-small.html

Просмотреть файл

@ -1,7 +1,7 @@
default-preferences pref(layout.css.box-decoration-break.enabled,true)
== box-decoration-break-1.html box-decoration-break-1-ref.html
fuzzy(1,20) fuzzy-if(skiaContent,1,700) fuzzy-if(webrender,4-4,292-292) == box-decoration-break-with-inset-box-shadow-1.html box-decoration-break-with-inset-box-shadow-1-ref.html
fuzzy(1,20) fuzzy-if(skiaContent,1,700) fuzzy-if(webrender,6-6,250-250) == box-decoration-break-with-inset-box-shadow-1.html box-decoration-break-with-inset-box-shadow-1-ref.html
fuzzy(45,460) fuzzy-if(skiaContent,57,439) fuzzy-if(Android,57,1330) fuzzy-if(styloVsGecko,45,1410) == box-decoration-break-with-outset-box-shadow-1.html box-decoration-break-with-outset-box-shadow-1-ref.html # Bug 1386543
random-if(!gtkWidget) == box-decoration-break-border-image.html box-decoration-break-border-image-ref.html
== box-decoration-break-block-border-padding.html box-decoration-break-block-border-padding-ref.html