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 14 matching lines...) Expand all Loading... |
25 #include "core/SVGNames.h" | 25 #include "core/SVGNames.h" |
26 #include "core/layout/svg/LayoutSVGResourceContainer.h" | 26 #include "core/layout/svg/LayoutSVGResourceContainer.h" |
27 #include "core/layout/svg/LayoutSVGResourceFilterPrimitive.h" | 27 #include "core/layout/svg/LayoutSVGResourceFilterPrimitive.h" |
28 #include "core/svg/SVGLength.h" | 28 #include "core/svg/SVGLength.h" |
29 #include "platform/graphics/filters/FilterEffect.h" | 29 #include "platform/graphics/filters/FilterEffect.h" |
30 | 30 |
31 namespace blink { | 31 namespace blink { |
32 | 32 |
33 SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes(const
QualifiedName& tagName, Document& document) | 33 SVGFilterPrimitiveStandardAttributes::SVGFilterPrimitiveStandardAttributes(const
QualifiedName& tagName, Document& document) |
34 : SVGElement(tagName, document) | 34 : SVGElement(tagName, document) |
35 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(Len
gthModeWidth), AllowNegativeLengths)) | 35 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(SVG
LengthMode::Width), AllowNegativeLengths)) |
36 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(Len
gthModeHeight), AllowNegativeLengths)) | 36 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(SVG
LengthMode::Height), AllowNegativeLengths)) |
37 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr
eate(LengthModeWidth), ForbidNegativeLengths)) | 37 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr
eate(SVGLengthMode::Width), ForbidNegativeLengths)) |
38 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::
create(LengthModeHeight), ForbidNegativeLengths)) | 38 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength::
create(SVGLengthMode::Height), ForbidNegativeLengths)) |
39 , m_result(SVGAnimatedString::create(this, SVGNames::resultAttr, SVGString::
create())) | 39 , m_result(SVGAnimatedString::create(this, SVGNames::resultAttr, SVGString::
create())) |
40 { | 40 { |
41 // Spec: If the x/y attribute is not specified, the effect is as if a value
of "0%" were specified. | 41 // Spec: If the x/y attribute is not specified, the effect is as if a value
of "0%" were specified. |
42 m_x->setDefaultValueAsString("0%"); | 42 m_x->setDefaultValueAsString("0%"); |
43 m_y->setDefaultValueAsString("0%"); | 43 m_y->setDefaultValueAsString("0%"); |
44 | 44 |
45 // Spec: If the width/height attribute is not specified, the effect is as if
a value of "100%" were specified. | 45 // Spec: If the width/height attribute is not specified, the effect is as if
a value of "100%" were specified. |
46 m_width->setDefaultValueAsString("100%"); | 46 m_width->setDefaultValueAsString("100%"); |
47 m_height->setDefaultValueAsString("100%"); | 47 m_height->setDefaultValueAsString("100%"); |
48 | 48 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 return; | 159 return; |
160 | 160 |
161 LayoutObject* renderer = parent->renderer(); | 161 LayoutObject* renderer = parent->renderer(); |
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 |