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

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

Issue 1455153003: Fix animation of 'color' w/ currentColor for SVG 'fill' and 'stroke' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Draft4 Created 5 years, 1 month 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
Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 1a84b2d5a8b0059f7a2addd3513d932459a2d982..e6adc8173e6fdd331854a1a2e235b4656c71b7f5 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1797,7 +1797,9 @@ StyleDifference LayoutObject::adjustStyleDifference(StyleDifference diff) const
// skipped or we will miss invalidating decorations (e.g., underlines).
|| (isText() && !isBR() && toLayoutText(this)->hasTextBoxes())
// Caret is painted in text color.
- || (isLayoutBlock() && toLayoutBlock(this)->hasCaret()))
+ || (isLayoutBlock() && toLayoutBlock(this)->hasCaret())
+ || (isSVG() && style()->svgStyle().isFillColorCurrentColor())
+ || (isSVG() && style()->svgStyle().isStrokeColorCurrentColor()))
diff.setNeedsPaintInvalidationObject();
}

Powered by Google App Engine
This is Rietveld 408576698