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

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

Issue 235113002: Oilpan: Remove guardRef and guardDeref from TreeScope. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments. Created 6 years, 8 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 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 26 matching lines...) Expand all
37 ScriptWrappable::init(this); 37 ScriptWrappable::init(this);
38 } 38 }
39 39
40 PassRefPtr<SVGMPathElement> SVGMPathElement::create(Document& document) 40 PassRefPtr<SVGMPathElement> SVGMPathElement::create(Document& document)
41 { 41 {
42 return adoptRef(new SVGMPathElement(document)); 42 return adoptRef(new SVGMPathElement(document));
43 } 43 }
44 44
45 SVGMPathElement::~SVGMPathElement() 45 SVGMPathElement::~SVGMPathElement()
46 { 46 {
47 #if !ENABLE(OILPAN)
47 clearResourceReferences(); 48 clearResourceReferences();
haraken 2014/04/25 05:21:42 Ditto.
Mads Ager (chromium) 2014/04/25 10:58:25 This one is fine. clearResourceReferences just doe
49 #endif
48 } 50 }
49 51
50 void SVGMPathElement::buildPendingResource() 52 void SVGMPathElement::buildPendingResource()
51 { 53 {
52 clearResourceReferences(); 54 clearResourceReferences();
53 if (!inDocument()) 55 if (!inDocument())
54 return; 56 return;
55 57
56 AtomicString id; 58 AtomicString id;
57 Element* target = SVGURIReference::targetElementFromIRIString(hrefString(), treeScope(), &id); 59 Element* target = SVGURIReference::targetElementFromIRIString(hrefString(), treeScope(), &id);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 notifyParentOfPathChange(parentNode()); 147 notifyParentOfPathChange(parentNode());
146 } 148 }
147 149
148 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent) 150 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent)
149 { 151 {
150 if (isSVGAnimateMotionElement(parent)) 152 if (isSVGAnimateMotionElement(parent))
151 toSVGAnimateMotionElement(parent)->updateAnimationPath(); 153 toSVGAnimateMotionElement(parent)->updateAnimationPath();
152 } 154 }
153 155
154 } // namespace WebCore 156 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698