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

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

Issue 177803003: [SVG] Make all C-macros used in the old property implementation NOOP. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: styles Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGGraphicsElement.cpp ('k') | Source/core/svg/SVGLineElement.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, 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 , m_preserveAspectRatio(SVGAnimatedPreserveAspectRatio::create(this, SVGName s::preserveAspectRatioAttr, SVGPreserveAspectRatio::create())) 48 , m_preserveAspectRatio(SVGAnimatedPreserveAspectRatio::create(this, SVGName s::preserveAspectRatioAttr, SVGPreserveAspectRatio::create()))
49 , m_imageLoader(this) 49 , m_imageLoader(this)
50 , m_needsLoaderURIUpdate(true) 50 , m_needsLoaderURIUpdate(true)
51 { 51 {
52 ScriptWrappable::init(this); 52 ScriptWrappable::init(this);
53 53
54 addToPropertyMap(m_x); 54 addToPropertyMap(m_x);
55 addToPropertyMap(m_y); 55 addToPropertyMap(m_y);
56 addToPropertyMap(m_width); 56 addToPropertyMap(m_width);
57 addToPropertyMap(m_height); 57 addToPropertyMap(m_height);
58
59 addToPropertyMap(m_preserveAspectRatio); 58 addToPropertyMap(m_preserveAspectRatio);
60 registerAnimatedPropertiesForSVGImageElement();
61 } 59 }
62 60
63 PassRefPtr<SVGImageElement> SVGImageElement::create(Document& document) 61 PassRefPtr<SVGImageElement> SVGImageElement::create(Document& document)
64 { 62 {
65 return adoptRef(new SVGImageElement(document)); 63 return adoptRef(new SVGImageElement(document));
66 } 64 }
67 65
68 bool SVGImageElement::currentFrameHasSingleSecurityOrigin() const 66 bool SVGImageElement::currentFrameHasSingleSecurityOrigin() const
69 { 67 {
70 if (RenderSVGImage* renderSVGImage = toRenderSVGImage(renderer())) { 68 if (RenderSVGImage* renderSVGImage = toRenderSVGImage(renderer())) {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 return AtomicString(hrefString()); 224 return AtomicString(hrefString());
227 } 225 }
228 226
229 void SVGImageElement::didMoveToNewDocument(Document& oldDocument) 227 void SVGImageElement::didMoveToNewDocument(Document& oldDocument)
230 { 228 {
231 m_imageLoader.elementDidMoveToNewDocument(); 229 m_imageLoader.elementDidMoveToNewDocument();
232 SVGGraphicsElement::didMoveToNewDocument(oldDocument); 230 SVGGraphicsElement::didMoveToNewDocument(oldDocument);
233 } 231 }
234 232
235 } 233 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGGraphicsElement.cpp ('k') | Source/core/svg/SVGLineElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698