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

Unified Diff: Source/core/svg/SVGDocumentExtensions.h

Issue 1296353004: Store SVGResourcesCache inline in SVGDocumentExtensions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | Source/core/svg/SVGDocumentExtensions.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGDocumentExtensions.h
diff --git a/Source/core/svg/SVGDocumentExtensions.h b/Source/core/svg/SVGDocumentExtensions.h
index 013726fa0b7b20e5db5167ccafd76032f720bcda..f7168c6f4fb87c6ce45f8b2fb67e5206de4bd1b7 100644
--- a/Source/core/svg/SVGDocumentExtensions.h
+++ b/Source/core/svg/SVGDocumentExtensions.h
@@ -21,6 +21,7 @@
#ifndef SVGDocumentExtensions_h
#define SVGDocumentExtensions_h
+#include "core/layout/svg/SVGResourcesCache.h"
#include "platform/geometry/FloatPoint.h"
#include "platform/heap/Handle.h"
#include "wtf/Forward.h"
@@ -33,7 +34,6 @@ namespace blink {
class Document;
class LayoutSVGResourceContainer;
class SubtreeLayoutScope;
-class SVGResourcesCache;
class SVGSVGElement;
class Element;
@@ -60,7 +60,7 @@ public:
void reportWarning(const String&);
void reportError(const String&);
- SVGResourcesCache& resourcesCache() const { return *m_resourcesCache; }
+ SVGResourcesCache& resourcesCache() { return m_resourcesCache; }
void addSVGRootWithRelativeLengthDescendents(SVGSVGElement*);
void removeSVGRootWithRelativeLengthDescendents(SVGSVGElement*);
@@ -83,7 +83,7 @@ private:
HashMap<AtomicString, LayoutSVGResourceContainer*> m_resources;
WillBeHeapHashMap<AtomicString, OwnPtrWillBeMember<SVGPendingElements>> m_pendingResources; // Resources that are pending.
WillBeHeapHashMap<AtomicString, OwnPtrWillBeMember<SVGPendingElements>> m_pendingResourcesForRemoval; // Resources that are pending and scheduled for removal.
- OwnPtr<SVGResourcesCache> m_resourcesCache;
+ SVGResourcesCache m_resourcesCache;
WillBeHeapHashSet<RawPtrWillBeMember<SVGSVGElement>> m_relativeLengthSVGRoots; // Root SVG elements with relative length descendants.
FloatPoint m_translate;
#if ENABLE(ASSERT)
« no previous file with comments | « no previous file | Source/core/svg/SVGDocumentExtensions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698