| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 PO_NORMAL; } | 91 static EPaintOrder initialPaintOrder() { return PO_NORMAL; } |
| 92 static Length initialX() { return Length(Fixed); } | 92 static Length initialX() { return Length(Fixed); } |
| 93 static Length initialY() { return Length(Fixed); } | 93 static Length initialY() { return Length(Fixed); } |
| 94 static Length initialRx() { return Length(Fixed); } |
| 95 static Length initialRy() { return Length(Fixed); } |
| 94 | 96 |
| 95 static PassRefPtrWillBeRawPtr<SVGLength> initialBaselineShiftValue() | 97 static PassRefPtrWillBeRawPtr<SVGLength> initialBaselineShiftValue() |
| 96 { | 98 { |
| 97 RefPtrWillBeRawPtr<SVGLength> length = SVGLength::create(); | 99 RefPtrWillBeRawPtr<SVGLength> length = SVGLength::create(); |
| 98 length->newValueSpecifiedUnits(LengthTypeNumber, 0); | 100 length->newValueSpecifiedUnits(LengthTypeNumber, 0); |
| 99 return length.release(); | 101 return length.release(); |
| 100 } | 102 } |
| 101 | 103 |
| 102 static PassRefPtrWillBeRawPtr<SVGLength> initialStrokeDashOffset() | 104 static PassRefPtrWillBeRawPtr<SVGLength> initialStrokeDashOffset() |
| 103 { | 105 { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 void setX(const Length& obj) | 138 void setX(const Length& obj) |
| 137 { | 139 { |
| 138 if (!(layout->x == obj)) | 140 if (!(layout->x == obj)) |
| 139 layout.access()->x = obj; | 141 layout.access()->x = obj; |
| 140 } | 142 } |
| 141 void setY(const Length& obj) | 143 void setY(const Length& obj) |
| 142 { | 144 { |
| 143 if (!(layout->y == obj)) | 145 if (!(layout->y == obj)) |
| 144 layout.access()->y = obj; | 146 layout.access()->y = obj; |
| 145 } | 147 } |
| 148 void setRx(const Length& obj) |
| 149 { |
| 150 if (!(layout->rx == obj)) |
| 151 layout.access()->rx = obj; |
| 152 } |
| 153 void setRy(const Length& obj) |
| 154 { |
| 155 if (!(layout->ry == obj)) |
| 156 layout.access()->ry = obj; |
| 157 } |
| 146 void setFillOpacity(float obj) | 158 void setFillOpacity(float obj) |
| 147 { | 159 { |
| 148 if (!(fill->opacity == obj)) | 160 if (!(fill->opacity == obj)) |
| 149 fill.access()->opacity = obj; | 161 fill.access()->opacity = obj; |
| 150 } | 162 } |
| 151 | 163 |
| 152 void setFillPaint(SVGPaintType type, const Color& color, const String& uri,
bool applyToRegularStyle = true, bool applyToVisitedLinkStyle = false) | 164 void setFillPaint(SVGPaintType type, const Color& color, const String& uri,
bool applyToRegularStyle = true, bool applyToVisitedLinkStyle = false) |
| 153 { | 165 { |
| 154 if (applyToRegularStyle) { | 166 if (applyToRegularStyle) { |
| 155 if (!(fill->paintType == type)) | 167 if (!(fill->paintType == type)) |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 SVGLength* strokeWidth() const { return stroke->width.get(); } | 336 SVGLength* strokeWidth() const { return stroke->width.get(); } |
| 325 SVGLength* strokeDashOffset() const { return stroke->dashOffset.get(); } | 337 SVGLength* strokeDashOffset() const { return stroke->dashOffset.get(); } |
| 326 float stopOpacity() const { return stops->opacity; } | 338 float stopOpacity() const { return stops->opacity; } |
| 327 const Color& stopColor() const { return stops->color; } | 339 const Color& stopColor() const { return stops->color; } |
| 328 float floodOpacity() const { return misc->floodOpacity; } | 340 float floodOpacity() const { return misc->floodOpacity; } |
| 329 const Color& floodColor() const { return misc->floodColor; } | 341 const Color& floodColor() const { return misc->floodColor; } |
| 330 const Color& lightingColor() const { return misc->lightingColor; } | 342 const Color& lightingColor() const { return misc->lightingColor; } |
| 331 SVGLength* baselineShiftValue() const { return misc->baselineShiftValue.get(
); } | 343 SVGLength* baselineShiftValue() const { return misc->baselineShiftValue.get(
); } |
| 332 const Length& x() const { return layout->x; } | 344 const Length& x() const { return layout->x; } |
| 333 const Length& y() const { return layout->y; } | 345 const Length& y() const { return layout->y; } |
| 346 const Length& rx() const { return layout->rx; } |
| 347 const Length& ry() const { return layout->ry; } |
| 334 const AtomicString& clipperResource() const { return resources->clipper; } | 348 const AtomicString& clipperResource() const { return resources->clipper; } |
| 335 const AtomicString& filterResource() const { return resources->filter; } | 349 const AtomicString& filterResource() const { return resources->filter; } |
| 336 const AtomicString& maskerResource() const { return resources->masker; } | 350 const AtomicString& maskerResource() const { return resources->masker; } |
| 337 const AtomicString& markerStartResource() const { return inheritedResources-
>markerStart; } | 351 const AtomicString& markerStartResource() const { return inheritedResources-
>markerStart; } |
| 338 const AtomicString& markerMidResource() const { return inheritedResources->m
arkerMid; } | 352 const AtomicString& markerMidResource() const { return inheritedResources->m
arkerMid; } |
| 339 const AtomicString& markerEndResource() const { return inheritedResources->m
arkerEnd; } | 353 const AtomicString& markerEndResource() const { return inheritedResources->m
arkerEnd; } |
| 340 EMaskType maskType() const { return (EMaskType) svg_noninherited_flags.f.mas
kType; } | 354 EMaskType maskType() const { return (EMaskType) svg_noninherited_flags.f.mas
kType; } |
| 341 EPaintOrder paintOrder() const { return (EPaintOrder) svg_inherited_flags._p
aintOrder; } | 355 EPaintOrder paintOrder() const { return (EPaintOrder) svg_inherited_flags._p
aintOrder; } |
| 342 EPaintOrderType paintOrderType(unsigned index) const; | 356 EPaintOrderType paintOrderType(unsigned index) const; |
| 343 | 357 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 svg_noninherited_flags.f._baselineShift = initialBaselineShift(); | 475 svg_noninherited_flags.f._baselineShift = initialBaselineShift(); |
| 462 svg_noninherited_flags.f._vectorEffect = initialVectorEffect(); | 476 svg_noninherited_flags.f._vectorEffect = initialVectorEffect(); |
| 463 svg_noninherited_flags.f.bufferedRendering = initialBufferedRendering(); | 477 svg_noninherited_flags.f.bufferedRendering = initialBufferedRendering(); |
| 464 svg_noninherited_flags.f.maskType = initialMaskType(); | 478 svg_noninherited_flags.f.maskType = initialMaskType(); |
| 465 } | 479 } |
| 466 }; | 480 }; |
| 467 | 481 |
| 468 } // namespace blink | 482 } // namespace blink |
| 469 | 483 |
| 470 #endif // SVGLayoutStyle_h | 484 #endif // SVGLayoutStyle_h |
| OLD | NEW |