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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 static Color initialFloodColor() { return Color(0, 0, 0); } | 82 static Color initialFloodColor() { return Color(0, 0, 0); } |
83 static Color initialLightingColor() { return Color(255, 255, 255); } | 83 static Color initialLightingColor() { return Color(255, 255, 255); } |
84 static const AtomicString& initialClipperResource() { return nullAtom; } | 84 static const AtomicString& initialClipperResource() { return nullAtom; } |
85 static const AtomicString& initialFilterResource() { return nullAtom; } | 85 static const AtomicString& initialFilterResource() { return nullAtom; } |
86 static const AtomicString& initialMaskerResource() { return nullAtom; } | 86 static const AtomicString& initialMaskerResource() { return nullAtom; } |
87 static const AtomicString& initialMarkerStartResource() { return nullAtom; } | 87 static const AtomicString& initialMarkerStartResource() { return nullAtom; } |
88 static const AtomicString& initialMarkerMidResource() { return nullAtom; } | 88 static const AtomicString& initialMarkerMidResource() { return nullAtom; } |
89 static const AtomicString& initialMarkerEndResource() { return nullAtom; } | 89 static const AtomicString& initialMarkerEndResource() { return nullAtom; } |
90 static EMaskType initialMaskType() { return MT_LUMINANCE; } | 90 static EMaskType initialMaskType() { return MT_LUMINANCE; } |
91 static EPaintOrder initialPaintOrder() { return PaintOrderNormal; } | 91 static EPaintOrder initialPaintOrder() { return PaintOrderNormal; } |
92 static CSSPathValue* initialD() { return CSSPathValue::emptyPathValue(); } | 92 static StylePath* initialD() { return StylePath::emptyPath(); } |
93 static Length initialCx() { return Length(Fixed); } | 93 static Length initialCx() { return Length(Fixed); } |
94 static Length initialCy() { return Length(Fixed); } | 94 static Length initialCy() { return Length(Fixed); } |
95 static Length initialX() { return Length(Fixed); } | 95 static Length initialX() { return Length(Fixed); } |
96 static Length initialY() { return Length(Fixed); } | 96 static Length initialY() { return Length(Fixed); } |
97 static Length initialR() { return Length(Fixed); } | 97 static Length initialR() { return Length(Fixed); } |
98 static Length initialRx() { return Length(Fixed); } | 98 static Length initialRx() { return Length(Fixed); } |
99 static Length initialRy() { return Length(Fixed); } | 99 static Length initialRy() { return Length(Fixed); } |
100 | 100 |
101 // SVG CSS Property setters | 101 // SVG CSS Property setters |
102 void setAlignmentBaseline(EAlignmentBaseline val) { svg_noninherited_flags.f
.alignmentBaseline = val; } | 102 void setAlignmentBaseline(EAlignmentBaseline val) { svg_noninherited_flags.f
.alignmentBaseline = val; } |
103 void setDominantBaseline(EDominantBaseline val) { svg_inherited_flags.domina
ntBaseline = val; } | 103 void setDominantBaseline(EDominantBaseline val) { svg_inherited_flags.domina
ntBaseline = val; } |
104 void setBaselineShift(EBaselineShift val) { svg_noninherited_flags.f.baselin
eShift = val; } | 104 void setBaselineShift(EBaselineShift val) { svg_noninherited_flags.f.baselin
eShift = val; } |
105 void setVectorEffect(EVectorEffect val) { svg_noninherited_flags.f.vectorEff
ect = val; } | 105 void setVectorEffect(EVectorEffect val) { svg_noninherited_flags.f.vectorEff
ect = val; } |
106 void setBufferedRendering(EBufferedRendering val) { svg_noninherited_flags.f
.bufferedRendering = val; } | 106 void setBufferedRendering(EBufferedRendering val) { svg_noninherited_flags.f
.bufferedRendering = val; } |
107 void setCapStyle(LineCap val) { svg_inherited_flags.capStyle = val; } | 107 void setCapStyle(LineCap val) { svg_inherited_flags.capStyle = val; } |
108 void setClipRule(WindRule val) { svg_inherited_flags.clipRule = val; } | 108 void setClipRule(WindRule val) { svg_inherited_flags.clipRule = val; } |
109 void setColorInterpolation(EColorInterpolation val) { svg_inherited_flags.co
lorInterpolation = val; } | 109 void setColorInterpolation(EColorInterpolation val) { svg_inherited_flags.co
lorInterpolation = val; } |
110 void setColorInterpolationFilters(EColorInterpolation val) { svg_inherited_f
lags.colorInterpolationFilters = val; } | 110 void setColorInterpolationFilters(EColorInterpolation val) { svg_inherited_f
lags.colorInterpolationFilters = val; } |
111 void setColorRendering(EColorRendering val) { svg_inherited_flags.colorRende
ring = val; } | 111 void setColorRendering(EColorRendering val) { svg_inherited_flags.colorRende
ring = val; } |
112 void setFillRule(WindRule val) { svg_inherited_flags.fillRule = val; } | 112 void setFillRule(WindRule val) { svg_inherited_flags.fillRule = val; } |
113 void setJoinStyle(LineJoin val) { svg_inherited_flags.joinStyle = val; } | 113 void setJoinStyle(LineJoin val) { svg_inherited_flags.joinStyle = val; } |
114 void setShapeRendering(EShapeRendering val) { svg_inherited_flags.shapeRende
ring = val; } | 114 void setShapeRendering(EShapeRendering val) { svg_inherited_flags.shapeRende
ring = val; } |
115 void setTextAnchor(ETextAnchor val) { svg_inherited_flags.textAnchor = val;
} | 115 void setTextAnchor(ETextAnchor val) { svg_inherited_flags.textAnchor = val;
} |
116 void setMaskType(EMaskType val) { svg_noninherited_flags.f.maskType = val; } | 116 void setMaskType(EMaskType val) { svg_noninherited_flags.f.maskType = val; } |
117 void setPaintOrder(EPaintOrder val) { svg_inherited_flags.paintOrder = (int)
val; } | 117 void setPaintOrder(EPaintOrder val) { svg_inherited_flags.paintOrder = (int)
val; } |
118 void setD(PassRefPtrWillBeRawPtr<CSSPathValue> d) | 118 void setD(PassRefPtr<StylePath> d) |
119 { | 119 { |
120 if (!(layout->d == d)) | 120 if (!(layout->d == d)) |
121 layout.access()->d = d; | 121 layout.access()->d = d; |
122 } | 122 } |
123 void setCx(const Length& obj) | 123 void setCx(const Length& obj) |
124 { | 124 { |
125 if (!(layout->cx == obj)) | 125 if (!(layout->cx == obj)) |
126 layout.access()->cx = obj; | 126 layout.access()->cx = obj; |
127 } | 127 } |
128 void setCy(const Length& obj) | 128 void setCy(const Length& obj) |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 SVGDashArray* strokeDashArray() const { return stroke->dashArray.get(); } | 331 SVGDashArray* strokeDashArray() const { return stroke->dashArray.get(); } |
332 float strokeMiterLimit() const { return stroke->miterLimit; } | 332 float strokeMiterLimit() const { return stroke->miterLimit; } |
333 const UnzoomedLength& strokeWidth() const { return stroke->width; } | 333 const UnzoomedLength& strokeWidth() const { return stroke->width; } |
334 const Length& strokeDashOffset() const { return stroke->dashOffset; } | 334 const Length& strokeDashOffset() const { return stroke->dashOffset; } |
335 float stopOpacity() const { return stops->opacity; } | 335 float stopOpacity() const { return stops->opacity; } |
336 const Color& stopColor() const { return stops->color; } | 336 const Color& stopColor() const { return stops->color; } |
337 float floodOpacity() const { return misc->floodOpacity; } | 337 float floodOpacity() const { return misc->floodOpacity; } |
338 const Color& floodColor() const { return misc->floodColor; } | 338 const Color& floodColor() const { return misc->floodColor; } |
339 const Color& lightingColor() const { return misc->lightingColor; } | 339 const Color& lightingColor() const { return misc->lightingColor; } |
340 const Length& baselineShiftValue() const { return misc->baselineShiftValue;
} | 340 const Length& baselineShiftValue() const { return misc->baselineShiftValue;
} |
341 CSSPathValue* d() const { return layout->d.get(); } | 341 StylePath* d() const { return layout->d.get(); } |
342 const Length& cx() const { return layout->cx; } | 342 const Length& cx() const { return layout->cx; } |
343 const Length& cy() const { return layout->cy; } | 343 const Length& cy() const { return layout->cy; } |
344 const Length& x() const { return layout->x; } | 344 const Length& x() const { return layout->x; } |
345 const Length& y() const { return layout->y; } | 345 const Length& y() const { return layout->y; } |
346 const Length& r() const { return layout->r; } | 346 const Length& r() const { return layout->r; } |
347 const Length& rx() const { return layout->rx; } | 347 const Length& rx() const { return layout->rx; } |
348 const Length& ry() const { return layout->ry; } | 348 const Length& ry() const { return layout->ry; } |
349 const AtomicString& clipperResource() const { return resources->clipper; } | 349 const AtomicString& clipperResource() const { return resources->clipper; } |
350 const AtomicString& filterResource() const { return resources->filter; } | 350 const AtomicString& filterResource() const { return resources->filter; } |
351 const AtomicString& maskerResource() const { return resources->masker; } | 351 const AtomicString& maskerResource() const { return resources->masker; } |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 svg_noninherited_flags.f.baselineShift = initialBaselineShift(); | 485 svg_noninherited_flags.f.baselineShift = initialBaselineShift(); |
486 svg_noninherited_flags.f.vectorEffect = initialVectorEffect(); | 486 svg_noninherited_flags.f.vectorEffect = initialVectorEffect(); |
487 svg_noninherited_flags.f.bufferedRendering = initialBufferedRendering(); | 487 svg_noninherited_flags.f.bufferedRendering = initialBufferedRendering(); |
488 svg_noninherited_flags.f.maskType = initialMaskType(); | 488 svg_noninherited_flags.f.maskType = initialMaskType(); |
489 } | 489 } |
490 }; | 490 }; |
491 | 491 |
492 } // namespace blink | 492 } // namespace blink |
493 | 493 |
494 #endif // SVGComputedStyle_h | 494 #endif // SVGComputedStyle_h |
OLD | NEW |