| 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 PassRefPtr<SVGLengthList> initialStrokeDashArray() { return SVGLength
List::create(); } | 82 static PassRefPtr<SVGLengthList> initialStrokeDashArray() { return SVGLength
List::create(); } |
| 83 static float initialStrokeMiterLimit() { return 4; } | 83 static float initialStrokeMiterLimit() { return 4; } |
| 84 static float initialStopOpacity() { return 1; } | 84 static float initialStopOpacity() { return 1; } |
| 85 static Color initialStopColor() { return Color(0, 0, 0); } | 85 static Color initialStopColor() { return Color(0, 0, 0); } |
| 86 static float initialFloodOpacity() { return 1; } | 86 static float initialFloodOpacity() { return 1; } |
| 87 static Color initialFloodColor() { return Color(0, 0, 0); } | 87 static Color initialFloodColor() { return Color(0, 0, 0); } |
| 88 static Color initialLightingColor() { return Color(255, 255, 255); } | 88 static Color initialLightingColor() { return Color(255, 255, 255); } |
| 89 static const AtomicString& initialClipperResource() { return nullAtom; } | 89 static const AtomicString& initialClipperResource() { return nullAtom; } |
| 90 static const AtomicString& initialFilterResource() { return nullAtom; } | 90 static const AtomicString& initialFilterResource() { return nullAtom; } |
| 91 static const AtomicString& initialMaskerResource() { return nullAtom; } | 91 static const AtomicString& initialMaskerResource() { return nullAtom; } |
| 92 static String initialMarkerStartResource() { return String(); } | 92 static const AtomicString& initialMarkerStartResource() { return nullAtom; } |
| 93 static String initialMarkerMidResource() { return String(); } | 93 static const AtomicString& initialMarkerMidResource() { return nullAtom; } |
| 94 static String initialMarkerEndResource() { return String(); } | 94 static const AtomicString& initialMarkerEndResource() { return nullAtom; } |
| 95 static EMaskType initialMaskType() { return MT_LUMINANCE; } | 95 static EMaskType initialMaskType() { return MT_LUMINANCE; } |
| 96 static EPaintOrder initialPaintOrder() { return PO_NORMAL; } | 96 static EPaintOrder initialPaintOrder() { return PO_NORMAL; } |
| 97 | 97 |
| 98 static PassRefPtr<SVGLength> initialBaselineShiftValue() | 98 static PassRefPtr<SVGLength> initialBaselineShiftValue() |
| 99 { | 99 { |
| 100 RefPtr<SVGLength> length = SVGLength::create(); | 100 RefPtr<SVGLength> length = SVGLength::create(); |
| 101 length->newValueSpecifiedUnits(LengthTypeNumber, 0); | 101 length->newValueSpecifiedUnits(LengthTypeNumber, 0); |
| 102 return length.release(); | 102 return length.release(); |
| 103 } | 103 } |
| 104 | 104 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 resources.access()->filter = obj; | 275 resources.access()->filter = obj; |
| 276 } | 276 } |
| 277 | 277 |
| 278 void setMaskerResource(const AtomicString& obj) | 278 void setMaskerResource(const AtomicString& obj) |
| 279 { | 279 { |
| 280 if (!(resources->masker == obj)) | 280 if (!(resources->masker == obj)) |
| 281 resources.access()->masker = obj; | 281 resources.access()->masker = obj; |
| 282 } | 282 } |
| 283 | 283 |
| 284 // Setters for inherited resources | 284 // Setters for inherited resources |
| 285 void setMarkerStartResource(const String& obj) | 285 void setMarkerStartResource(const AtomicString& obj) |
| 286 { | 286 { |
| 287 if (!(inheritedResources->markerStart == obj)) | 287 if (!(inheritedResources->markerStart == obj)) |
| 288 inheritedResources.access()->markerStart = obj; | 288 inheritedResources.access()->markerStart = obj; |
| 289 } | 289 } |
| 290 | 290 |
| 291 void setMarkerMidResource(const String& obj) | 291 void setMarkerMidResource(const AtomicString& obj) |
| 292 { | 292 { |
| 293 if (!(inheritedResources->markerMid == obj)) | 293 if (!(inheritedResources->markerMid == obj)) |
| 294 inheritedResources.access()->markerMid = obj; | 294 inheritedResources.access()->markerMid = obj; |
| 295 } | 295 } |
| 296 | 296 |
| 297 void setMarkerEndResource(const String& obj) | 297 void setMarkerEndResource(const AtomicString& obj) |
| 298 { | 298 { |
| 299 if (!(inheritedResources->markerEnd == obj)) | 299 if (!(inheritedResources->markerEnd == obj)) |
| 300 inheritedResources.access()->markerEnd = obj; | 300 inheritedResources.access()->markerEnd = obj; |
| 301 } | 301 } |
| 302 | 302 |
| 303 // Read accessors for all the properties | 303 // Read accessors for all the properties |
| 304 EAlignmentBaseline alignmentBaseline() const { return (EAlignmentBaseline) s
vg_noninherited_flags.f._alignmentBaseline; } | 304 EAlignmentBaseline alignmentBaseline() const { return (EAlignmentBaseline) s
vg_noninherited_flags.f._alignmentBaseline; } |
| 305 EDominantBaseline dominantBaseline() const { return (EDominantBaseline) svg_
noninherited_flags.f._dominantBaseline; } | 305 EDominantBaseline dominantBaseline() const { return (EDominantBaseline) svg_
noninherited_flags.f._dominantBaseline; } |
| 306 EBaselineShift baselineShift() const { return (EBaselineShift) svg_noninheri
ted_flags.f._baselineShift; } | 306 EBaselineShift baselineShift() const { return (EBaselineShift) svg_noninheri
ted_flags.f._baselineShift; } |
| 307 EVectorEffect vectorEffect() const { return (EVectorEffect) svg_noninherited
_flags.f._vectorEffect; } | 307 EVectorEffect vectorEffect() const { return (EVectorEffect) svg_noninherited
_flags.f._vectorEffect; } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 333 PassRefPtr<SVGLength> kerning() const { return text->kerning; } | 333 PassRefPtr<SVGLength> kerning() const { return text->kerning; } |
| 334 float stopOpacity() const { return stops->opacity; } | 334 float stopOpacity() const { return stops->opacity; } |
| 335 const Color& stopColor() const { return stops->color; } | 335 const Color& stopColor() const { return stops->color; } |
| 336 float floodOpacity() const { return misc->floodOpacity; } | 336 float floodOpacity() const { return misc->floodOpacity; } |
| 337 const Color& floodColor() const { return misc->floodColor; } | 337 const Color& floodColor() const { return misc->floodColor; } |
| 338 const Color& lightingColor() const { return misc->lightingColor; } | 338 const Color& lightingColor() const { return misc->lightingColor; } |
| 339 PassRefPtr<SVGLength> baselineShiftValue() const { return misc->baselineShif
tValue; } | 339 PassRefPtr<SVGLength> baselineShiftValue() const { return misc->baselineShif
tValue; } |
| 340 const AtomicString& clipperResource() const { return resources->clipper; } | 340 const AtomicString& clipperResource() const { return resources->clipper; } |
| 341 const AtomicString& filterResource() const { return resources->filter; } | 341 const AtomicString& filterResource() const { return resources->filter; } |
| 342 const AtomicString& maskerResource() const { return resources->masker; } | 342 const AtomicString& maskerResource() const { return resources->masker; } |
| 343 String markerStartResource() const { return inheritedResources->markerStart;
} | 343 const AtomicString& markerStartResource() const { return inheritedResources-
>markerStart; } |
| 344 String markerMidResource() const { return inheritedResources->markerMid; } | 344 const AtomicString& markerMidResource() const { return inheritedResources->m
arkerMid; } |
| 345 String markerEndResource() const { return inheritedResources->markerEnd; } | 345 const AtomicString& markerEndResource() const { return inheritedResources->m
arkerEnd; } |
| 346 EMaskType maskType() const { return (EMaskType) svg_noninherited_flags.f.mas
kType; } | 346 EMaskType maskType() const { return (EMaskType) svg_noninherited_flags.f.mas
kType; } |
| 347 EPaintOrder paintOrder() const { return (EPaintOrder) svg_inherited_flags._p
aintOrder; } | 347 EPaintOrder paintOrder() const { return (EPaintOrder) svg_inherited_flags._p
aintOrder; } |
| 348 EPaintOrderType paintOrderType(unsigned index) const; | 348 EPaintOrderType paintOrderType(unsigned index) const; |
| 349 | 349 |
| 350 const SVGPaint::SVGPaintType& visitedLinkFillPaintType() const { return fill
->visitedLinkPaintType; } | 350 const SVGPaint::SVGPaintType& visitedLinkFillPaintType() const { return fill
->visitedLinkPaintType; } |
| 351 const Color& visitedLinkFillPaintColor() const { return fill->visitedLinkPai
ntColor; } | 351 const Color& visitedLinkFillPaintColor() const { return fill->visitedLinkPai
ntColor; } |
| 352 const String& visitedLinkFillPaintUri() const { return fill->visitedLinkPain
tUri; } | 352 const String& visitedLinkFillPaintUri() const { return fill->visitedLinkPain
tUri; } |
| 353 const SVGPaint::SVGPaintType& visitedLinkStrokePaintType() const { return st
roke->visitedLinkPaintType; } | 353 const SVGPaint::SVGPaintType& visitedLinkStrokePaintType() const { return st
roke->visitedLinkPaintType; } |
| 354 const Color& visitedLinkStrokePaintColor() const { return stroke->visitedLin
kPaintColor; } | 354 const Color& visitedLinkStrokePaintColor() const { return stroke->visitedLin
kPaintColor; } |
| 355 const String& visitedLinkStrokePaintUri() const { return stroke->visitedLink
PaintUri; } | 355 const String& visitedLinkStrokePaintUri() const { return stroke->visitedLink
PaintUri; } |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 svg_noninherited_flags.f._baselineShift = initialBaselineShift(); | 464 svg_noninherited_flags.f._baselineShift = initialBaselineShift(); |
| 465 svg_noninherited_flags.f._vectorEffect = initialVectorEffect(); | 465 svg_noninherited_flags.f._vectorEffect = initialVectorEffect(); |
| 466 svg_noninherited_flags.f.bufferedRendering = initialBufferedRendering(); | 466 svg_noninherited_flags.f.bufferedRendering = initialBufferedRendering(); |
| 467 svg_noninherited_flags.f.maskType = initialMaskType(); | 467 svg_noninherited_flags.f.maskType = initialMaskType(); |
| 468 } | 468 } |
| 469 }; | 469 }; |
| 470 | 470 |
| 471 } // namespace WebCore | 471 } // namespace WebCore |
| 472 | 472 |
| 473 #endif // SVGRenderStyle_h | 473 #endif // SVGRenderStyle_h |
| OLD | NEW |