diff --git a/layout/painting/nsCSSRenderingBorders.cpp b/layout/painting/nsCSSRenderingBorders.cpp index 166d919e31cb..ec925465b90a 100644 --- a/layout/painting/nsCSSRenderingBorders.cpp +++ b/layout/painting/nsCSSRenderingBorders.cpp @@ -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))) { diff --git a/layout/reftests/border-dotted/1752624-ref.html b/layout/reftests/border-dotted/1752624-ref.html deleted file mode 100644 index 7d465c930b6e..000000000000 --- a/layout/reftests/border-dotted/1752624-ref.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - -
-
-
-
-
-
- - diff --git a/layout/reftests/border-dotted/1752624.html b/layout/reftests/border-dotted/1752624.html deleted file mode 100644 index 116c34b2cdf0..000000000000 --- a/layout/reftests/border-dotted/1752624.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - -
-
-
-
-
-
- - diff --git a/layout/reftests/border-dotted/reftest.list b/layout/reftests/border-dotted/reftest.list index 3623b2333263..712f9fab046b 100644 --- a/layout/reftests/border-dotted/reftest.list +++ b/layout/reftests/border-dotted/reftest.list @@ -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