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) 2009 Dirk Schulze <krit@webkit.org> | 4 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 bool SVGFilterPrimitiveStandardAttributes::layoutObjectIsNeeded(const LayoutStyl
e& style) | 131 bool SVGFilterPrimitiveStandardAttributes::layoutObjectIsNeeded(const LayoutStyl
e& style) |
132 { | 132 { |
133 if (isSVGFilterElement(parentNode())) | 133 if (isSVGFilterElement(parentNode())) |
134 return SVGElement::layoutObjectIsNeeded(style); | 134 return SVGElement::layoutObjectIsNeeded(style); |
135 | 135 |
136 return false; | 136 return false; |
137 } | 137 } |
138 | 138 |
139 void SVGFilterPrimitiveStandardAttributes::invalidate() | 139 void SVGFilterPrimitiveStandardAttributes::invalidate() |
140 { | 140 { |
141 if (LayoutObject* primitiveRenderer = renderer()) | 141 if (LayoutObject* primitiveRenderer = layoutObject()) |
142 markForLayoutAndParentResourceInvalidation(primitiveRenderer); | 142 markForLayoutAndParentResourceInvalidation(primitiveRenderer); |
143 } | 143 } |
144 | 144 |
145 void SVGFilterPrimitiveStandardAttributes::primitiveAttributeChanged(const Quali
fiedName& attribute) | 145 void SVGFilterPrimitiveStandardAttributes::primitiveAttributeChanged(const Quali
fiedName& attribute) |
146 { | 146 { |
147 if (LayoutObject* primitiveRenderer = renderer()) | 147 if (LayoutObject* primitiveRenderer = layoutObject()) |
148 static_cast<LayoutSVGResourceFilterPrimitive*>(primitiveRenderer)->primi
tiveAttributeChanged(attribute); | 148 static_cast<LayoutSVGResourceFilterPrimitive*>(primitiveRenderer)->primi
tiveAttributeChanged(attribute); |
149 } | 149 } |
150 | 150 |
151 void invalidateFilterPrimitiveParent(SVGElement* element) | 151 void invalidateFilterPrimitiveParent(SVGElement* element) |
152 { | 152 { |
153 if (!element) | 153 if (!element) |
154 return; | 154 return; |
155 | 155 |
156 ContainerNode* parent = element->parentNode(); | 156 ContainerNode* parent = element->parentNode(); |
157 | 157 |
158 if (!parent) | 158 if (!parent) |
159 return; | 159 return; |
160 | 160 |
161 LayoutObject* renderer = parent->renderer(); | 161 LayoutObject* renderer = parent->layoutObject(); |
162 if (!renderer || !renderer->isSVGResourceFilterPrimitive()) | 162 if (!renderer || !renderer->isSVGResourceFilterPrimitive()) |
163 return; | 163 return; |
164 | 164 |
165 LayoutSVGResourceContainer::markForLayoutAndParentResourceInvalidation(rende
rer, false); | 165 LayoutSVGResourceContainer::markForLayoutAndParentResourceInvalidation(rende
rer, false); |
166 } | 166 } |
167 | 167 |
168 } | 168 } |
OLD | NEW |