OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2005 Alexander Kellett <lypanov@kde.org> | 4 * Copyright (C) 2005 Alexander Kellett <lypanov@kde.org> |
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
6 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 m_height->setDefaultValueAsString("120%"); | 48 m_height->setDefaultValueAsString("120%"); |
49 | 49 |
50 addToPropertyMap(m_x); | 50 addToPropertyMap(m_x); |
51 addToPropertyMap(m_y); | 51 addToPropertyMap(m_y); |
52 addToPropertyMap(m_width); | 52 addToPropertyMap(m_width); |
53 addToPropertyMap(m_height); | 53 addToPropertyMap(m_height); |
54 addToPropertyMap(m_maskUnits); | 54 addToPropertyMap(m_maskUnits); |
55 addToPropertyMap(m_maskContentUnits); | 55 addToPropertyMap(m_maskContentUnits); |
56 } | 56 } |
57 | 57 |
| 58 void SVGMaskElement::trace(Visitor* visitor) |
| 59 { |
| 60 visitor->trace(m_x); |
| 61 visitor->trace(m_y); |
| 62 visitor->trace(m_width); |
| 63 visitor->trace(m_height); |
| 64 visitor->trace(m_maskUnits); |
| 65 visitor->trace(m_maskContentUnits); |
| 66 SVGElement::trace(visitor); |
| 67 SVGTests::trace(visitor); |
| 68 } |
| 69 |
58 DEFINE_NODE_FACTORY(SVGMaskElement) | 70 DEFINE_NODE_FACTORY(SVGMaskElement) |
59 | 71 |
60 bool SVGMaskElement::isSupportedAttribute(const QualifiedName& attrName) | 72 bool SVGMaskElement::isSupportedAttribute(const QualifiedName& attrName) |
61 { | 73 { |
62 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 74 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
63 if (supportedAttributes.isEmpty()) { | 75 if (supportedAttributes.isEmpty()) { |
64 SVGTests::addSupportedAttributes(supportedAttributes); | 76 SVGTests::addSupportedAttributes(supportedAttributes); |
65 supportedAttributes.add(SVGNames::maskUnitsAttr); | 77 supportedAttributes.add(SVGNames::maskUnitsAttr); |
66 supportedAttributes.add(SVGNames::maskContentUnitsAttr); | 78 supportedAttributes.add(SVGNames::maskContentUnitsAttr); |
67 supportedAttributes.add(SVGNames::xAttr); | 79 supportedAttributes.add(SVGNames::xAttr); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 127 |
116 bool SVGMaskElement::selfHasRelativeLengths() const | 128 bool SVGMaskElement::selfHasRelativeLengths() const |
117 { | 129 { |
118 return m_x->currentValue()->isRelative() | 130 return m_x->currentValue()->isRelative() |
119 || m_y->currentValue()->isRelative() | 131 || m_y->currentValue()->isRelative() |
120 || m_width->currentValue()->isRelative() | 132 || m_width->currentValue()->isRelative() |
121 || m_height->currentValue()->isRelative(); | 133 || m_height->currentValue()->isRelative(); |
122 } | 134 } |
123 | 135 |
124 } // namespace blink | 136 } // namespace blink |
OLD | NEW |