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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 SVGAnimatedLength::create(this, | 44 SVGAnimatedLength::create(this, |
45 SVGNames::widthAttr, | 45 SVGNames::widthAttr, |
46 SVGLength::create(SVGLengthMode::Width))), | 46 SVGLength::create(SVGLengthMode::Width))), |
47 m_height( | 47 m_height( |
48 SVGAnimatedLength::create(this, | 48 SVGAnimatedLength::create(this, |
49 SVGNames::heightAttr, | 49 SVGNames::heightAttr, |
50 SVGLength::create(SVGLengthMode::Height))), | 50 SVGLength::create(SVGLengthMode::Height))), |
51 m_result(SVGAnimatedString::create(this, | 51 m_result(SVGAnimatedString::create(this, |
52 SVGNames::resultAttr, | 52 SVGNames::resultAttr, |
53 SVGString::create())) { | 53 SVGString::create())) { |
54 // Spec: If the x/y attribute is not specified, the effect is as if a value of
"0%" were specified. | 54 // Spec: If the x/y attribute is not specified, the effect is as if a value of |
| 55 // "0%" were specified. |
55 m_x->setDefaultValueAsString("0%"); | 56 m_x->setDefaultValueAsString("0%"); |
56 m_y->setDefaultValueAsString("0%"); | 57 m_y->setDefaultValueAsString("0%"); |
57 | 58 |
58 // Spec: If the width/height attribute is not specified, the effect is as if a
value of "100%" were specified. | 59 // Spec: If the width/height attribute is not specified, the effect is as if a |
| 60 // value of "100%" were specified. |
59 m_width->setDefaultValueAsString("100%"); | 61 m_width->setDefaultValueAsString("100%"); |
60 m_height->setDefaultValueAsString("100%"); | 62 m_height->setDefaultValueAsString("100%"); |
61 | 63 |
62 addToPropertyMap(m_x); | 64 addToPropertyMap(m_x); |
63 addToPropertyMap(m_y); | 65 addToPropertyMap(m_y); |
64 addToPropertyMap(m_width); | 66 addToPropertyMap(m_width); |
65 addToPropertyMap(m_height); | 67 addToPropertyMap(m_height); |
66 addToPropertyMap(m_result); | 68 addToPropertyMap(m_result); |
67 } | 69 } |
68 | 70 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 | 198 |
197 LayoutObject* layoutObject = parent->layoutObject(); | 199 LayoutObject* layoutObject = parent->layoutObject(); |
198 if (!layoutObject || !layoutObject->isSVGResourceFilterPrimitive()) | 200 if (!layoutObject || !layoutObject->isSVGResourceFilterPrimitive()) |
199 return; | 201 return; |
200 | 202 |
201 LayoutSVGResourceContainer::markForLayoutAndParentResourceInvalidation( | 203 LayoutSVGResourceContainer::markForLayoutAndParentResourceInvalidation( |
202 layoutObject, false); | 204 layoutObject, false); |
203 } | 205 } |
204 | 206 |
205 } // namespace blink | 207 } // namespace blink |
OLD | NEW |