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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGAnimateTransformElement.cpp

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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
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 * 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 11 matching lines...) Expand all
22 22
23 #include "core/svg/SVGAnimateTransformElement.h" 23 #include "core/svg/SVGAnimateTransformElement.h"
24 24
25 #include "core/SVGNames.h" 25 #include "core/SVGNames.h"
26 #include "core/svg/SVGTransformList.h" 26 #include "core/svg/SVGTransformList.h"
27 27
28 namespace blink { 28 namespace blink {
29 29
30 inline SVGAnimateTransformElement::SVGAnimateTransformElement(Document& document ) 30 inline SVGAnimateTransformElement::SVGAnimateTransformElement(Document& document )
31 : SVGAnimateElement(SVGNames::animateTransformTag, document) 31 : SVGAnimateElement(SVGNames::animateTransformTag, document)
32 , m_type(SVG_TRANSFORM_UNKNOWN) 32 , m_type(kSvgTransformUnknown)
33 { 33 {
34 } 34 }
35 35
36 DEFINE_NODE_FACTORY(SVGAnimateTransformElement) 36 DEFINE_NODE_FACTORY(SVGAnimateTransformElement)
37 37
38 bool SVGAnimateTransformElement::hasValidAttributeType() 38 bool SVGAnimateTransformElement::hasValidAttributeType()
39 { 39 {
40 SVGElement* targetElement = this->targetElement(); 40 SVGElement* targetElement = this->targetElement();
41 if (!targetElement) 41 if (!targetElement)
42 return false; 42 return false;
43 43
44 if (getAttributeType() == AttributeTypeCSS) 44 if (getAttributeType() == AttributeTypeCSS)
45 return false; 45 return false;
46 46
47 return animatedPropertyType() == AnimatedTransformList; 47 return animatedPropertyType() == AnimatedTransformList;
48 } 48 }
49 49
50 void SVGAnimateTransformElement::parseAttribute(const QualifiedName& name, const AtomicString& oldValue, const AtomicString& value) 50 void SVGAnimateTransformElement::parseAttribute(const QualifiedName& name, const AtomicString& oldValue, const AtomicString& value)
51 { 51 {
52 if (name == SVGNames::typeAttr) { 52 if (name == SVGNames::typeAttr) {
53 m_type = parseTransformType(value); 53 m_type = parseTransformType(value);
54 if (m_type == SVG_TRANSFORM_MATRIX) 54 if (m_type == kSvgTransformMatrix)
55 m_type = SVG_TRANSFORM_UNKNOWN; 55 m_type = kSvgTransformUnknown;
56 return; 56 return;
57 } 57 }
58 58
59 SVGAnimateElement::parseAttribute(name, oldValue, value); 59 SVGAnimateElement::parseAttribute(name, oldValue, value);
60 } 60 }
61 61
62 } // namespace blink 62 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGAngleTearOff.cpp ('k') | third_party/WebKit/Source/core/svg/SVGClipPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698