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

Side by Side Diff: Source/core/svg/SVGUseElement.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/SVGTextPositioningElement.cpp ('k') | Source/core/svg/SVGViewElement.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, 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, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 5 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
6 * Copyright (C) 2012 University of Szeged 6 * Copyright (C) 2012 University of Szeged
7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org> 7 * Copyright (C) 2012 Renata Hodovan <reni@webkit.org>
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 , m_needsShadowTreeRecreation(false) 69 , m_needsShadowTreeRecreation(false)
70 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired) 70 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired)
71 { 71 {
72 ASSERT(hasCustomStyleCallbacks()); 72 ASSERT(hasCustomStyleCallbacks());
73 ScriptWrappable::init(this); 73 ScriptWrappable::init(this);
74 74
75 addToPropertyMap(m_x); 75 addToPropertyMap(m_x);
76 addToPropertyMap(m_y); 76 addToPropertyMap(m_y);
77 addToPropertyMap(m_width); 77 addToPropertyMap(m_width);
78 addToPropertyMap(m_height); 78 addToPropertyMap(m_height);
79 registerAnimatedPropertiesForSVGUseElement();
80 } 79 }
81 80
82 PassRefPtr<SVGUseElement> SVGUseElement::create(Document& document, bool wasInse rtedByParser) 81 PassRefPtr<SVGUseElement> SVGUseElement::create(Document& document, bool wasInse rtedByParser)
83 { 82 {
84 // Always build a #shadow-root for SVGUseElement. 83 // Always build a #shadow-root for SVGUseElement.
85 RefPtr<SVGUseElement> use = adoptRef(new SVGUseElement(document, wasInserted ByParser)); 84 RefPtr<SVGUseElement> use = adoptRef(new SVGUseElement(document, wasInserted ByParser));
86 use->ensureUserAgentShadowRoot(); 85 use->ensureUserAgentShadowRoot();
87 return use.release(); 86 return use.release();
88 } 87 }
89 88
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 980
982 if (m_resource) 981 if (m_resource)
983 m_resource->removeClient(this); 982 m_resource->removeClient(this);
984 983
985 m_resource = resource; 984 m_resource = resource;
986 if (m_resource) 985 if (m_resource)
987 m_resource->addClient(this); 986 m_resource->addClient(this);
988 } 987 }
989 988
990 } 989 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTextPositioningElement.cpp ('k') | Source/core/svg/SVGViewElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698