| 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) 2006 Samuel Weinig <sam.weinig@gmail.com> | 4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> |
| 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 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 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 SVGLength::create(SVGLengthMode::Height))), | 48 SVGLength::create(SVGLengthMode::Height))), |
| 49 m_filterUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create( | 49 m_filterUnits(SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create( |
| 50 this, | 50 this, |
| 51 SVGNames::filterUnitsAttr, | 51 SVGNames::filterUnitsAttr, |
| 52 SVGUnitTypes::kSvgUnitTypeObjectboundingbox)), | 52 SVGUnitTypes::kSvgUnitTypeObjectboundingbox)), |
| 53 m_primitiveUnits( | 53 m_primitiveUnits( |
| 54 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create( | 54 SVGAnimatedEnumeration<SVGUnitTypes::SVGUnitType>::create( |
| 55 this, | 55 this, |
| 56 SVGNames::primitiveUnitsAttr, | 56 SVGNames::primitiveUnitsAttr, |
| 57 SVGUnitTypes::kSvgUnitTypeUserspaceonuse)) { | 57 SVGUnitTypes::kSvgUnitTypeUserspaceonuse)) { |
| 58 // Spec: If the x/y attribute is not specified, the effect is as if a value of
"-10%" were specified. | 58 // Spec: If the x/y attribute is not specified, the effect is as if a value of |
| 59 // Spec: If the width/height attribute is not specified, the effect is as if a
value of "120%" were specified. | 59 // "-10%" were specified. |
| 60 m_x->setDefaultValueAsString("-10%"); | 60 m_x->setDefaultValueAsString("-10%"); |
| 61 m_y->setDefaultValueAsString("-10%"); | 61 m_y->setDefaultValueAsString("-10%"); |
| 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_filterUnits); | 71 addToPropertyMap(m_filterUnits); |
| 70 addToPropertyMap(m_primitiveUnits); | 72 addToPropertyMap(m_primitiveUnits); |
| 71 } | 73 } |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 ASSERT(client); | 141 ASSERT(client); |
| 140 m_clientsToAdd.add(client); | 142 m_clientsToAdd.add(client); |
| 141 } | 143 } |
| 142 | 144 |
| 143 void SVGFilterElement::removeClient(SVGResourceClient* client) { | 145 void SVGFilterElement::removeClient(SVGResourceClient* client) { |
| 144 ASSERT(client); | 146 ASSERT(client); |
| 145 m_clientsToAdd.remove(client); | 147 m_clientsToAdd.remove(client); |
| 146 } | 148 } |
| 147 | 149 |
| 148 } // namespace blink | 150 } // namespace blink |
| OLD | NEW |