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

Unified Diff: third_party/WebKit/Source/core/layout/svg/SVGResources.h

Issue 2824823003: DOM-based SVG resource tracking (Closed)
Patch Set: Update baselines Created 3 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/SVGResources.h
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGResources.h b/third_party/WebKit/Source/core/layout/svg/SVGResources.h
index 276203ba2e8c9be1ead007d3ea33454fb8922c7c..9773a42abd1ef7d69b24c96b4cd382c78a446ef9 100644
--- a/third_party/WebKit/Source/core/layout/svg/SVGResources.h
+++ b/third_party/WebKit/Source/core/layout/svg/SVGResources.h
@@ -29,6 +29,7 @@
namespace blink {
class ComputedStyle;
+class Element;
class LayoutObject;
class LayoutSVGResourceClipper;
class LayoutSVGResourceContainer;
@@ -48,6 +49,10 @@ class SVGResources {
static std::unique_ptr<SVGResources> BuildResources(const LayoutObject*,
const ComputedStyle&);
+
+ static void RemoveWatchesForElement(Element&);
+ static void RemoveUnreferencedResources(const LayoutObject&);
+
void LayoutIfNeeded();
static bool SupportsMarkers(const SVGElement&);

Powered by Google App Engine
This is Rietveld 408576698