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

Unified Diff: Source/core/rendering/style/SVGRenderStyleDefs.h

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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/style/SVGRenderStyle.h ('k') | Source/core/rendering/style/StyleFilterData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/style/SVGRenderStyleDefs.h
diff --git a/Source/core/rendering/style/SVGRenderStyleDefs.h b/Source/core/rendering/style/SVGRenderStyleDefs.h
index b134e8e91d75b1e1a4ec344c4b9bc96cabf0ef20..2c0ee620c100a71ba5175805621f01ceb22fe577 100644
--- a/Source/core/rendering/style/SVGRenderStyleDefs.h
+++ b/Source/core/rendering/style/SVGRenderStyleDefs.h
@@ -140,8 +140,15 @@ namespace blink {
class StyleStrokeData : public RefCounted<StyleStrokeData> {
public:
- static PassRefPtr<StyleStrokeData> create() { return adoptRef(new StyleStrokeData); }
- PassRefPtr<StyleStrokeData> copy() const { return adoptRef(new StyleStrokeData(*this)); }
+ static PassRefPtr<StyleStrokeData> create()
+ {
+ return adoptRef(new StyleStrokeData);
+ }
+
+ PassRefPtr<StyleStrokeData> copy() const
+ {
+ return adoptRef(new StyleStrokeData(*this));
+ }
bool operator==(const StyleStrokeData&) const;
bool operator!=(const StyleStrokeData& other) const
@@ -152,9 +159,9 @@ namespace blink {
float opacity;
float miterLimit;
- RefPtr<SVGLength> width;
- RefPtr<SVGLength> dashOffset;
- RefPtr<SVGLengthList> dashArray;
+ RefPtrWillBePersistent<SVGLength> width;
+ RefPtrWillBePersistent<SVGLength> dashOffset;
+ RefPtrWillBePersistent<SVGLengthList> dashArray;
SVGPaintType paintType;
Color paintColor;
@@ -203,7 +210,7 @@ namespace blink {
float floodOpacity;
Color lightingColor;
- RefPtr<SVGLength> baselineShiftValue;
+ RefPtrWillBePersistent<SVGLength> baselineShiftValue;
private:
StyleMiscData();
« no previous file with comments | « Source/core/rendering/style/SVGRenderStyle.h ('k') | Source/core/rendering/style/StyleFilterData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698