| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 SVGLength::create(SVGLengthMode::Height))), | 47 SVGLength::create(SVGLengthMode::Height))), |
| 48 m_maskUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create( | 48 m_maskUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create( |
| 49 this, | 49 this, |
| 50 SVGNames::maskUnitsAttr, | 50 SVGNames::maskUnitsAttr, |
| 51 SVGUnitTypes::kSvgUnitTypeObjectboundingbox)), | 51 SVGUnitTypes::kSvgUnitTypeObjectboundingbox)), |
| 52 m_maskContentUnits( | 52 m_maskContentUnits( |
| 53 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create( | 53 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create( |
| 54 this, | 54 this, |
| 55 SVGNames::maskContentUnitsAttr, | 55 SVGNames::maskContentUnitsAttr, |
| 56 SVGUnitTypes::kSvgUnitTypeUserspaceonuse)) { | 56 SVGUnitTypes::kSvgUnitTypeUserspaceonuse)) { |
| 57 // Spec: If the x/y attribute is not specified, the effect is as if a value of
"-10%" were specified. | 57 // Spec: If the x/y attribute is not specified, the effect is as if a value of |
| 58 // "-10%" were specified. |
| 58 m_x->setDefaultValueAsString("-10%"); | 59 m_x->setDefaultValueAsString("-10%"); |
| 59 m_y->setDefaultValueAsString("-10%"); | 60 m_y->setDefaultValueAsString("-10%"); |
| 60 | 61 |
| 61 // Spec: If the width/height attribute is not specified, the effect is as if a
value of "120%" were specified. | 62 // Spec: If the width/height attribute is not specified, the effect is as if a |
| 63 // value of "120%" were specified. |
| 62 m_width->setDefaultValueAsString("120%"); | 64 m_width->setDefaultValueAsString("120%"); |
| 63 m_height->setDefaultValueAsString("120%"); | 65 m_height->setDefaultValueAsString("120%"); |
| 64 | 66 |
| 65 addToPropertyMap(m_x); | 67 addToPropertyMap(m_x); |
| 66 addToPropertyMap(m_y); | 68 addToPropertyMap(m_y); |
| 67 addToPropertyMap(m_width); | 69 addToPropertyMap(m_width); |
| 68 addToPropertyMap(m_height); | 70 addToPropertyMap(m_height); |
| 69 addToPropertyMap(m_maskUnits); | 71 addToPropertyMap(m_maskUnits); |
| 70 addToPropertyMap(m_maskContentUnits); | 72 addToPropertyMap(m_maskContentUnits); |
| 71 } | 73 } |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 } | 168 } |
| 167 | 169 |
| 168 bool SVGMaskElement::selfHasRelativeLengths() const { | 170 bool SVGMaskElement::selfHasRelativeLengths() const { |
| 169 return m_x->currentValue()->isRelative() || | 171 return m_x->currentValue()->isRelative() || |
| 170 m_y->currentValue()->isRelative() || | 172 m_y->currentValue()->isRelative() || |
| 171 m_width->currentValue()->isRelative() || | 173 m_width->currentValue()->isRelative() || |
| 172 m_height->currentValue()->isRelative(); | 174 m_height->currentValue()->isRelative(); |
| 173 } | 175 } |
| 174 | 176 |
| 175 } // namespace blink | 177 } // namespace blink |
| OLD | NEW |