| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 renderer->invalidateCacheAndMarkForLayout(); | 113 renderer->invalidateCacheAndMarkForLayout(); |
| 114 } | 114 } |
| 115 | 115 |
| 116 void SVGPatternElement::childrenChanged(const ChildrenChange& change) | 116 void SVGPatternElement::childrenChanged(const ChildrenChange& change) |
| 117 { | 117 { |
| 118 SVGElement::childrenChanged(change); | 118 SVGElement::childrenChanged(change); |
| 119 | 119 |
| 120 if (change.byParser) | 120 if (change.byParser) |
| 121 return; | 121 return; |
| 122 | 122 |
| 123 if (RenderObject* object = renderer()) | 123 if (LayoutObject* object = renderer()) |
| 124 object->setNeedsLayoutAndFullPaintInvalidation(); | 124 object->setNeedsLayoutAndFullPaintInvalidation(); |
| 125 } | 125 } |
| 126 | 126 |
| 127 RenderObject* SVGPatternElement::createRenderer(const RenderStyle&) | 127 LayoutObject* SVGPatternElement::createRenderer(const RenderStyle&) |
| 128 { | 128 { |
| 129 return new RenderSVGResourcePattern(this); | 129 return new RenderSVGResourcePattern(this); |
| 130 } | 130 } |
| 131 | 131 |
| 132 static void setPatternAttributes(const SVGPatternElement* element, PatternAttrib
utes& attributes) | 132 static void setPatternAttributes(const SVGPatternElement* element, PatternAttrib
utes& attributes) |
| 133 { | 133 { |
| 134 if (!attributes.hasX() && element->x()->isSpecified()) | 134 if (!attributes.hasX() && element->x()->isSpecified()) |
| 135 attributes.setX(element->x()->currentValue()); | 135 attributes.setX(element->x()->currentValue()); |
| 136 | 136 |
| 137 if (!attributes.hasY() && element->y()->isSpecified()) | 137 if (!attributes.hasY() && element->y()->isSpecified()) |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 | 199 |
| 200 bool SVGPatternElement::selfHasRelativeLengths() const | 200 bool SVGPatternElement::selfHasRelativeLengths() const |
| 201 { | 201 { |
| 202 return m_x->currentValue()->isRelative() | 202 return m_x->currentValue()->isRelative() |
| 203 || m_y->currentValue()->isRelative() | 203 || m_y->currentValue()->isRelative() |
| 204 || m_width->currentValue()->isRelative() | 204 || m_width->currentValue()->isRelative() |
| 205 || m_height->currentValue()->isRelative(); | 205 || m_height->currentValue()->isRelative(); |
| 206 } | 206 } |
| 207 | 207 |
| 208 } // namespace blink | 208 } // namespace blink |
| OLD | NEW |