OLD | NEW |
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 } | 119 } |
120 | 120 |
121 void SVGMaskElement::childrenChanged(bool changedByParser, Node* beforeChange, N
ode* afterChange, int childCountDelta) | 121 void SVGMaskElement::childrenChanged(bool changedByParser, Node* beforeChange, N
ode* afterChange, int childCountDelta) |
122 { | 122 { |
123 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); | 123 SVGElement::childrenChanged(changedByParser, beforeChange, afterChange, chil
dCountDelta); |
124 | 124 |
125 if (changedByParser) | 125 if (changedByParser) |
126 return; | 126 return; |
127 | 127 |
128 if (RenderObject* object = renderer()) | 128 if (RenderObject* object = renderer()) |
129 object->setNeedsLayout(); | 129 object->setNeedsLayoutAndFullRepaint(); |
130 } | 130 } |
131 | 131 |
132 RenderObject* SVGMaskElement::createRenderer(RenderStyle*) | 132 RenderObject* SVGMaskElement::createRenderer(RenderStyle*) |
133 { | 133 { |
134 return new RenderSVGResourceMasker(this); | 134 return new RenderSVGResourceMasker(this); |
135 } | 135 } |
136 | 136 |
137 bool SVGMaskElement::selfHasRelativeLengths() const | 137 bool SVGMaskElement::selfHasRelativeLengths() const |
138 { | 138 { |
139 return m_x->currentValue()->isRelative() | 139 return m_x->currentValue()->isRelative() |
140 || m_y->currentValue()->isRelative() | 140 || m_y->currentValue()->isRelative() |
141 || m_width->currentValue()->isRelative() | 141 || m_width->currentValue()->isRelative() |
142 || m_height->currentValue()->isRelative(); | 142 || m_height->currentValue()->isRelative(); |
143 } | 143 } |
144 | 144 |
145 } | 145 } |
OLD | NEW |