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

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

Issue 22043003: [oilpan] Handlify childrenChanged. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 4 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 if (attrName == SVGNames::xAttr 140 if (attrName == SVGNames::xAttr
141 || attrName == SVGNames::yAttr 141 || attrName == SVGNames::yAttr
142 || attrName == SVGNames::widthAttr 142 || attrName == SVGNames::widthAttr
143 || attrName == SVGNames::heightAttr) 143 || attrName == SVGNames::heightAttr)
144 updateRelativeLengthsInformation(); 144 updateRelativeLengthsInformation();
145 145
146 if (RenderObject* object = renderer()) 146 if (RenderObject* object = renderer())
147 object->setNeedsLayout(true); 147 object->setNeedsLayout(true);
148 } 148 }
149 149
150 void SVGMaskElement::childrenChanged(bool changedByParser, Node* beforeChange, N ode* afterChange, int childCountDelta) 150 void SVGMaskElement::childrenChanged(bool changedByParser, const Handle<Node>& b eforeChange, const Handle<Node>& afterChange, int childCountDelta)
151 { 151 {
152 SVGStyledElement::childrenChanged(changedByParser, beforeChange, afterChange , childCountDelta); 152 SVGStyledElement::childrenChanged(changedByParser, beforeChange, afterChange , childCountDelta);
153 153
154 if (changedByParser) 154 if (changedByParser)
155 return; 155 return;
156 156
157 if (RenderObject* object = renderer()) 157 if (RenderObject* object = renderer())
158 object->setNeedsLayout(true); 158 object->setNeedsLayout(true);
159 } 159 }
160 160
161 RenderObject* SVGMaskElement::createRenderer(RenderArena* arena, RenderStyle*) 161 RenderObject* SVGMaskElement::createRenderer(RenderArena* arena, RenderStyle*)
162 { 162 {
163 return new (arena) RenderSVGResourceMasker(this); 163 return new (arena) RenderSVGResourceMasker(this);
164 } 164 }
165 165
166 bool SVGMaskElement::selfHasRelativeLengths() const 166 bool SVGMaskElement::selfHasRelativeLengths() const
167 { 167 {
168 return x().isRelative() 168 return x().isRelative()
169 || y().isRelative() 169 || y().isRelative()
170 || width().isRelative() 170 || width().isRelative()
171 || height().isRelative(); 171 || height().isRelative();
172 } 172 }
173 173
174 } 174 }
175 175
176 #endif // ENABLE(SVG) 176 #endif // ENABLE(SVG)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698