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

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

Issue 328703005: Use ScriptWrappable::init less (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | Source/core/svg/SVGGradientElement.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 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005 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) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au> 6 * Copyright (C) 2009 Cameron McCormack <cam@mcc.id.au>
7 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 7 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 : SVGSMILElement(tagName, document) 43 : SVGSMILElement(tagName, document)
44 , SVGTests(this) 44 , SVGTests(this)
45 , m_fromPropertyValueType(RegularPropertyValue) 45 , m_fromPropertyValueType(RegularPropertyValue)
46 , m_toPropertyValueType(RegularPropertyValue) 46 , m_toPropertyValueType(RegularPropertyValue)
47 , m_animationValid(false) 47 , m_animationValid(false)
48 , m_attributeType(AttributeTypeAuto) 48 , m_attributeType(AttributeTypeAuto)
49 , m_hasInvalidCSSAttributeType(false) 49 , m_hasInvalidCSSAttributeType(false)
50 , m_calcMode(CalcModeLinear) 50 , m_calcMode(CalcModeLinear)
51 , m_animationMode(NoAnimation) 51 , m_animationMode(NoAnimation)
52 { 52 {
53 ScriptWrappable::init(this);
54
55 UseCounter::count(document, UseCounter::SVGAnimationElement); 53 UseCounter::count(document, UseCounter::SVGAnimationElement);
56 } 54 }
57 55
58 static void parseKeyTimes(const String& string, Vector<float>& result, bool veri fyOrder) 56 static void parseKeyTimes(const String& string, Vector<float>& result, bool veri fyOrder)
59 { 57 {
60 result.clear(); 58 result.clear();
61 Vector<String> parseList; 59 Vector<String> parseList;
62 string.split(';', parseList); 60 string.split(';', parseList);
63 for (unsigned n = 0; n < parseList.size(); ++n) { 61 for (unsigned n = 0; n < parseList.size(); ++n) {
64 String timeString = parseList[n]; 62 String timeString = parseList[n];
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 SVGSMILElement::setAttributeName(attributeName); 686 SVGSMILElement::setAttributeName(attributeName);
689 checkInvalidCSSAttributeType(targetElement()); 687 checkInvalidCSSAttributeType(targetElement());
690 } 688 }
691 689
692 void SVGAnimationElement::checkInvalidCSSAttributeType(SVGElement* target) 690 void SVGAnimationElement::checkInvalidCSSAttributeType(SVGElement* target)
693 { 691 {
694 m_hasInvalidCSSAttributeType = target && hasValidAttributeName() && attribut eType() == AttributeTypeCSS && !isTargetAttributeCSSProperty(target, attributeNa me()); 692 m_hasInvalidCSSAttributeType = target && hasValidAttributeName() && attribut eType() == AttributeTypeCSS && !isTargetAttributeCSSProperty(target, attributeNa me());
695 } 693 }
696 694
697 } 695 }
OLDNEW
« no previous file with comments | « no previous file | Source/core/svg/SVGGradientElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698