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

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

Issue 365673002: Pass a struct to ContainerNode::childrenChanged() instead of separate arguments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove dead code 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 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) 2005 Oliver Hunt <oliver@nerget.com> 4 * Copyright (C) 2005 Oliver Hunt <oliver@nerget.com>
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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 } 147 }
148 if (isSVGFESpecularLightingElement(*parent)) { 148 if (isSVGFESpecularLightingElement(*parent)) {
149 toSVGFESpecularLightingElement(*parent).lightElementAttributeChanged (this, attrName); 149 toSVGFESpecularLightingElement(*parent).lightElementAttributeChanged (this, attrName);
150 return; 150 return;
151 } 151 }
152 } 152 }
153 153
154 ASSERT_NOT_REACHED(); 154 ASSERT_NOT_REACHED();
155 } 155 }
156 156
157 void SVGFELightElement::childrenChanged(bool changedByParser, Node* beforeChange , Node* afterChange, int childCountDelta) 157 void SVGFELightElement::childrenChanged(const ChildrenChange& change)
158 { 158 {
159 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil dCountDelta); 159 SVGElement::childrenChanged(change);
160 160
161 if (!changedByParser) { 161 if (!change.byParser) {
162 if (ContainerNode* parent = parentNode()) { 162 if (ContainerNode* parent = parentNode()) {
163 RenderObject* renderer = parent->renderer(); 163 RenderObject* renderer = parent->renderer();
164 if (renderer && renderer->isSVGResourceFilterPrimitive()) 164 if (renderer && renderer->isSVGResourceFilterPrimitive())
165 RenderSVGResource::markForLayoutAndParentResourceInvalidation(re nderer); 165 RenderSVGResource::markForLayoutAndParentResourceInvalidation(re nderer);
166 } 166 }
167 } 167 }
168 } 168 }
169 169
170 } 170 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698