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

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

Issue 403343005: Make manual isSVG*Element() helpers as efficient as the generated ones (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix macro name Created 6 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 | « Source/core/svg/SVGAnimateElement.h ('k') | Source/core/svg/SVGElement.h » ('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 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2011. 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 19 matching lines...) Expand all
30 #include "core/dom/Document.h" 30 #include "core/dom/Document.h"
31 #include "core/dom/QualifiedName.h" 31 #include "core/dom/QualifiedName.h"
32 #include "core/svg/SVGAnimatedTypeAnimator.h" 32 #include "core/svg/SVGAnimatedTypeAnimator.h"
33 #include "core/svg/SVGDocumentExtensions.h" 33 #include "core/svg/SVGDocumentExtensions.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 SVGAnimateElement::SVGAnimateElement(const QualifiedName& tagName, Document& doc ument) 37 SVGAnimateElement::SVGAnimateElement(const QualifiedName& tagName, Document& doc ument)
38 : SVGAnimationElement(tagName, document) 38 : SVGAnimationElement(tagName, document)
39 { 39 {
40 ASSERT(isSVGAnimateElement(*this));
41 ScriptWrappable::init(this); 40 ScriptWrappable::init(this);
42 } 41 }
43 42
44 PassRefPtrWillBeRawPtr<SVGAnimateElement> SVGAnimateElement::create(Document& do cument) 43 PassRefPtrWillBeRawPtr<SVGAnimateElement> SVGAnimateElement::create(Document& do cument)
45 { 44 {
46 return adoptRefWillBeNoop(new SVGAnimateElement(SVGNames::animateTag, docume nt)); 45 return adoptRefWillBeNoop(new SVGAnimateElement(SVGNames::animateTag, docume nt));
47 } 46 }
48 47
49 SVGAnimateElement::~SVGAnimateElement() 48 SVGAnimateElement::~SVGAnimateElement()
50 { 49 {
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 return m_animator.get(); 395 return m_animator.get();
397 } 396 }
398 397
399 void SVGAnimateElement::trace(Visitor* visitor) 398 void SVGAnimateElement::trace(Visitor* visitor)
400 { 399 {
401 visitor->trace(m_animator); 400 visitor->trace(m_animator);
402 SVGAnimationElement::trace(visitor); 401 SVGAnimationElement::trace(visitor);
403 } 402 }
404 403
405 } 404 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAnimateElement.h ('k') | Source/core/svg/SVGElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698