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

Side by Side Diff: Source/core/svg/SVGSVGElement.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/SVGRectTearOff.cpp ('k') | Source/core/svg/SVGScriptElement.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 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2007 Apple Inc. All rights reserved.
5 * Copyright (C) 2014 Google, Inc. 5 * Copyright (C) 2014 Google, Inc.
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 : SVGGraphicsElement(SVGNames::svgTag, doc) 65 : SVGGraphicsElement(SVGNames::svgTag, doc)
66 , SVGFitToViewBox(this) 66 , SVGFitToViewBox(this)
67 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len gthModeWidth), AllowNegativeLengths)) 67 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len gthModeWidth), AllowNegativeLengths))
68 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len gthModeHeight), AllowNegativeLengths)) 68 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len gthModeHeight), AllowNegativeLengths))
69 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr eate(LengthModeWidth), ForbidNegativeLengths)) 69 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr eate(LengthModeWidth), ForbidNegativeLengths))
70 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength:: create(LengthModeHeight), ForbidNegativeLengths)) 70 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength:: create(LengthModeHeight), ForbidNegativeLengths))
71 , m_useCurrentView(false) 71 , m_useCurrentView(false)
72 , m_timeContainer(SMILTimeContainer::create(*this)) 72 , m_timeContainer(SMILTimeContainer::create(*this))
73 , m_translation(SVGPoint::create()) 73 , m_translation(SVGPoint::create())
74 { 74 {
75 ScriptWrappable::init(this);
76
77 m_width->setDefaultValueAsString("100%"); 75 m_width->setDefaultValueAsString("100%");
78 m_height->setDefaultValueAsString("100%"); 76 m_height->setDefaultValueAsString("100%");
79 77
80 addToPropertyMap(m_x); 78 addToPropertyMap(m_x);
81 addToPropertyMap(m_y); 79 addToPropertyMap(m_y);
82 addToPropertyMap(m_width); 80 addToPropertyMap(m_width);
83 addToPropertyMap(m_height); 81 addToPropertyMap(m_height);
84 82
85 UseCounter::count(doc, UseCounter::SVGSVGElement); 83 UseCounter::count(doc, UseCounter::SVGSVGElement);
86 } 84 }
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 sendSVGLoadEventIfPossible(); 772 sendSVGLoadEventIfPossible();
775 } 773 }
776 774
777 void SVGSVGElement::trace(Visitor* visitor) 775 void SVGSVGElement::trace(Visitor* visitor)
778 { 776 {
779 visitor->trace(m_timeContainer); 777 visitor->trace(m_timeContainer);
780 visitor->trace(m_viewSpec); 778 visitor->trace(m_viewSpec);
781 SVGGraphicsElement::trace(visitor); 779 SVGGraphicsElement::trace(visitor);
782 } 780 }
783 781
784 } 782 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/svg/SVGRectTearOff.cpp ('k') | Source/core/svg/SVGScriptElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698