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

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: Updated patch to skip brs, updated expectations 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..c88f17dc01f0487e8d7557846415c8ce8d50427f 100644
--- a/Source/core/layout/LayoutObject.cpp
+++ b/Source/core/layout/LayoutObject.cpp
@@ -1736,7 +1736,7 @@ StyleDifference LayoutObject::adjustStyleDifference(StyleDifference diff) const
if (diff.textOrColorChanged() && !diff.needsPaintInvalidation()) {
chrishtr 2015/09/11 19:54:49 Let's change to textDecorationOrColorChanged().
if (style()->hasBorder() || style()->hasOutline()
|| style()->isBackgroundColorCurrentColor()
- || (isText() && !toLayoutText(this)->isAllCollapsibleWhitespace()))
+ || (isText() && !isBR()))
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