Index: Source/core/style/ComputedStyle.cpp |
diff --git a/Source/core/style/ComputedStyle.cpp b/Source/core/style/ComputedStyle.cpp |
index 2a794d9b9ffcf0615e5f60a824cafb78d3d7db61..d240465c8e5c34b9c1efbbed9a847d8b5127c66f 100644 |
--- a/Source/core/style/ComputedStyle.cpp |
+++ b/Source/core/style/ComputedStyle.cpp |
@@ -1643,13 +1643,13 @@ void ComputedStyle::resetMotionPath() |
rareNonInheritedData.access()->m_transform.access()->m_motion.m_path = nullptr; |
} |
-int ComputedStyle::outlineOutset() const |
+int ComputedStyle::outlineOutsetExtent() const |
{ |
if (!hasOutline()) |
return 0; |
if (outlineStyleIsAuto()) |
return GraphicsContext::focusRingOutsetExtent(outlineOffset(), outlineWidth()); |
- return outlineSize(); |
+ return std::max(0, outlineWidth() + outlineOffset()); |
} |
bool ComputedStyle::columnRuleEquivalent(const ComputedStyle* otherStyle) const |