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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 setNeedsStyleRecalc(LocalStyleChange, | 133 setNeedsStyleRecalc(LocalStyleChange, |
134 StyleChangeReasonForTracing::fromAttribute(attrName)); | 134 StyleChangeReasonForTracing::fromAttribute(attrName)); |
135 } | 135 } |
136 | 136 |
137 if (attrName == SVGNames::xAttr | 137 if (attrName == SVGNames::xAttr |
138 || attrName == SVGNames::yAttr | 138 || attrName == SVGNames::yAttr |
139 || attrName == SVGNames::widthAttr | 139 || attrName == SVGNames::widthAttr |
140 || attrName == SVGNames::heightAttr) | 140 || attrName == SVGNames::heightAttr) |
141 updateRelativeLengthsInformation(); | 141 updateRelativeLengthsInformation(); |
142 | 142 |
143 LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this->re
nderer()); | 143 LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this->la
youtObject()); |
144 if (renderer) | 144 if (renderer) |
145 renderer->invalidateCacheAndMarkForLayout(); | 145 renderer->invalidateCacheAndMarkForLayout(); |
146 } | 146 } |
147 | 147 |
148 void SVGPatternElement::childrenChanged(const ChildrenChange& change) | 148 void SVGPatternElement::childrenChanged(const ChildrenChange& change) |
149 { | 149 { |
150 SVGElement::childrenChanged(change); | 150 SVGElement::childrenChanged(change); |
151 | 151 |
152 if (change.byParser) | 152 if (change.byParser) |
153 return; | 153 return; |
154 | 154 |
155 if (LayoutObject* object = renderer()) | 155 if (LayoutObject* object = layoutObject()) |
156 object->setNeedsLayoutAndFullPaintInvalidation(); | 156 object->setNeedsLayoutAndFullPaintInvalidation(); |
157 } | 157 } |
158 | 158 |
159 LayoutObject* SVGPatternElement::createLayoutObject(const LayoutStyle&) | 159 LayoutObject* SVGPatternElement::createLayoutObject(const LayoutStyle&) |
160 { | 160 { |
161 return new LayoutSVGResourcePattern(this); | 161 return new LayoutSVGResourcePattern(this); |
162 } | 162 } |
163 | 163 |
164 static void setPatternAttributes(const SVGPatternElement* element, PatternAttrib
utes& attributes) | 164 static void setPatternAttributes(const SVGPatternElement* element, PatternAttrib
utes& attributes) |
165 { | 165 { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 | 231 |
232 bool SVGPatternElement::selfHasRelativeLengths() const | 232 bool SVGPatternElement::selfHasRelativeLengths() const |
233 { | 233 { |
234 return m_x->currentValue()->isRelative() | 234 return m_x->currentValue()->isRelative() |
235 || m_y->currentValue()->isRelative() | 235 || m_y->currentValue()->isRelative() |
236 || m_width->currentValue()->isRelative() | 236 || m_width->currentValue()->isRelative() |
237 || m_height->currentValue()->isRelative(); | 237 || m_height->currentValue()->isRelative(); |
238 } | 238 } |
239 | 239 |
240 } // namespace blink | 240 } // namespace blink |
OLD | NEW |