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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 PaintOrderNormal; } | 92 static EPaintOrder initialPaintOrder() { return PaintOrderNormal; } |
| 93 static CSSPathValue* initialD() { return CSSPathValue::emptyPathValue(); } |
93 static Length initialCx() { return Length(Fixed); } | 94 static Length initialCx() { return Length(Fixed); } |
94 static Length initialCy() { return Length(Fixed); } | 95 static Length initialCy() { return Length(Fixed); } |
95 static Length initialX() { return Length(Fixed); } | 96 static Length initialX() { return Length(Fixed); } |
96 static Length initialY() { return Length(Fixed); } | 97 static Length initialY() { return Length(Fixed); } |
97 static Length initialR() { return Length(Fixed); } | 98 static Length initialR() { return Length(Fixed); } |
98 static Length initialRx() { return Length(Fixed); } | 99 static Length initialRx() { return Length(Fixed); } |
99 static Length initialRy() { return Length(Fixed); } | 100 static Length initialRy() { return Length(Fixed); } |
100 | 101 |
101 // SVG CSS Property setters | 102 // SVG CSS Property setters |
102 void setAlignmentBaseline(EAlignmentBaseline val) { svg_noninherited_flags.f
.alignmentBaseline = val; } | 103 void setAlignmentBaseline(EAlignmentBaseline val) { svg_noninherited_flags.f
.alignmentBaseline = val; } |
103 void setDominantBaseline(EDominantBaseline val) { svg_inherited_flags.domina
ntBaseline = val; } | 104 void setDominantBaseline(EDominantBaseline val) { svg_inherited_flags.domina
ntBaseline = val; } |
104 void setBaselineShift(EBaselineShift val) { svg_noninherited_flags.f.baselin
eShift = val; } | 105 void setBaselineShift(EBaselineShift val) { svg_noninherited_flags.f.baselin
eShift = val; } |
105 void setVectorEffect(EVectorEffect val) { svg_noninherited_flags.f.vectorEff
ect = val; } | 106 void setVectorEffect(EVectorEffect val) { svg_noninherited_flags.f.vectorEff
ect = val; } |
106 void setBufferedRendering(EBufferedRendering val) { svg_noninherited_flags.f
.bufferedRendering = val; } | 107 void setBufferedRendering(EBufferedRendering val) { svg_noninherited_flags.f
.bufferedRendering = val; } |
107 void setCapStyle(LineCap val) { svg_inherited_flags.capStyle = val; } | 108 void setCapStyle(LineCap val) { svg_inherited_flags.capStyle = val; } |
108 void setClipRule(WindRule val) { svg_inherited_flags.clipRule = val; } | 109 void setClipRule(WindRule val) { svg_inherited_flags.clipRule = val; } |
109 void setColorInterpolation(EColorInterpolation val) { svg_inherited_flags.co
lorInterpolation = val; } | 110 void setColorInterpolation(EColorInterpolation val) { svg_inherited_flags.co
lorInterpolation = val; } |
110 void setColorInterpolationFilters(EColorInterpolation val) { svg_inherited_f
lags.colorInterpolationFilters = val; } | 111 void setColorInterpolationFilters(EColorInterpolation val) { svg_inherited_f
lags.colorInterpolationFilters = val; } |
111 void setColorRendering(EColorRendering val) { svg_inherited_flags.colorRende
ring = val; } | 112 void setColorRendering(EColorRendering val) { svg_inherited_flags.colorRende
ring = val; } |
112 void setFillRule(WindRule val) { svg_inherited_flags.fillRule = val; } | 113 void setFillRule(WindRule val) { svg_inherited_flags.fillRule = val; } |
113 void setJoinStyle(LineJoin val) { svg_inherited_flags.joinStyle = val; } | 114 void setJoinStyle(LineJoin val) { svg_inherited_flags.joinStyle = val; } |
114 void setShapeRendering(EShapeRendering val) { svg_inherited_flags.shapeRende
ring = val; } | 115 void setShapeRendering(EShapeRendering val) { svg_inherited_flags.shapeRende
ring = val; } |
115 void setTextAnchor(ETextAnchor val) { svg_inherited_flags.textAnchor = val;
} | 116 void setTextAnchor(ETextAnchor val) { svg_inherited_flags.textAnchor = val;
} |
116 void setMaskType(EMaskType val) { svg_noninherited_flags.f.maskType = val; } | 117 void setMaskType(EMaskType val) { svg_noninherited_flags.f.maskType = val; } |
117 void setPaintOrder(EPaintOrder val) { svg_inherited_flags.paintOrder = (int)
val; } | 118 void setPaintOrder(EPaintOrder val) { svg_inherited_flags.paintOrder = (int)
val; } |
| 119 void setD(PassRefPtrWillBeRawPtr<CSSPathValue> d) |
| 120 { |
| 121 if (!(layout->d == d)) |
| 122 layout.access()->d = d; |
| 123 } |
118 void setCx(const Length& obj) | 124 void setCx(const Length& obj) |
119 { | 125 { |
120 if (!(layout->cx == obj)) | 126 if (!(layout->cx == obj)) |
121 layout.access()->cx = obj; | 127 layout.access()->cx = obj; |
122 } | 128 } |
123 void setCy(const Length& obj) | 129 void setCy(const Length& obj) |
124 { | 130 { |
125 if (!(layout->cy == obj)) | 131 if (!(layout->cy == obj)) |
126 layout.access()->cy = obj; | 132 layout.access()->cy = obj; |
127 } | 133 } |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 SVGDashArray* strokeDashArray() const { return stroke->dashArray.get(); } | 332 SVGDashArray* strokeDashArray() const { return stroke->dashArray.get(); } |
327 float strokeMiterLimit() const { return stroke->miterLimit; } | 333 float strokeMiterLimit() const { return stroke->miterLimit; } |
328 const UnzoomedLength& strokeWidth() const { return stroke->width; } | 334 const UnzoomedLength& strokeWidth() const { return stroke->width; } |
329 const Length& strokeDashOffset() const { return stroke->dashOffset; } | 335 const Length& strokeDashOffset() const { return stroke->dashOffset; } |
330 float stopOpacity() const { return stops->opacity; } | 336 float stopOpacity() const { return stops->opacity; } |
331 const Color& stopColor() const { return stops->color; } | 337 const Color& stopColor() const { return stops->color; } |
332 float floodOpacity() const { return misc->floodOpacity; } | 338 float floodOpacity() const { return misc->floodOpacity; } |
333 const Color& floodColor() const { return misc->floodColor; } | 339 const Color& floodColor() const { return misc->floodColor; } |
334 const Color& lightingColor() const { return misc->lightingColor; } | 340 const Color& lightingColor() const { return misc->lightingColor; } |
335 const Length& baselineShiftValue() const { return misc->baselineShiftValue;
} | 341 const Length& baselineShiftValue() const { return misc->baselineShiftValue;
} |
| 342 CSSPathValue* d() const { return layout->d.get(); } |
336 const Length& cx() const { return layout->cx; } | 343 const Length& cx() const { return layout->cx; } |
337 const Length& cy() const { return layout->cy; } | 344 const Length& cy() const { return layout->cy; } |
338 const Length& x() const { return layout->x; } | 345 const Length& x() const { return layout->x; } |
339 const Length& y() const { return layout->y; } | 346 const Length& y() const { return layout->y; } |
340 const Length& r() const { return layout->r; } | 347 const Length& r() const { return layout->r; } |
341 const Length& rx() const { return layout->rx; } | 348 const Length& rx() const { return layout->rx; } |
342 const Length& ry() const { return layout->ry; } | 349 const Length& ry() const { return layout->ry; } |
343 const AtomicString& clipperResource() const { return resources->clipper; } | 350 const AtomicString& clipperResource() const { return resources->clipper; } |
344 const AtomicString& filterResource() const { return resources->filter; } | 351 const AtomicString& filterResource() const { return resources->filter; } |
345 const AtomicString& maskerResource() const { return resources->masker; } | 352 const AtomicString& maskerResource() const { return resources->masker; } |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 svg_noninherited_flags.f.baselineShift = initialBaselineShift(); | 470 svg_noninherited_flags.f.baselineShift = initialBaselineShift(); |
464 svg_noninherited_flags.f.vectorEffect = initialVectorEffect(); | 471 svg_noninherited_flags.f.vectorEffect = initialVectorEffect(); |
465 svg_noninherited_flags.f.bufferedRendering = initialBufferedRendering(); | 472 svg_noninherited_flags.f.bufferedRendering = initialBufferedRendering(); |
466 svg_noninherited_flags.f.maskType = initialMaskType(); | 473 svg_noninherited_flags.f.maskType = initialMaskType(); |
467 } | 474 } |
468 }; | 475 }; |
469 | 476 |
470 } // namespace blink | 477 } // namespace blink |
471 | 478 |
472 #endif // SVGComputedStyle_h | 479 #endif // SVGComputedStyle_h |
OLD | NEW |