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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp

Issue 1987943002: [wip] unprefix filter Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Decide on BUG 109224, minor test code tweaks. Created 4 years, 7 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
Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
index 4c95c4a9b3a672ae3c79dfa53bceb4a841face6b..62c55c7e97a0f8888aed865e2aa64d07ed54eaa2 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp
@@ -247,11 +247,11 @@ void LayoutSVGResourceContainer::registerResource()
if (layoutObject->hasLayer() && resourceType() == FilterResourceType) {
if (style.hasFilter())
toLayoutBoxModelObject(layoutObject)->layer()->filterNeedsPaintInvalidation();
- // If this is the SVG root, we could have both 'filter' and
- // '-webkit-filter' applied, so we need to do the invalidation
- // below as well, unless we can optimistically determine that
- // 'filter' does not apply to the element in question.
- if (!layoutObject->isSVGRoot() || !style.svgStyle().hasFilter())
+ // If this is the SVG root, we could have 'filter' applied and
fs 2016/05/23 12:29:53 This comment does make a lot of sense anymore. If
Noel Gordon 2016/05/29 04:15:28 Thanks for the code. I tried it and the two tests
fs 2016/05/30 11:58:52 Yes, this was under the assumption that FilterPain
+ // so need to do the invalidation below as well, unless we can
+ // optimistically determine that filter does not apply to the
+ // element in question.
+ if (!layoutObject->isSVGRoot() || !style.hasFilter())
continue;
}

Powered by Google App Engine
This is Rietveld 408576698