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