Index: Source/core/layout/LayoutObject.cpp |
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp |
index ce0831564cfa852a75a2fa0b43278a58674a5a61..8ad1048053ed9ce5295d764e48ee23675bb0825e 100644 |
--- a/Source/core/layout/LayoutObject.cpp |
+++ b/Source/core/layout/LayoutObject.cpp |
@@ -1733,10 +1733,10 @@ StyleDifference LayoutObject::adjustStyleDifference(StyleDifference diff) const |
diff.setNeedsPaintInvalidationLayer(); |
} |
- if (diff.textOrColorChanged() && !diff.needsPaintInvalidation()) { |
+ if (diff.textDecorationOrColorChanged() && !diff.needsPaintInvalidation()) { |
if (style()->hasBorder() || style()->hasOutline() |
|| style()->isBackgroundColorCurrentColor() |
- || (isText() && !toLayoutText(this)->isAllCollapsibleWhitespace())) |
+ || (isText() && !isBR())) |
diff.setNeedsPaintInvalidationObject(); |
} |