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/SVGAnimateMotionElement.cpp

Issue 262093006: Oilpan: Make the Node hierarchy RefCountedGarbageCollected instead of TreeShared. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another build fix. Created 6 years, 7 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
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 inline SVGAnimateMotionElement::SVGAnimateMotionElement(Document& document) 43 inline SVGAnimateMotionElement::SVGAnimateMotionElement(Document& document)
44 : SVGAnimationElement(animateMotionTag, document) 44 : SVGAnimationElement(animateMotionTag, document)
45 , m_hasToPointAtEndOfDuration(false) 45 , m_hasToPointAtEndOfDuration(false)
46 { 46 {
47 setCalcMode(CalcModePaced); 47 setCalcMode(CalcModePaced);
48 ScriptWrappable::init(this); 48 ScriptWrappable::init(this);
49 } 49 }
50 50
51 SVGAnimateMotionElement::~SVGAnimateMotionElement() 51 SVGAnimateMotionElement::~SVGAnimateMotionElement()
52 { 52 {
53 #if !ENABLE(OILPAN)
53 if (targetElement()) 54 if (targetElement())
54 clearAnimatedType(targetElement()); 55 clearAnimatedType(targetElement());
56 #endif
55 } 57 }
56 58
57 PassRefPtr<SVGAnimateMotionElement> SVGAnimateMotionElement::create(Document& do cument) 59 PassRefPtr<SVGAnimateMotionElement> SVGAnimateMotionElement::create(Document& do cument)
58 { 60 {
59 return adoptRef(new SVGAnimateMotionElement(document)); 61 return adoptRef(new SVGAnimateMotionElement(document));
60 } 62 }
61 63
62 bool SVGAnimateMotionElement::hasValidAttributeType() 64 bool SVGAnimateMotionElement::hasValidAttributeType()
63 { 65 {
64 SVGElement* targetElement = this->targetElement(); 66 SVGElement* targetElement = this->targetElement();
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 341
340 void SVGAnimateMotionElement::updateAnimationMode() 342 void SVGAnimateMotionElement::updateAnimationMode()
341 { 343 {
342 if (!m_animationPath.isEmpty()) 344 if (!m_animationPath.isEmpty())
343 setAnimationMode(PathAnimation); 345 setAnimationMode(PathAnimation);
344 else 346 else
345 SVGAnimationElement::updateAnimationMode(); 347 SVGAnimationElement::updateAnimationMode();
346 } 348 }
347 349
348 } 350 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698