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

Unified Diff: third_party/WebKit/Source/core/paint/SVGRootPainter.cpp

Issue 1899243002: Get rid of SVGLayoutSupport::filtersForceContainerLayout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/paint/SVGRootPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/SVGRootPainter.cpp b/third_party/WebKit/Source/core/paint/SVGRootPainter.cpp
index 619179fd1365042b2ee5616e541f46aee705675b..2ad1e41e5b46fd654750170d8bccc92aa998489f 100644
--- a/third_party/WebKit/Source/core/paint/SVGRootPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/SVGRootPainter.cpp
@@ -5,8 +5,7 @@
#include "core/paint/SVGRootPainter.h"
#include "core/layout/svg/LayoutSVGRoot.h"
-#include "core/layout/svg/SVGResources.h"
-#include "core/layout/svg/SVGResourcesCache.h"
+#include "core/layout/svg/SVGLayoutSupport.h"
#include "core/paint/BoxPainter.h"
#include "core/paint/ObjectPaintProperties.h"
#include "core/paint/PaintInfo.h"
@@ -41,11 +40,8 @@ void SVGRootPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paintO
return;
// Don't paint if we don't have kids, except if we have filters we should paint those.
- if (!m_layoutSVGRoot.firstChild()) {
- SVGResources* resources = SVGResourcesCache::cachedResourcesForLayoutObject(&m_layoutSVGRoot);
- if (!resources || !resources->filter())
- return;
- }
+ if (!m_layoutSVGRoot.firstChild() && !SVGLayoutSupport::hasFilterResource(m_layoutSVGRoot))
+ return;
PaintInfo paintInfoBeforeFiltering(paintInfo);

Powered by Google App Engine
This is Rietveld 408576698