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

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: Created 5 years 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 9b54b8cf5f9b6d67a572ec41be4774138e0626f1..2f3fd7d020e7cefb880d6f97514219beff643837 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1796,7 +1796,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