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

Side by Side Diff: Source/core/svg/SVGFilterPrimitiveStandardAttributes.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) 2009 Dirk Schulze <krit@webkit.org> 4 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 { 99 {
100 if (!isSupportedAttribute(attrName)) { 100 if (!isSupportedAttribute(attrName)) {
101 SVGElement::svgAttributeChanged(attrName); 101 SVGElement::svgAttributeChanged(attrName);
102 return; 102 return;
103 } 103 }
104 104
105 SVGElement::InvalidationGuard invalidationGuard(this); 105 SVGElement::InvalidationGuard invalidationGuard(this);
106 invalidate(); 106 invalidate();
107 } 107 }
108 108
109 void SVGFilterPrimitiveStandardAttributes::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) 109 void SVGFilterPrimitiveStandardAttributes::childrenChanged(const ChildrenChange& change)
110 { 110 {
111 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil dCountDelta); 111 SVGElement::childrenChanged(change);
112 112
113 if (!changedByParser) 113 if (!change.byParser)
114 invalidate(); 114 invalidate();
115 } 115 }
116 116
117 void SVGFilterPrimitiveStandardAttributes::setStandardAttributes(FilterEffect* f ilterEffect) const 117 void SVGFilterPrimitiveStandardAttributes::setStandardAttributes(FilterEffect* f ilterEffect) const
118 { 118 {
119 ASSERT(filterEffect); 119 ASSERT(filterEffect);
120 if (!filterEffect) 120 if (!filterEffect)
121 return; 121 return;
122 122
123 if (hasAttribute(SVGNames::xAttr)) 123 if (hasAttribute(SVGNames::xAttr))
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 return; 160 return;
161 161
162 RenderObject* renderer = parent->renderer(); 162 RenderObject* renderer = parent->renderer();
163 if (!renderer || !renderer->isSVGResourceFilterPrimitive()) 163 if (!renderer || !renderer->isSVGResourceFilterPrimitive())
164 return; 164 return;
165 165
166 RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer, fals e); 166 RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer, fals e);
167 } 167 }
168 168
169 } 169 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698