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

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

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGImageElement.h ('k') | Source/core/svg/SVGInteger.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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Rob Buis <buis@kde.org>
4 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> 4 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 addToPropertyMap(m_y); 45 addToPropertyMap(m_y);
46 addToPropertyMap(m_width); 46 addToPropertyMap(m_width);
47 addToPropertyMap(m_height); 47 addToPropertyMap(m_height);
48 addToPropertyMap(m_preserveAspectRatio); 48 addToPropertyMap(m_preserveAspectRatio);
49 } 49 }
50 50
51 DEFINE_NODE_FACTORY(SVGImageElement) 51 DEFINE_NODE_FACTORY(SVGImageElement)
52 52
53 void SVGImageElement::trace(Visitor* visitor) 53 void SVGImageElement::trace(Visitor* visitor)
54 { 54 {
55 visitor->trace(m_x);
56 visitor->trace(m_y);
57 visitor->trace(m_width);
58 visitor->trace(m_height);
59 visitor->trace(m_preserveAspectRatio);
55 visitor->trace(m_imageLoader); 60 visitor->trace(m_imageLoader);
56 SVGGraphicsElement::trace(visitor); 61 SVGGraphicsElement::trace(visitor);
62 SVGURIReference::trace(visitor);
57 } 63 }
58 64
59 bool SVGImageElement::currentFrameHasSingleSecurityOrigin() const 65 bool SVGImageElement::currentFrameHasSingleSecurityOrigin() const
60 { 66 {
61 if (RenderSVGImage* renderSVGImage = toRenderSVGImage(renderer())) { 67 if (RenderSVGImage* renderSVGImage = toRenderSVGImage(renderer())) {
62 if (renderSVGImage->imageResource()->hasImage()) { 68 if (renderSVGImage->imageResource()->hasImage()) {
63 if (Image* image = renderSVGImage->imageResource()->cachedImage()->i mage()) 69 if (Image* image = renderSVGImage->imageResource()->cachedImage()->i mage())
64 return image->currentFrameHasSingleSecurityOrigin(); 70 return image->currentFrameHasSingleSecurityOrigin();
65 } 71 }
66 } 72 }
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 return AtomicString(hrefString()); 209 return AtomicString(hrefString());
204 } 210 }
205 211
206 void SVGImageElement::didMoveToNewDocument(Document& oldDocument) 212 void SVGImageElement::didMoveToNewDocument(Document& oldDocument)
207 { 213 {
208 imageLoader().elementDidMoveToNewDocument(); 214 imageLoader().elementDidMoveToNewDocument();
209 SVGGraphicsElement::didMoveToNewDocument(oldDocument); 215 SVGGraphicsElement::didMoveToNewDocument(oldDocument);
210 } 216 }
211 217
212 } // namespace blink 218 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/svg/SVGImageElement.h ('k') | Source/core/svg/SVGInteger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698