OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
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 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 } | 115 } |
116 | 116 |
117 SVGElement::InvalidationGuard invalidationGuard(this); | 117 SVGElement::InvalidationGuard invalidationGuard(this); |
118 | 118 |
119 if (attrName == SVGNames::xAttr | 119 if (attrName == SVGNames::xAttr |
120 || attrName == SVGNames::yAttr | 120 || attrName == SVGNames::yAttr |
121 || attrName == SVGNames::widthAttr | 121 || attrName == SVGNames::widthAttr |
122 || attrName == SVGNames::heightAttr) | 122 || attrName == SVGNames::heightAttr) |
123 updateRelativeLengthsInformation(); | 123 updateRelativeLengthsInformation(); |
124 | 124 |
125 LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this->re
nderer()); | 125 LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this->la
youtObject()); |
126 if (renderer) | 126 if (renderer) |
127 renderer->invalidateCacheAndMarkForLayout(); | 127 renderer->invalidateCacheAndMarkForLayout(); |
128 } | 128 } |
129 | 129 |
130 void SVGFilterElement::childrenChanged(const ChildrenChange& change) | 130 void SVGFilterElement::childrenChanged(const ChildrenChange& change) |
131 { | 131 { |
132 SVGElement::childrenChanged(change); | 132 SVGElement::childrenChanged(change); |
133 | 133 |
134 if (change.byParser) | 134 if (change.byParser) |
135 return; | 135 return; |
136 | 136 |
137 if (LayoutObject* object = renderer()) | 137 if (LayoutObject* object = layoutObject()) |
138 object->setNeedsLayoutAndFullPaintInvalidation(); | 138 object->setNeedsLayoutAndFullPaintInvalidation(); |
139 } | 139 } |
140 | 140 |
141 LayoutObject* SVGFilterElement::createLayoutObject(const LayoutStyle&) | 141 LayoutObject* SVGFilterElement::createLayoutObject(const LayoutStyle&) |
142 { | 142 { |
143 LayoutSVGResourceFilter* renderer = new LayoutSVGResourceFilter(this); | 143 LayoutSVGResourceFilter* renderer = new LayoutSVGResourceFilter(this); |
144 | 144 |
145 for (const RefPtrWillBeMember<Node>& node : m_clientsToAdd) | 145 for (const RefPtrWillBeMember<Node>& node : m_clientsToAdd) |
146 renderer->addClientLayer(node.get()); | 146 renderer->addClientLayer(node.get()); |
147 m_clientsToAdd.clear(); | 147 m_clientsToAdd.clear(); |
(...skipping 15 matching lines...) Expand all Loading... |
163 m_clientsToAdd.add(client); | 163 m_clientsToAdd.add(client); |
164 } | 164 } |
165 | 165 |
166 void SVGFilterElement::removeClient(Node* client) | 166 void SVGFilterElement::removeClient(Node* client) |
167 { | 167 { |
168 ASSERT(client); | 168 ASSERT(client); |
169 m_clientsToAdd.remove(client); | 169 m_clientsToAdd.remove(client); |
170 } | 170 } |
171 | 171 |
172 } // namespace blink | 172 } // namespace blink |
OLD | NEW |