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

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

Issue 869323003: Oilpan: move RenderObjects off heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review-induced improvements Created 5 years, 10 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/rendering/svg/RenderSVGRoot.cpp ('k') | Source/core/svg/PatternAttributes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/LinearGradientAttributes.h
diff --git a/Source/core/svg/LinearGradientAttributes.h b/Source/core/svg/LinearGradientAttributes.h
index 4aafd012ce352939881f11865c1b4512f7507344..0e5b254c7690fecd53d05f29dfaf4edad708ea61 100644
--- a/Source/core/svg/LinearGradientAttributes.h
+++ b/Source/core/svg/LinearGradientAttributes.h
@@ -78,6 +78,28 @@ private:
bool m_y2Set : 1;
};
+#if ENABLE(OILPAN)
+// Wrapper object for the LinearGradientAttributes part object.
+class LinearGradientAttributesWrapper : public GarbageCollectedFinalized<LinearGradientAttributesWrapper> {
+public:
+ static LinearGradientAttributesWrapper* create()
+ {
+ return new LinearGradientAttributesWrapper;
+ }
+
+ LinearGradientAttributes& attributes() { return m_attributes; }
+ void set(const LinearGradientAttributes& attributes) { m_attributes = attributes; }
+ void trace(Visitor* visitor) { visitor->trace(m_attributes); }
+
+private:
+ LinearGradientAttributesWrapper()
+ {
+ }
+
+ LinearGradientAttributes m_attributes;
+};
+#endif
+
} // namespace blink
#endif
« no previous file with comments | « Source/core/rendering/svg/RenderSVGRoot.cpp ('k') | Source/core/svg/PatternAttributes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698