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

Side by Side Diff: Source/core/svg/SVGFilterElement.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, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 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) 2006 Samuel Weinig <sam.weinig@gmail.com> 4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 || attrName == SVGNames::yAttr 133 || attrName == SVGNames::yAttr
134 || attrName == SVGNames::widthAttr 134 || attrName == SVGNames::widthAttr
135 || attrName == SVGNames::heightAttr) 135 || attrName == SVGNames::heightAttr)
136 updateRelativeLengthsInformation(); 136 updateRelativeLengthsInformation();
137 137
138 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re nderer()); 138 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re nderer());
139 if (renderer) 139 if (renderer)
140 renderer->invalidateCacheAndMarkForLayout(); 140 renderer->invalidateCacheAndMarkForLayout();
141 } 141 }
142 142
143 void SVGFilterElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) 143 void SVGFilterElement::childrenChanged(const ChildrenChange& change)
144 { 144 {
145 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil dCountDelta); 145 SVGElement::childrenChanged(change);
146 146
147 if (changedByParser) 147 if (change.byParser)
148 return; 148 return;
149 149
150 if (RenderObject* object = renderer()) 150 if (RenderObject* object = renderer())
151 object->setNeedsLayoutAndFullPaintInvalidation(); 151 object->setNeedsLayoutAndFullPaintInvalidation();
152 } 152 }
153 153
154 RenderObject* SVGFilterElement::createRenderer(RenderStyle*) 154 RenderObject* SVGFilterElement::createRenderer(RenderStyle*)
155 { 155 {
156 RenderSVGResourceFilter* renderer = new RenderSVGResourceFilter(this); 156 RenderSVGResourceFilter* renderer = new RenderSVGResourceFilter(this);
157 157
(...skipping 19 matching lines...) Expand all
177 m_clientsToAdd.add(client); 177 m_clientsToAdd.add(client);
178 } 178 }
179 179
180 void SVGFilterElement::removeClient(Node* client) 180 void SVGFilterElement::removeClient(Node* client)
181 { 181 {
182 ASSERT(client); 182 ASSERT(client);
183 m_clientsToAdd.remove(client); 183 m_clientsToAdd.remove(client);
184 } 184 }
185 185
186 } 186 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698