| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 } | 109 } |
| 110 | 110 |
| 111 void SVGPatternElement::childrenChanged(const ChildrenChange& change) | 111 void SVGPatternElement::childrenChanged(const ChildrenChange& change) |
| 112 { | 112 { |
| 113 SVGElement::childrenChanged(change); | 113 SVGElement::childrenChanged(change); |
| 114 | 114 |
| 115 if (change.byParser) | 115 if (change.byParser) |
| 116 return; | 116 return; |
| 117 | 117 |
| 118 if (LayoutObject* object = layoutObject()) | 118 if (LayoutObject* object = layoutObject()) |
| 119 object->setNeedsLayoutAndFullPaintInvalidation(); | 119 object->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason:
:ChildChanged); |
| 120 } | 120 } |
| 121 | 121 |
| 122 LayoutObject* SVGPatternElement::createLayoutObject(const LayoutStyle&) | 122 LayoutObject* SVGPatternElement::createLayoutObject(const LayoutStyle&) |
| 123 { | 123 { |
| 124 return new LayoutSVGResourcePattern(this); | 124 return new LayoutSVGResourcePattern(this); |
| 125 } | 125 } |
| 126 | 126 |
| 127 static void setPatternAttributes(const SVGPatternElement* element, PatternAttrib
utes& attributes) | 127 static void setPatternAttributes(const SVGPatternElement* element, PatternAttrib
utes& attributes) |
| 128 { | 128 { |
| 129 if (!attributes.hasX() && element->x()->isSpecified()) | 129 if (!attributes.hasX() && element->x()->isSpecified()) |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 193 |
| 194 bool SVGPatternElement::selfHasRelativeLengths() const | 194 bool SVGPatternElement::selfHasRelativeLengths() const |
| 195 { | 195 { |
| 196 return m_x->currentValue()->isRelative() | 196 return m_x->currentValue()->isRelative() |
| 197 || m_y->currentValue()->isRelative() | 197 || m_y->currentValue()->isRelative() |
| 198 || m_width->currentValue()->isRelative() | 198 || m_width->currentValue()->isRelative() |
| 199 || m_height->currentValue()->isRelative(); | 199 || m_height->currentValue()->isRelative(); |
| 200 } | 200 } |
| 201 | 201 |
| 202 } // namespace blink | 202 } // namespace blink |
| OLD | NEW |