Index: Source/core/rendering/RenderInline.cpp |
diff --git a/Source/core/rendering/RenderInline.cpp b/Source/core/rendering/RenderInline.cpp |
index c899ad29b54ed756f83256d1112bf14d1f421a8d..29ec91a5c07735aa256eeb79787b2144212cd312 100644 |
--- a/Source/core/rendering/RenderInline.cpp |
+++ b/Source/core/rendering/RenderInline.cpp |
@@ -1460,6 +1460,8 @@ void RenderInline::paintOutlineForLine(GraphicsContext* graphicsContext, const L |
LayoutSize(thisline.width() + offset, thisline.height() + offset)); |
IntRect pixelSnappedBox = pixelSnappedIntRect(box); |
+ if (pixelSnappedBox.width() < 0 || pixelSnappedBox.height() < 0) |
+ return; |
IntRect pixelSnappedLastLine = pixelSnappedIntRect(paintOffset.x() + lastline.x(), 0, lastline.width(), 0); |
IntRect pixelSnappedNextLine = pixelSnappedIntRect(paintOffset.x() + nextline.x(), 0, nextline.width(), 0); |