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

Side by Side Diff: Source/core/svg/SVGPathSeg.h

Issue 1328223002: Avoid a SVG property list-induced leak (Oilpan). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/svg/SVGPathSeg.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 static PassRefPtrWillBeRawPtr<SVGPathSeg> create() { ASSERT_NOT_REACHED(); r eturn nullptr; } 156 static PassRefPtrWillBeRawPtr<SVGPathSeg> create() { ASSERT_NOT_REACHED(); r eturn nullptr; }
157 virtual PassRefPtrWillBeRawPtr<SVGPathSeg> clone() = 0; 157 virtual PassRefPtrWillBeRawPtr<SVGPathSeg> clone() = 0;
158 158
159 DECLARE_VIRTUAL_TRACE(); 159 DECLARE_VIRTUAL_TRACE();
160 160
161 protected: 161 protected:
162 void commitChange(); 162 void commitChange();
163 163
164 private: 164 private:
165 RawPtrWillBeMember<SVGPropertyBase> m_ownerList; 165 RawPtrWillBeMember<SVGPropertyBase> m_ownerList;
166 RawPtrWillBeMember<SVGElement> m_contextElement; 166 GC_PLUGIN_IGNORE("528275")
167 SVGElement* m_contextElement;
167 }; 168 };
168 169
169 class SVGPathSegSingleCoordinate : public SVGPathSeg { 170 class SVGPathSegSingleCoordinate : public SVGPathSeg {
170 public: 171 public:
171 float x() const { return m_x; } 172 float x() const { return m_x; }
172 void setX(float x) 173 void setX(float x)
173 { 174 {
174 m_x = x; 175 m_x = x;
175 commitChange(); 176 commitChange();
176 } 177 }
(...skipping 14 matching lines...) Expand all
191 } 192 }
192 193
193 private: 194 private:
194 float m_x; 195 float m_x;
195 float m_y; 196 float m_y;
196 }; 197 };
197 198
198 } // namespace blink 199 } // namespace blink
199 200
200 #endif // SVGPathSeg_h 201 #endif // SVGPathSeg_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/svg/SVGPathSeg.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698