| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 if (isLengthAttribute) | 123 if (isLengthAttribute) |
| 124 updateRelativeLengthsInformation(); | 124 updateRelativeLengthsInformation(); |
| 125 | 125 |
| 126 if (SVGTests::handleAttributeChange(this, attrName)) | 126 if (SVGTests::handleAttributeChange(this, attrName)) |
| 127 return; | 127 return; |
| 128 | 128 |
| 129 if (RenderObject* renderer = this->renderer()) | 129 if (RenderObject* renderer = this->renderer()) |
| 130 RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer); | 130 RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer); |
| 131 } | 131 } |
| 132 | 132 |
| 133 RenderObject* SVGForeignObjectElement::createRenderer(RenderArena* arena, Render
Style*) | 133 RenderObject* SVGForeignObjectElement::createRenderer(RenderStyle*) |
| 134 { | 134 { |
| 135 return new (arena) RenderSVGForeignObject(this); | 135 return new RenderSVGForeignObject(this); |
| 136 } | 136 } |
| 137 | 137 |
| 138 bool SVGForeignObjectElement::childShouldCreateRenderer(const NodeRenderingConte
xt& childContext) const | 138 bool SVGForeignObjectElement::childShouldCreateRenderer(const NodeRenderingConte
xt& childContext) const |
| 139 { | 139 { |
| 140 // Disallow arbitary SVG content. Only allow proper <svg xmlns="svgNS"> subd
ocuments. | 140 // Disallow arbitary SVG content. Only allow proper <svg xmlns="svgNS"> subd
ocuments. |
| 141 if (childContext.node()->isSVGElement()) | 141 if (childContext.node()->isSVGElement()) |
| 142 return childContext.node()->hasTagName(SVGNames::svgTag); | 142 return childContext.node()->hasTagName(SVGNames::svgTag); |
| 143 | 143 |
| 144 // Skip over SVG rules which disallow non-SVG kids | 144 // Skip over SVG rules which disallow non-SVG kids |
| 145 return StyledElement::childShouldCreateRenderer(childContext); | 145 return StyledElement::childShouldCreateRenderer(childContext); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 165 | 165 |
| 166 bool SVGForeignObjectElement::selfHasRelativeLengths() const | 166 bool SVGForeignObjectElement::selfHasRelativeLengths() const |
| 167 { | 167 { |
| 168 return x().isRelative() | 168 return x().isRelative() |
| 169 || y().isRelative() | 169 || y().isRelative() |
| 170 || width().isRelative() | 170 || width().isRelative() |
| 171 || height().isRelative(); | 171 || height().isRelative(); |
| 172 } | 172 } |
| 173 | 173 |
| 174 } | 174 } |
| OLD | NEW |