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

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

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGTransformTearOff.cpp ('k') | Source/core/svg/SVGVKernElement.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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 , SVGURIReference(this) 49 , SVGURIReference(this)
50 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len gthModeWidth), AllowNegativeLengths)) 50 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len gthModeWidth), AllowNegativeLengths))
51 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len gthModeHeight), AllowNegativeLengths)) 51 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len gthModeHeight), AllowNegativeLengths))
52 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr eate(LengthModeWidth), ForbidNegativeLengths)) 52 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr eate(LengthModeWidth), ForbidNegativeLengths))
53 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength:: create(LengthModeHeight), ForbidNegativeLengths)) 53 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength:: create(LengthModeHeight), ForbidNegativeLengths))
54 , m_haveFiredLoadEvent(false) 54 , m_haveFiredLoadEvent(false)
55 , m_needsShadowTreeRecreation(false) 55 , m_needsShadowTreeRecreation(false)
56 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired) 56 , m_svgLoadEventTimer(this, &SVGElement::svgLoadEventTimerFired)
57 { 57 {
58 ASSERT(hasCustomStyleCallbacks()); 58 ASSERT(hasCustomStyleCallbacks());
59 ScriptWrappable::init(this);
60 59
61 addToPropertyMap(m_x); 60 addToPropertyMap(m_x);
62 addToPropertyMap(m_y); 61 addToPropertyMap(m_y);
63 addToPropertyMap(m_width); 62 addToPropertyMap(m_width);
64 addToPropertyMap(m_height); 63 addToPropertyMap(m_height);
65 } 64 }
66 65
67 PassRefPtrWillBeRawPtr<SVGUseElement> SVGUseElement::create(Document& document) 66 PassRefPtrWillBeRawPtr<SVGUseElement> SVGUseElement::create(Document& document)
68 { 67 {
69 // Always build a user agent #shadow-root for SVGUseElement. 68 // Always build a user agent #shadow-root for SVGUseElement.
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 m_resource->addClient(this); 750 m_resource->addClient(this);
752 } 751 }
753 752
754 void SVGUseElement::trace(Visitor* visitor) 753 void SVGUseElement::trace(Visitor* visitor)
755 { 754 {
756 visitor->trace(m_targetElementInstance); 755 visitor->trace(m_targetElementInstance);
757 SVGGraphicsElement::trace(visitor); 756 SVGGraphicsElement::trace(visitor);
758 } 757 }
759 758
760 } 759 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGTransformTearOff.cpp ('k') | Source/core/svg/SVGVKernElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698