OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde
.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007, 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) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 { | 118 { |
119 SVGElement::childrenChanged(change); | 119 SVGElement::childrenChanged(change); |
120 | 120 |
121 if (change.byParser) | 121 if (change.byParser) |
122 return; | 122 return; |
123 | 123 |
124 if (RenderObject* object = renderer()) | 124 if (RenderObject* object = renderer()) |
125 object->setNeedsLayoutAndFullPaintInvalidation(); | 125 object->setNeedsLayoutAndFullPaintInvalidation(); |
126 } | 126 } |
127 | 127 |
128 RenderObject* SVGPatternElement::createRenderer(RenderStyle*) | 128 RenderObject* SVGPatternElement::createRenderer(const RenderStyle*) |
129 { | 129 { |
130 return new RenderSVGResourcePattern(this); | 130 return new RenderSVGResourcePattern(this); |
131 } | 131 } |
132 | 132 |
133 static void setPatternAttributes(const SVGPatternElement* element, PatternAttrib
utes& attributes) | 133 static void setPatternAttributes(const SVGPatternElement* element, PatternAttrib
utes& attributes) |
134 { | 134 { |
135 if (!attributes.hasX() && element->x()->isSpecified()) | 135 if (!attributes.hasX() && element->x()->isSpecified()) |
136 attributes.setX(element->x()->currentValue()); | 136 attributes.setX(element->x()->currentValue()); |
137 | 137 |
138 if (!attributes.hasY() && element->y()->isSpecified()) | 138 if (!attributes.hasY() && element->y()->isSpecified()) |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 | 200 |
201 bool SVGPatternElement::selfHasRelativeLengths() const | 201 bool SVGPatternElement::selfHasRelativeLengths() const |
202 { | 202 { |
203 return m_x->currentValue()->isRelative() | 203 return m_x->currentValue()->isRelative() |
204 || m_y->currentValue()->isRelative() | 204 || m_y->currentValue()->isRelative() |
205 || m_width->currentValue()->isRelative() | 205 || m_width->currentValue()->isRelative() |
206 || m_height->currentValue()->isRelative(); | 206 || m_height->currentValue()->isRelative(); |
207 } | 207 } |
208 | 208 |
209 } // namespace blink | 209 } // namespace blink |
OLD | NEW |