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

Side by Side Diff: Source/core/svg/SVGPathSegList.cpp

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 | « Source/core/svg/SVGPathSegList.h ('k') | Source/core/svg/properties/SVGProperty.h » ('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, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 { 51 {
52 ASSERT(contextElement); 52 ASSERT(contextElement);
53 } 53 }
54 54
55 SVGPathSegList::~SVGPathSegList() 55 SVGPathSegList::~SVGPathSegList()
56 { 56 {
57 } 57 }
58 58
59 DEFINE_TRACE(SVGPathSegList) 59 DEFINE_TRACE(SVGPathSegList)
60 { 60 {
61 visitor->trace(m_contextElement);
62 SVGListPropertyHelper<SVGPathSegList, SVGPathSeg>::trace(visitor); 61 SVGListPropertyHelper<SVGPathSegList, SVGPathSeg>::trace(visitor);
63 } 62 }
64 63
65 PassRefPtrWillBeRawPtr<SVGPathSegList> SVGPathSegList::clone() 64 PassRefPtrWillBeRawPtr<SVGPathSegList> SVGPathSegList::clone()
66 { 65 {
67 RefPtrWillBeRawPtr<SVGPathSegList> svgPathSegList = adoptRefWillBeNoop(new S VGPathSegList(m_contextElement, byteStream()->copy())); 66 RefPtrWillBeRawPtr<SVGPathSegList> svgPathSegList = adoptRefWillBeNoop(new S VGPathSegList(m_contextElement, byteStream()->copy()));
68 svgPathSegList->invalidateList(); 67 svgPathSegList->invalidateList();
69 return svgPathSegList.release(); 68 return svgPathSegList.release();
70 } 69 }
71 70
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 } 215 }
217 } 216 }
218 217
219 float SVGPathSegList::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to, SVGElement*) 218 float SVGPathSegList::calculateDistance(PassRefPtrWillBeRawPtr<SVGPropertyBase> to, SVGElement*)
220 { 219 {
221 // FIXME: Support paced animations. 220 // FIXME: Support paced animations.
222 return -1; 221 return -1;
223 } 222 }
224 223
225 } 224 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPathSegList.h ('k') | Source/core/svg/properties/SVGProperty.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698