| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 2004, 2005 Rob Buis <buis@kde.org> | 3 2004, 2005 Rob Buis <buis@kde.org> |
| 4 Copyright (C) 2005, 2006 Apple Computer, Inc. | 4 Copyright (C) 2005, 2006 Apple Computer, Inc. |
| 5 Copyright (C) Research In Motion Limited 2010. All rights reserved. | 5 Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 6 | 6 |
| 7 This library is free software; you can redistribute it and/or | 7 This library is free software; you can redistribute it and/or |
| 8 modify it under the terms of the GNU Library General Public | 8 modify it under the terms of the GNU Library General Public |
| 9 License as published by the Free Software Foundation; either | 9 License as published by the Free Software Foundation; either |
| 10 version 2 of the License, or (at your option) any later version. | 10 version 2 of the License, or (at your option) any later version. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 static EGlyphOrientation initialGlyphOrientationHorizontal() { return GO_0DE
G; } | 68 static EGlyphOrientation initialGlyphOrientationHorizontal() { return GO_0DE
G; } |
| 69 static EGlyphOrientation initialGlyphOrientationVertical() { return GO_AUTO;
} | 69 static EGlyphOrientation initialGlyphOrientationVertical() { return GO_AUTO;
} |
| 70 static float initialFillOpacity() { return 1; } | 70 static float initialFillOpacity() { return 1; } |
| 71 static SVGPaintType initialFillPaintType() { return SVG_PAINTTYPE_RGBCOLOR;
} | 71 static SVGPaintType initialFillPaintType() { return SVG_PAINTTYPE_RGBCOLOR;
} |
| 72 static Color initialFillPaintColor() { return Color::black; } | 72 static Color initialFillPaintColor() { return Color::black; } |
| 73 static String initialFillPaintUri() { return String(); } | 73 static String initialFillPaintUri() { return String(); } |
| 74 static float initialStrokeOpacity() { return 1; } | 74 static float initialStrokeOpacity() { return 1; } |
| 75 static SVGPaintType initialStrokePaintType() { return SVG_PAINTTYPE_NONE; } | 75 static SVGPaintType initialStrokePaintType() { return SVG_PAINTTYPE_NONE; } |
| 76 static Color initialStrokePaintColor() { return Color(); } | 76 static Color initialStrokePaintColor() { return Color(); } |
| 77 static String initialStrokePaintUri() { return String(); } | 77 static String initialStrokePaintUri() { return String(); } |
| 78 static PassRefPtr<SVGLengthList> initialStrokeDashArray() { return SVGLength
List::create(); } | 78 static PassRefPtrWillBeRawPtr<SVGLengthList> initialStrokeDashArray() { retu
rn SVGLengthList::create(); } |
| 79 static float initialStrokeMiterLimit() { return 4; } | 79 static float initialStrokeMiterLimit() { return 4; } |
| 80 static float initialStopOpacity() { return 1; } | 80 static float initialStopOpacity() { return 1; } |
| 81 static Color initialStopColor() { return Color(0, 0, 0); } | 81 static Color initialStopColor() { return Color(0, 0, 0); } |
| 82 static float initialFloodOpacity() { return 1; } | 82 static float initialFloodOpacity() { return 1; } |
| 83 static Color initialFloodColor() { return Color(0, 0, 0); } | 83 static Color initialFloodColor() { return Color(0, 0, 0); } |
| 84 static Color initialLightingColor() { return Color(255, 255, 255); } | 84 static Color initialLightingColor() { return Color(255, 255, 255); } |
| 85 static const AtomicString& initialClipperResource() { return nullAtom; } | 85 static const AtomicString& initialClipperResource() { return nullAtom; } |
| 86 static const AtomicString& initialFilterResource() { return nullAtom; } | 86 static const AtomicString& initialFilterResource() { return nullAtom; } |
| 87 static const AtomicString& initialMaskerResource() { return nullAtom; } | 87 static const AtomicString& initialMaskerResource() { return nullAtom; } |
| 88 static const AtomicString& initialMarkerStartResource() { return nullAtom; } | 88 static const AtomicString& initialMarkerStartResource() { return nullAtom; } |
| 89 static const AtomicString& initialMarkerMidResource() { return nullAtom; } | 89 static const AtomicString& initialMarkerMidResource() { return nullAtom; } |
| 90 static const AtomicString& initialMarkerEndResource() { return nullAtom; } | 90 static const AtomicString& initialMarkerEndResource() { return nullAtom; } |
| 91 static EMaskType initialMaskType() { return MT_LUMINANCE; } | 91 static EMaskType initialMaskType() { return MT_LUMINANCE; } |
| 92 static EPaintOrder initialPaintOrder() { return PO_NORMAL; } | 92 static EPaintOrder initialPaintOrder() { return PO_NORMAL; } |
| 93 | 93 |
| 94 static PassRefPtr<SVGLength> initialBaselineShiftValue() | 94 static PassRefPtrWillBeRawPtr<SVGLength> initialBaselineShiftValue() |
| 95 { | 95 { |
| 96 RefPtr<SVGLength> length = SVGLength::create(); | 96 RefPtrWillBeRawPtr<SVGLength> length = SVGLength::create(); |
| 97 length->newValueSpecifiedUnits(LengthTypeNumber, 0); | 97 length->newValueSpecifiedUnits(LengthTypeNumber, 0); |
| 98 return length.release(); | 98 return length.release(); |
| 99 } | 99 } |
| 100 | 100 |
| 101 static PassRefPtr<SVGLength> initialStrokeDashOffset() | 101 static PassRefPtrWillBeRawPtr<SVGLength> initialStrokeDashOffset() |
| 102 { | 102 { |
| 103 RefPtr<SVGLength> length = SVGLength::create(); | 103 RefPtrWillBeRawPtr<SVGLength> length = SVGLength::create(); |
| 104 length->newValueSpecifiedUnits(LengthTypeNumber, 0); | 104 length->newValueSpecifiedUnits(LengthTypeNumber, 0); |
| 105 return length.release(); | 105 return length.release(); |
| 106 } | 106 } |
| 107 | 107 |
| 108 static PassRefPtr<SVGLength> initialStrokeWidth() | 108 static PassRefPtrWillBeRawPtr<SVGLength> initialStrokeWidth() |
| 109 { | 109 { |
| 110 RefPtr<SVGLength> length = SVGLength::create(); | 110 RefPtrWillBeRawPtr<SVGLength> length = SVGLength::create(); |
| 111 length->newValueSpecifiedUnits(LengthTypeNumber, 1); | 111 length->newValueSpecifiedUnits(LengthTypeNumber, 1); |
| 112 return length.release(); | 112 return length.release(); |
| 113 } | 113 } |
| 114 | 114 |
| 115 // SVG CSS Property setters | 115 // SVG CSS Property setters |
| 116 void setAlignmentBaseline(EAlignmentBaseline val) { svg_noninherited_flags.f
._alignmentBaseline = val; } | 116 void setAlignmentBaseline(EAlignmentBaseline val) { svg_noninherited_flags.f
._alignmentBaseline = val; } |
| 117 void setDominantBaseline(EDominantBaseline val) { svg_noninherited_flags.f._
dominantBaseline = val; } | 117 void setDominantBaseline(EDominantBaseline val) { svg_noninherited_flags.f._
dominantBaseline = val; } |
| 118 void setBaselineShift(EBaselineShift val) { svg_noninherited_flags.f._baseli
neShift = val; } | 118 void setBaselineShift(EBaselineShift val) { svg_noninherited_flags.f._baseli
neShift = val; } |
| 119 void setVectorEffect(EVectorEffect val) { svg_noninherited_flags.f._vectorEf
fect = val; } | 119 void setVectorEffect(EVectorEffect val) { svg_noninherited_flags.f._vectorEf
fect = val; } |
| 120 void setBufferedRendering(EBufferedRendering val) { svg_noninherited_flags.f
.bufferedRendering = val; } | 120 void setBufferedRendering(EBufferedRendering val) { svg_noninherited_flags.f
.bufferedRendering = val; } |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 if (applyToVisitedLinkStyle) { | 178 if (applyToVisitedLinkStyle) { |
| 179 if (!(stroke->visitedLinkPaintType == type)) | 179 if (!(stroke->visitedLinkPaintType == type)) |
| 180 stroke.access()->visitedLinkPaintType = type; | 180 stroke.access()->visitedLinkPaintType = type; |
| 181 if (!(stroke->visitedLinkPaintColor == color)) | 181 if (!(stroke->visitedLinkPaintColor == color)) |
| 182 stroke.access()->visitedLinkPaintColor = color; | 182 stroke.access()->visitedLinkPaintColor = color; |
| 183 if (!(stroke->visitedLinkPaintUri == uri)) | 183 if (!(stroke->visitedLinkPaintUri == uri)) |
| 184 stroke.access()->visitedLinkPaintUri = uri; | 184 stroke.access()->visitedLinkPaintUri = uri; |
| 185 } | 185 } |
| 186 } | 186 } |
| 187 | 187 |
| 188 void setStrokeDashArray(PassRefPtr<SVGLengthList> obj) | 188 void setStrokeDashArray(PassRefPtrWillBeRawPtr<SVGLengthList> obj) |
| 189 { | 189 { |
| 190 if (!(stroke->dashArray == obj)) | 190 if (!(stroke->dashArray == obj)) |
| 191 stroke.access()->dashArray = obj; | 191 stroke.access()->dashArray = obj; |
| 192 } | 192 } |
| 193 | 193 |
| 194 void setStrokeMiterLimit(float obj) | 194 void setStrokeMiterLimit(float obj) |
| 195 { | 195 { |
| 196 if (!(stroke->miterLimit == obj)) | 196 if (!(stroke->miterLimit == obj)) |
| 197 stroke.access()->miterLimit = obj; | 197 stroke.access()->miterLimit = obj; |
| 198 } | 198 } |
| 199 | 199 |
| 200 void setStrokeWidth(PassRefPtr<SVGLength> obj) | 200 void setStrokeWidth(PassRefPtrWillBeRawPtr<SVGLength> obj) |
| 201 { | 201 { |
| 202 if (!(stroke->width == obj)) | 202 if (!(stroke->width == obj)) |
| 203 stroke.access()->width = obj; | 203 stroke.access()->width = obj; |
| 204 } | 204 } |
| 205 | 205 |
| 206 void setStrokeDashOffset(PassRefPtr<SVGLength> obj) | 206 void setStrokeDashOffset(PassRefPtrWillBeRawPtr<SVGLength> obj) |
| 207 { | 207 { |
| 208 if (!(stroke->dashOffset == obj)) | 208 if (!(stroke->dashOffset == obj)) |
| 209 stroke.access()->dashOffset = obj; | 209 stroke.access()->dashOffset = obj; |
| 210 } | 210 } |
| 211 | 211 |
| 212 void setStopOpacity(float obj) | 212 void setStopOpacity(float obj) |
| 213 { | 213 { |
| 214 if (!(stops->opacity == obj)) | 214 if (!(stops->opacity == obj)) |
| 215 stops.access()->opacity = obj; | 215 stops.access()->opacity = obj; |
| 216 } | 216 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 232 if (!(misc->floodColor == obj)) | 232 if (!(misc->floodColor == obj)) |
| 233 misc.access()->floodColor = obj; | 233 misc.access()->floodColor = obj; |
| 234 } | 234 } |
| 235 | 235 |
| 236 void setLightingColor(const Color& obj) | 236 void setLightingColor(const Color& obj) |
| 237 { | 237 { |
| 238 if (!(misc->lightingColor == obj)) | 238 if (!(misc->lightingColor == obj)) |
| 239 misc.access()->lightingColor = obj; | 239 misc.access()->lightingColor = obj; |
| 240 } | 240 } |
| 241 | 241 |
| 242 void setBaselineShiftValue(PassRefPtr<SVGLength> obj) | 242 void setBaselineShiftValue(PassRefPtrWillBeRawPtr<SVGLength> obj) |
| 243 { | 243 { |
| 244 if (!(misc->baselineShiftValue == obj)) | 244 if (!(misc->baselineShiftValue == obj)) |
| 245 misc.access()->baselineShiftValue = obj; | 245 misc.access()->baselineShiftValue = obj; |
| 246 } | 246 } |
| 247 | 247 |
| 248 // Setters for non-inherited resources | 248 // Setters for non-inherited resources |
| 249 void setClipperResource(const AtomicString& obj) | 249 void setClipperResource(const AtomicString& obj) |
| 250 { | 250 { |
| 251 if (!(resources->clipper == obj)) | 251 if (!(resources->clipper == obj)) |
| 252 resources.access()->clipper = obj; | 252 resources.access()->clipper = obj; |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 svg_noninherited_flags.f._baselineShift = initialBaselineShift(); | 448 svg_noninherited_flags.f._baselineShift = initialBaselineShift(); |
| 449 svg_noninherited_flags.f._vectorEffect = initialVectorEffect(); | 449 svg_noninherited_flags.f._vectorEffect = initialVectorEffect(); |
| 450 svg_noninherited_flags.f.bufferedRendering = initialBufferedRendering(); | 450 svg_noninherited_flags.f.bufferedRendering = initialBufferedRendering(); |
| 451 svg_noninherited_flags.f.maskType = initialMaskType(); | 451 svg_noninherited_flags.f.maskType = initialMaskType(); |
| 452 } | 452 } |
| 453 }; | 453 }; |
| 454 | 454 |
| 455 } // namespace blink | 455 } // namespace blink |
| 456 | 456 |
| 457 #endif // SVGRenderStyle_h | 457 #endif // SVGRenderStyle_h |
| OLD | NEW |