Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1275)

Unified Diff: Source/core/rendering/RenderInline.cpp

Issue 192323007: ASSERTION FAILED: y2 >= y1 in WebCore::RenderObject::drawSolidBoxSide (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated fix Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/css/outline-negative-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « LayoutTests/fast/css/outline-negative-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698