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

Unified Diff: Source/core/layout/LayoutObject.cpp

Issue 1332233002: Invalidate whitespace text on text color changes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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/paint/invalidation/text-decoration-invalidation-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutObject.cpp
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
index ce0831564cfa852a75a2fa0b43278a58674a5a61..af143934febd19d29e1f95c0206fcc496f6031a4 100644
--- a/Source/core/layout/LayoutObject.cpp
+++ b/Source/core/layout/LayoutObject.cpp
@@ -1734,9 +1734,7 @@ StyleDifference LayoutObject::adjustStyleDifference(StyleDifference diff) const
}
if (diff.textOrColorChanged() && !diff.needsPaintInvalidation()) {
- if (style()->hasBorder() || style()->hasOutline()
- || style()->isBackgroundColorCurrentColor()
- || (isText() && !toLayoutText(this)->isAllCollapsibleWhitespace()))
+ if (isText() || style()->hasBorder() || style()->hasOutline() || style()->isBackgroundColorCurrentColor())
chrishtr 2015/09/11 16:49:19 Add a comment about why we're whitelisting only ce
diff.setNeedsPaintInvalidationObject();
}
« no previous file with comments | « LayoutTests/paint/invalidation/text-decoration-invalidation-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698