| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 SVGLength* y() const { return m_y.get(); } | 59 SVGLength* y() const { return m_y.get(); } |
| 60 SVGLength* width() const { return m_width.get(); } | 60 SVGLength* width() const { return m_width.get(); } |
| 61 SVGLength* height() const { return m_height.get(); } | 61 SVGLength* height() const { return m_height.get(); } |
| 62 FloatRect viewBox() const { return m_viewBox; } | 62 FloatRect viewBox() const { return m_viewBox; } |
| 63 SVGPreserveAspectRatio* preserveAspectRatio() const { return m_preserveAspec
tRatio.get(); } | 63 SVGPreserveAspectRatio* preserveAspectRatio() const { return m_preserveAspec
tRatio.get(); } |
| 64 SVGUnitTypes::SVGUnitType patternUnits() const { return m_patternUnits; } | 64 SVGUnitTypes::SVGUnitType patternUnits() const { return m_patternUnits; } |
| 65 SVGUnitTypes::SVGUnitType patternContentUnits() const { return m_patternCont
entUnits; } | 65 SVGUnitTypes::SVGUnitType patternContentUnits() const { return m_patternCont
entUnits; } |
| 66 AffineTransform patternTransform() const { return m_patternTransform; } | 66 AffineTransform patternTransform() const { return m_patternTransform; } |
| 67 const SVGPatternElement* patternContentElement() const { return m_patternCon
tentElement; } | 67 const SVGPatternElement* patternContentElement() const { return m_patternCon
tentElement; } |
| 68 | 68 |
| 69 void setX(PassRefPtrWillBeRawPtr<SVGLength> value) | 69 void setX(RawPtr<SVGLength> value) |
| 70 { | 70 { |
| 71 m_x = value; | 71 m_x = value; |
| 72 m_xSet = true; | 72 m_xSet = true; |
| 73 } | 73 } |
| 74 | 74 |
| 75 void setY(PassRefPtrWillBeRawPtr<SVGLength> value) | 75 void setY(RawPtr<SVGLength> value) |
| 76 { | 76 { |
| 77 m_y = value; | 77 m_y = value; |
| 78 m_ySet = true; | 78 m_ySet = true; |
| 79 } | 79 } |
| 80 | 80 |
| 81 void setWidth(PassRefPtrWillBeRawPtr<SVGLength> value) | 81 void setWidth(RawPtr<SVGLength> value) |
| 82 { | 82 { |
| 83 m_width = value; | 83 m_width = value; |
| 84 m_widthSet = true; | 84 m_widthSet = true; |
| 85 } | 85 } |
| 86 | 86 |
| 87 void setHeight(PassRefPtrWillBeRawPtr<SVGLength> value) | 87 void setHeight(RawPtr<SVGLength> value) |
| 88 { | 88 { |
| 89 m_height = value; | 89 m_height = value; |
| 90 m_heightSet = true; | 90 m_heightSet = true; |
| 91 } | 91 } |
| 92 | 92 |
| 93 void setViewBox(const FloatRect& value) | 93 void setViewBox(const FloatRect& value) |
| 94 { | 94 { |
| 95 m_viewBox = value; | 95 m_viewBox = value; |
| 96 m_viewBoxSet = true; | 96 m_viewBoxSet = true; |
| 97 } | 97 } |
| 98 | 98 |
| 99 void setPreserveAspectRatio(PassRefPtrWillBeRawPtr<SVGPreserveAspectRatio> v
alue) | 99 void setPreserveAspectRatio(RawPtr<SVGPreserveAspectRatio> value) |
| 100 { | 100 { |
| 101 m_preserveAspectRatio = value; | 101 m_preserveAspectRatio = value; |
| 102 m_preserveAspectRatioSet = true; | 102 m_preserveAspectRatioSet = true; |
| 103 } | 103 } |
| 104 | 104 |
| 105 void setPatternUnits(SVGUnitTypes::SVGUnitType value) | 105 void setPatternUnits(SVGUnitTypes::SVGUnitType value) |
| 106 { | 106 { |
| 107 m_patternUnits = value; | 107 m_patternUnits = value; |
| 108 m_patternUnitsSet = true; | 108 m_patternUnitsSet = true; |
| 109 } | 109 } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 visitor->trace(m_x); | 142 visitor->trace(m_x); |
| 143 visitor->trace(m_y); | 143 visitor->trace(m_y); |
| 144 visitor->trace(m_width); | 144 visitor->trace(m_width); |
| 145 visitor->trace(m_height); | 145 visitor->trace(m_height); |
| 146 visitor->trace(m_preserveAspectRatio); | 146 visitor->trace(m_preserveAspectRatio); |
| 147 visitor->trace(m_patternContentElement); | 147 visitor->trace(m_patternContentElement); |
| 148 } | 148 } |
| 149 | 149 |
| 150 private: | 150 private: |
| 151 // Properties | 151 // Properties |
| 152 RefPtrWillBeMember<SVGLength> m_x; | 152 Member<SVGLength> m_x; |
| 153 RefPtrWillBeMember<SVGLength> m_y; | 153 Member<SVGLength> m_y; |
| 154 RefPtrWillBeMember<SVGLength> m_width; | 154 Member<SVGLength> m_width; |
| 155 RefPtrWillBeMember<SVGLength> m_height; | 155 Member<SVGLength> m_height; |
| 156 FloatRect m_viewBox; | 156 FloatRect m_viewBox; |
| 157 RefPtrWillBeMember<SVGPreserveAspectRatio> m_preserveAspectRatio; | 157 Member<SVGPreserveAspectRatio> m_preserveAspectRatio; |
| 158 SVGUnitTypes::SVGUnitType m_patternUnits; | 158 SVGUnitTypes::SVGUnitType m_patternUnits; |
| 159 SVGUnitTypes::SVGUnitType m_patternContentUnits; | 159 SVGUnitTypes::SVGUnitType m_patternContentUnits; |
| 160 AffineTransform m_patternTransform; | 160 AffineTransform m_patternTransform; |
| 161 RawPtrWillBeMember<const SVGPatternElement> m_patternContentElement; | 161 Member<const SVGPatternElement> m_patternContentElement; |
| 162 | 162 |
| 163 // Property states | 163 // Property states |
| 164 bool m_xSet : 1; | 164 bool m_xSet : 1; |
| 165 bool m_ySet : 1; | 165 bool m_ySet : 1; |
| 166 bool m_widthSet : 1; | 166 bool m_widthSet : 1; |
| 167 bool m_heightSet : 1; | 167 bool m_heightSet : 1; |
| 168 bool m_viewBoxSet : 1; | 168 bool m_viewBoxSet : 1; |
| 169 bool m_preserveAspectRatioSet : 1; | 169 bool m_preserveAspectRatioSet : 1; |
| 170 bool m_patternUnitsSet : 1; | 170 bool m_patternUnitsSet : 1; |
| 171 bool m_patternContentUnitsSet : 1; | 171 bool m_patternContentUnitsSet : 1; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 191 { | 191 { |
| 192 } | 192 } |
| 193 | 193 |
| 194 PatternAttributes m_attributes; | 194 PatternAttributes m_attributes; |
| 195 }; | 195 }; |
| 196 #endif | 196 #endif |
| 197 | 197 |
| 198 } // namespace blink | 198 } // namespace blink |
| 199 | 199 |
| 200 #endif // PatternAttributes_h | 200 #endif // PatternAttributes_h |
| OLD | NEW |