| 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 PassRefPtrWillBeRawPtr<SVGLengthList> initialStrokeDashArray() { retu
rn SVGLengthList::create(); } | 78 static PassRefPtr<SVGDashArray> initialStrokeDashArray(); |
| 79 static Length initialStrokeDashOffset() { return Length(Fixed); } | 79 static Length initialStrokeDashOffset() { return Length(Fixed); } |
| 80 static float initialStrokeMiterLimit() { return 4; } | 80 static float initialStrokeMiterLimit() { return 4; } |
| 81 static float initialStopOpacity() { return 1; } | 81 static float initialStopOpacity() { return 1; } |
| 82 static Color initialStopColor() { return Color(0, 0, 0); } | 82 static Color initialStopColor() { return Color(0, 0, 0); } |
| 83 static float initialFloodOpacity() { return 1; } | 83 static float initialFloodOpacity() { return 1; } |
| 84 static Color initialFloodColor() { return Color(0, 0, 0); } | 84 static Color initialFloodColor() { return Color(0, 0, 0); } |
| 85 static Color initialLightingColor() { return Color(255, 255, 255); } | 85 static Color initialLightingColor() { return Color(255, 255, 255); } |
| 86 static const AtomicString& initialClipperResource() { return nullAtom; } | 86 static const AtomicString& initialClipperResource() { return nullAtom; } |
| 87 static const AtomicString& initialFilterResource() { return nullAtom; } | 87 static const AtomicString& initialFilterResource() { return nullAtom; } |
| 88 static const AtomicString& initialMaskerResource() { return nullAtom; } | 88 static const AtomicString& initialMaskerResource() { return nullAtom; } |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 if (applyToVisitedLinkStyle) { | 188 if (applyToVisitedLinkStyle) { |
| 189 if (!(stroke->visitedLinkPaintType == type)) | 189 if (!(stroke->visitedLinkPaintType == type)) |
| 190 stroke.access()->visitedLinkPaintType = type; | 190 stroke.access()->visitedLinkPaintType = type; |
| 191 if (!(stroke->visitedLinkPaintColor == color)) | 191 if (!(stroke->visitedLinkPaintColor == color)) |
| 192 stroke.access()->visitedLinkPaintColor = color; | 192 stroke.access()->visitedLinkPaintColor = color; |
| 193 if (!(stroke->visitedLinkPaintUri == uri)) | 193 if (!(stroke->visitedLinkPaintUri == uri)) |
| 194 stroke.access()->visitedLinkPaintUri = uri; | 194 stroke.access()->visitedLinkPaintUri = uri; |
| 195 } | 195 } |
| 196 } | 196 } |
| 197 | 197 |
| 198 void setStrokeDashArray(PassRefPtrWillBeRawPtr<SVGLengthList> obj) | 198 void setStrokeDashArray(PassRefPtr<SVGDashArray> dashArray) |
| 199 { | 199 { |
| 200 if (*stroke->dashArray != *obj) | 200 if (*stroke->dashArray != *dashArray) |
| 201 stroke.access()->dashArray = obj; | 201 stroke.access()->dashArray = dashArray; |
| 202 } | 202 } |
| 203 | 203 |
| 204 void setStrokeMiterLimit(float obj) | 204 void setStrokeMiterLimit(float obj) |
| 205 { | 205 { |
| 206 if (!(stroke->miterLimit == obj)) | 206 if (!(stroke->miterLimit == obj)) |
| 207 stroke.access()->miterLimit = obj; | 207 stroke.access()->miterLimit = obj; |
| 208 } | 208 } |
| 209 | 209 |
| 210 void setStrokeWidth(PassRefPtrWillBeRawPtr<SVGLength> obj) | 210 void setStrokeWidth(PassRefPtrWillBeRawPtr<SVGLength> obj) |
| 211 { | 211 { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 EGlyphOrientation glyphOrientationHorizontal() const { return (EGlyphOrienta
tion) svg_inherited_flags._glyphOrientationHorizontal; } | 312 EGlyphOrientation glyphOrientationHorizontal() const { return (EGlyphOrienta
tion) svg_inherited_flags._glyphOrientationHorizontal; } |
| 313 EGlyphOrientation glyphOrientationVertical() const { return (EGlyphOrientati
on) svg_inherited_flags._glyphOrientationVertical; } | 313 EGlyphOrientation glyphOrientationVertical() const { return (EGlyphOrientati
on) svg_inherited_flags._glyphOrientationVertical; } |
| 314 float fillOpacity() const { return fill->opacity; } | 314 float fillOpacity() const { return fill->opacity; } |
| 315 const SVGPaintType& fillPaintType() const { return fill->paintType; } | 315 const SVGPaintType& fillPaintType() const { return fill->paintType; } |
| 316 const Color& fillPaintColor() const { return fill->paintColor; } | 316 const Color& fillPaintColor() const { return fill->paintColor; } |
| 317 const String& fillPaintUri() const { return fill->paintUri; } | 317 const String& fillPaintUri() const { return fill->paintUri; } |
| 318 float strokeOpacity() const { return stroke->opacity; } | 318 float strokeOpacity() const { return stroke->opacity; } |
| 319 const SVGPaintType& strokePaintType() const { return stroke->paintType; } | 319 const SVGPaintType& strokePaintType() const { return stroke->paintType; } |
| 320 const Color& strokePaintColor() const { return stroke->paintColor; } | 320 const Color& strokePaintColor() const { return stroke->paintColor; } |
| 321 const String& strokePaintUri() const { return stroke->paintUri; } | 321 const String& strokePaintUri() const { return stroke->paintUri; } |
| 322 SVGLengthList* strokeDashArray() const { return stroke->dashArray.get(); } | 322 SVGDashArray* strokeDashArray() const { return stroke->dashArray.get(); } |
| 323 float strokeMiterLimit() const { return stroke->miterLimit; } | 323 float strokeMiterLimit() const { return stroke->miterLimit; } |
| 324 SVGLength* strokeWidth() const { return stroke->width.get(); } | 324 SVGLength* strokeWidth() const { return stroke->width.get(); } |
| 325 const Length& strokeDashOffset() const { return stroke->dashOffset; } | 325 const Length& strokeDashOffset() const { return stroke->dashOffset; } |
| 326 float stopOpacity() const { return stops->opacity; } | 326 float stopOpacity() const { return stops->opacity; } |
| 327 const Color& stopColor() const { return stops->color; } | 327 const Color& stopColor() const { return stops->color; } |
| 328 float floodOpacity() const { return misc->floodOpacity; } | 328 float floodOpacity() const { return misc->floodOpacity; } |
| 329 const Color& floodColor() const { return misc->floodColor; } | 329 const Color& floodColor() const { return misc->floodColor; } |
| 330 const Color& lightingColor() const { return misc->lightingColor; } | 330 const Color& lightingColor() const { return misc->lightingColor; } |
| 331 const Length& baselineShiftValue() const { return misc->baselineShiftValue;
} | 331 const Length& baselineShiftValue() const { return misc->baselineShiftValue;
} |
| 332 const Length& x() const { return layout->x; } | 332 const Length& x() const { return layout->x; } |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 svg_noninherited_flags.f._baselineShift = initialBaselineShift(); | 463 svg_noninherited_flags.f._baselineShift = initialBaselineShift(); |
| 464 svg_noninherited_flags.f._vectorEffect = initialVectorEffect(); | 464 svg_noninherited_flags.f._vectorEffect = initialVectorEffect(); |
| 465 svg_noninherited_flags.f.bufferedRendering = initialBufferedRendering(); | 465 svg_noninherited_flags.f.bufferedRendering = initialBufferedRendering(); |
| 466 svg_noninherited_flags.f.maskType = initialMaskType(); | 466 svg_noninherited_flags.f.maskType = initialMaskType(); |
| 467 } | 467 } |
| 468 }; | 468 }; |
| 469 | 469 |
| 470 } // namespace blink | 470 } // namespace blink |
| 471 | 471 |
| 472 #endif // SVGLayoutStyle_h | 472 #endif // SVGLayoutStyle_h |
| OLD | NEW |