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

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

Issue 18503004: Have SVGTextContentElement inherit SVGGraphicsElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Really remove SVGLocatable IDL interface Created 7 years, 5 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 | « LayoutTests/svg/text/selection-doubleclick.svg ('k') | Source/core/svg/SVGElement.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) 2007 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 return adoptRef(new SVGAnimateMotionElement(tagName, document)); 53 return adoptRef(new SVGAnimateMotionElement(tagName, document));
54 } 54 }
55 55
56 bool SVGAnimateMotionElement::hasValidAttributeType() 56 bool SVGAnimateMotionElement::hasValidAttributeType()
57 { 57 {
58 SVGElement* targetElement = this->targetElement(); 58 SVGElement* targetElement = this->targetElement();
59 if (!targetElement) 59 if (!targetElement)
60 return false; 60 return false;
61 61
62 // We don't have a special attribute name to verify the animation type. Chec k the element name instead. 62 // We don't have a special attribute name to verify the animation type. Chec k the element name instead.
63 if (!targetElement->isSVGGraphicsElement() && !targetElement->hasTagName(SVG Names::textTag)) 63 if (!targetElement->isSVGGraphicsElement())
64 return false; 64 return false;
65 // Spec: SVG 1.1 section 19.2.15 65 // Spec: SVG 1.1 section 19.2.15
66 // FIXME: svgTag is missing. Needs to be checked, if transforming <svg> coul d cause problems. 66 // FIXME: svgTag is missing. Needs to be checked, if transforming <svg> coul d cause problems.
67 if (targetElement->hasTagName(gTag) 67 if (targetElement->hasTagName(gTag)
68 || targetElement->hasTagName(defsTag) 68 || targetElement->hasTagName(defsTag)
69 || targetElement->hasTagName(useTag) 69 || targetElement->hasTagName(useTag)
70 || targetElement->hasTagName(SVGNames::imageTag) 70 || targetElement->hasTagName(SVGNames::imageTag)
71 || targetElement->hasTagName(switchTag) 71 || targetElement->hasTagName(switchTag)
72 || targetElement->hasTagName(pathTag) 72 || targetElement->hasTagName(pathTag)
73 || targetElement->hasTagName(rectTag) 73 || targetElement->hasTagName(rectTag)
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 334
335 void SVGAnimateMotionElement::updateAnimationMode() 335 void SVGAnimateMotionElement::updateAnimationMode()
336 { 336 {
337 if (!m_animationPath.isEmpty()) 337 if (!m_animationPath.isEmpty())
338 setAnimationMode(PathAnimation); 338 setAnimationMode(PathAnimation);
339 else 339 else
340 SVGAnimationElement::updateAnimationMode(); 340 SVGAnimationElement::updateAnimationMode();
341 } 341 }
342 342
343 } 343 }
OLDNEW
« no previous file with comments | « LayoutTests/svg/text/selection-doubleclick.svg ('k') | Source/core/svg/SVGElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698