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

Unified Diff: Source/core/css/resolver/StyleResourceLoader.h

Issue 998333002: Oilpan: turn StyleResourceLoader into a traced part object. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | « Source/core/css/resolver/StyleResolver.cpp ('k') | Source/core/css/resolver/StyleResourceLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleResourceLoader.h
diff --git a/Source/core/css/resolver/StyleResourceLoader.h b/Source/core/css/resolver/StyleResourceLoader.h
index ae45c12a9812fb7d0a768a8de30e808839fb1aa7..f4d5a66f7a81cd60153e91b9a657cceade22f539 100644
--- a/Source/core/css/resolver/StyleResourceLoader.h
+++ b/Source/core/css/resolver/StyleResourceLoader.h
@@ -23,8 +23,8 @@
#ifndef StyleResourceLoader_h
#define StyleResourceLoader_h
-#include "wtf/OwnPtr.h"
-#include "wtf/PassRefPtr.h"
+#include "platform/heap/Handle.h"
+#include "wtf/Forward.h"
namespace blink {
@@ -39,13 +39,16 @@ class StylePendingImage;
// Manages loading of resources, requested by the stylesheets.
// Expects the same lifetime as StyleResolver, because
// it expects Document to never change.
-class StyleResourceLoader {
-WTF_MAKE_NONCOPYABLE(StyleResourceLoader);
+class StyleResourceLoader final {
+ WTF_MAKE_NONCOPYABLE(StyleResourceLoader);
+ DISALLOW_ALLOCATION();
public:
explicit StyleResourceLoader(Document*);
void loadPendingResources(LayoutStyle*, ElementStyleResources&);
+ DECLARE_TRACE();
+
private:
void loadPendingSVGDocuments(LayoutStyle*, ElementStyleResources&);
@@ -53,7 +56,7 @@ private:
void loadPendingImages(LayoutStyle*, ElementStyleResources&);
void loadPendingShapeImage(LayoutStyle*, ShapeValue*, float deviceScaleFactor);
- Document* m_document;
+ RawPtrWillBeMember<Document> m_document;
};
} // namespace blink
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | Source/core/css/resolver/StyleResourceLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698