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

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

Issue 344883007: SVG: Move/rename reference management to SVGElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove sed script from CL Created 6 years, 6 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/SVGFEImageElement.cpp ('k') | Source/core/svg/SVGPathElement.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 * 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 if (document().accessSVGExtensions().isElementPendingResource(this, id)) 58 if (document().accessSVGExtensions().isElementPendingResource(this, id))
59 return; 59 return;
60 60
61 if (!id.isEmpty()) { 61 if (!id.isEmpty()) {
62 document().accessSVGExtensions().addPendingResource(id, this); 62 document().accessSVGExtensions().addPendingResource(id, this);
63 ASSERT(hasPendingResources()); 63 ASSERT(hasPendingResources());
64 } 64 }
65 } else if (target->isSVGElement()) { 65 } else if (target->isSVGElement()) {
66 // Register us with the target in the dependencies map. Any change of hr efElement 66 // Register us with the target in the dependencies map. Any change of hr efElement
67 // that leads to relayout/repainting now informs us, so we can react to it. 67 // that leads to relayout/repainting now informs us, so we can react to it.
68 document().accessSVGExtensions().addElementReferencingTarget(this, toSVG Element(target)); 68 addReferenceTo(toSVGElement(target));
69 } 69 }
70 70
71 targetPathChanged(); 71 targetPathChanged();
72 } 72 }
73 73
74 void SVGMPathElement::clearResourceReferences() 74 void SVGMPathElement::clearResourceReferences()
75 { 75 {
76 document().accessSVGExtensions().removeAllTargetReferencesForElement(this); 76 removeAllOutgoingReferences();
77 } 77 }
78 78
79 Node::InsertionNotificationRequest SVGMPathElement::insertedInto(ContainerNode* rootParent) 79 Node::InsertionNotificationRequest SVGMPathElement::insertedInto(ContainerNode* rootParent)
80 { 80 {
81 SVGElement::insertedInto(rootParent); 81 SVGElement::insertedInto(rootParent);
82 if (rootParent->inDocument()) 82 if (rootParent->inDocument())
83 buildPendingResource(); 83 buildPendingResource();
84 return InsertionDone; 84 return InsertionDone;
85 } 85 }
86 86
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 notifyParentOfPathChange(parentNode()); 143 notifyParentOfPathChange(parentNode());
144 } 144 }
145 145
146 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent) 146 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent)
147 { 147 {
148 if (isSVGAnimateMotionElement(parent)) 148 if (isSVGAnimateMotionElement(parent))
149 toSVGAnimateMotionElement(parent)->updateAnimationPath(); 149 toSVGAnimateMotionElement(parent)->updateAnimationPath();
150 } 150 }
151 151
152 } // namespace WebCore 152 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEImageElement.cpp ('k') | Source/core/svg/SVGPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698