| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 if (isLengthAttribute) | 118 if (isLengthAttribute) |
| 119 updateRelativeLengthsInformation(); | 119 updateRelativeLengthsInformation(); |
| 120 | 120 |
| 121 if (RenderObject* renderer = this->renderer()) | 121 if (RenderObject* renderer = this->renderer()) |
| 122 RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer); | 122 RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer); |
| 123 } | 123 } |
| 124 | 124 |
| 125 RenderObject* SVGForeignObjectElement::createRenderer(RenderStyle*) | 125 RenderObject* SVGForeignObjectElement::createRenderer(RenderStyle*) |
| 126 { | 126 { |
| 127 return new (document()->renderArena()) RenderSVGForeignObject(this); | 127 return new RenderSVGForeignObject(this); |
| 128 } | 128 } |
| 129 | 129 |
| 130 bool SVGForeignObjectElement::childShouldCreateRenderer(const NodeRenderingConte
xt& childContext) const | 130 bool SVGForeignObjectElement::childShouldCreateRenderer(const NodeRenderingConte
xt& childContext) const |
| 131 { | 131 { |
| 132 // Disallow arbitary SVG content. Only allow proper <svg xmlns="svgNS"> subd
ocuments. | 132 // Disallow arbitary SVG content. Only allow proper <svg xmlns="svgNS"> subd
ocuments. |
| 133 if (childContext.node()->isSVGElement()) | 133 if (childContext.node()->isSVGElement()) |
| 134 return childContext.node()->hasTagName(SVGNames::svgTag); | 134 return childContext.node()->hasTagName(SVGNames::svgTag); |
| 135 | 135 |
| 136 // Skip over SVG rules which disallow non-SVG kids | 136 // Skip over SVG rules which disallow non-SVG kids |
| 137 return Element::childShouldCreateRenderer(childContext); | 137 return Element::childShouldCreateRenderer(childContext); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 157 | 157 |
| 158 bool SVGForeignObjectElement::selfHasRelativeLengths() const | 158 bool SVGForeignObjectElement::selfHasRelativeLengths() const |
| 159 { | 159 { |
| 160 return xCurrentValue().isRelative() | 160 return xCurrentValue().isRelative() |
| 161 || yCurrentValue().isRelative() | 161 || yCurrentValue().isRelative() |
| 162 || widthCurrentValue().isRelative() | 162 || widthCurrentValue().isRelative() |
| 163 || heightCurrentValue().isRelative(); | 163 || heightCurrentValue().isRelative(); |
| 164 } | 164 } |
| 165 | 165 |
| 166 } | 166 } |
| OLD | NEW |