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

Side by Side Diff: Source/core/svg/SVGMaskElement.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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005 Alexander Kellett <lypanov@kde.org> 4 * Copyright (C) 2005 Alexander Kellett <lypanov@kde.org>
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 2009-2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2009-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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 || attrName == SVGNames::yAttr 112 || attrName == SVGNames::yAttr
113 || attrName == SVGNames::widthAttr 113 || attrName == SVGNames::widthAttr
114 || attrName == SVGNames::heightAttr) 114 || attrName == SVGNames::heightAttr)
115 updateRelativeLengthsInformation(); 115 updateRelativeLengthsInformation();
116 116
117 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re nderer()); 117 RenderSVGResourceContainer* renderer = toRenderSVGResourceContainer(this->re nderer());
118 if (renderer) 118 if (renderer)
119 renderer->invalidateCacheAndMarkForLayout(); 119 renderer->invalidateCacheAndMarkForLayout();
120 } 120 }
121 121
122 void SVGMaskElement::childrenChanged(bool changedByParser, Node* beforeChange, N ode* afterChange, int childCountDelta) 122 void SVGMaskElement::childrenChanged(const ChildrenChange& change)
123 { 123 {
124 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil dCountDelta); 124 SVGElement::childrenChanged(change);
125 125
126 if (changedByParser) 126 if (change.byParser)
127 return; 127 return;
128 128
129 if (RenderObject* object = renderer()) 129 if (RenderObject* object = renderer())
130 object->setNeedsLayoutAndFullPaintInvalidation(); 130 object->setNeedsLayoutAndFullPaintInvalidation();
131 } 131 }
132 132
133 RenderObject* SVGMaskElement::createRenderer(RenderStyle*) 133 RenderObject* SVGMaskElement::createRenderer(RenderStyle*)
134 { 134 {
135 return new RenderSVGResourceMasker(this); 135 return new RenderSVGResourceMasker(this);
136 } 136 }
137 137
138 bool SVGMaskElement::selfHasRelativeLengths() const 138 bool SVGMaskElement::selfHasRelativeLengths() const
139 { 139 {
140 return m_x->currentValue()->isRelative() 140 return m_x->currentValue()->isRelative()
141 || m_y->currentValue()->isRelative() 141 || m_y->currentValue()->isRelative()
142 || m_width->currentValue()->isRelative() 142 || m_width->currentValue()->isRelative()
143 || m_height->currentValue()->isRelative(); 143 || m_height->currentValue()->isRelative();
144 } 144 }
145 145
146 } 146 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698