Backed out changeset bf5828257d6e (bug 1752624) for causing reftest failures on caret_on_presshell_reinit-2.html.

This commit is contained in:
Marian-Vasile Laza 2022-03-15 15:18:40 -07:00
parent 535a70075a
commit 21901659f3
4 changed files with 0 additions and 86 deletions

View File

@ -2074,10 +2074,6 @@ void nsCSSBorderRenderer::DrawDottedSideSlow(mozilla::Side aSide) {
// Extend dirty rect to avoid clipping pixel for anti-aliasing.
const Float AA_MARGIN = 2.0f;
// The following algorithm assumes the border's rect and the dirty rect
// intersect.
MOZ_ASSERT(mDirtyRect.Intersects(mOuterRect));
if (aSide == eSideTop) {
// Tweak |from| and |to| to fit into |mDirtyRect + radius margin|,
// to render only paths that may overlap mDirtyRect.
@ -2975,10 +2971,6 @@ void nsCSSBorderRenderer::DrawSolidBorder() {
}
void nsCSSBorderRenderer::DrawBorders() {
if (MOZ_UNLIKELY(!mDirtyRect.Intersects(mOuterRect))) {
return;
}
if (mAllBordersSameStyle && (mBorderStyles[0] == StyleBorderStyle::None ||
mBorderStyles[0] == StyleBorderStyle::Hidden ||
mBorderColors[0] == NS_RGBA(0, 0, 0, 0))) {

View File

@ -1,34 +0,0 @@
<!DOCTYPE html>
<html>
<style>
#offset {
position: absolute;
left: 10px;
top: -150px;
width: 100px;
height: 100px;
border: 1px solid red;
}
#outline-box {
width: 100px;
height: 100px;
position: relative;
}
#overflow-box {
border: 4px solid blue;
width: 10px;
height: 400px;
left: 10px;
top: 100px;
position: absolute;
}
</style>
<body>
<div id="offset">
<div id="outline-box">
<div id="overflow-box">
</div>
</div>
</div>
</body>
</html>

View File

@ -1,43 +0,0 @@
<!DOCTYPE html>
<html>
<style>
/*
* The rendering of the dotted border should be skipped if the border's box
* don't intersect with the dirty rect, even if the child node overflows from
* the border's box and the child node intersect with the dirty rect.
*/
/* Moves the outline-box out of the visible area. */
#offset {
position: absolute;
left: 10px;
top: -150px;
width: 100px;
height: 100px;
border: 1px solid red;
}
#outline-box {
outline: 4px dotted;
width: 100px;
height: 100px;
position: relative;
}
/* Overflows from the parent outline-box, and this is visible. */
#overflow-box {
border: 4px solid blue;
width: 10px;
height: 400px;
left: 10px;
top: 100px;
position: absolute;
}
</style>
<body>
<div id="offset">
<div id="outline-box">
<div id="overflow-box">
</div>
</div>
</div>
</body>
</html>

View File

@ -14,4 +14,3 @@ fuzzy(0-80,0-1500) fails == border-mixed.html masked.html
fuzzy(0-80,0-1500) fails == border-dashed-non-integer.html masked.html
fuzzy(0-80,0-1500) fails fails-if(useDrawSnapshot) == border-dashed-radius-zoom.html masked-zoom.html
fuzzy(0-80,0-1500) fails-if(!useDrawSnapshot) == border-dotted-radius-zero.html masked-small.html
== 1752624.html 1752624-ref.html