Index: third_party/WebKit/Source/core/style/ComputedStyle.cpp |
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp |
index 515e7e830332126a5ef0a529246acbdf3df656b4..531a20e8daa7291b6910f74c0ff6dcece511650f 100644 |
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp |
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp |
@@ -1516,6 +1516,7 @@ FloatRoundedRect ComputedStyle::getRoundedInnerBorderFor( |
bool includeLogicalRightEdge) const { |
LayoutRect innerRect(borderRect); |
innerRect.expand(insets); |
+ innerRect.size().clampNegativeToZero(); |
FloatRoundedRect roundedRect(pixelSnappedIntRect(innerRect)); |