| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2007, 2009 Apple Inc. All rights reserved. |
| 3 * (C) 2005 Rob Buis <buis@kde.org> | 3 * (C) 2005 Rob Buis <buis@kde.org> |
| 4 * (C) 2006 Alexander Kellett <lypanov@kde.org> | 4 * (C) 2006 Alexander Kellett <lypanov@kde.org> |
| 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 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 LayoutSVGResourcePaintServer::requestPaintDescription( | 283 LayoutSVGResourcePaintServer::requestPaintDescription( |
| 284 shape, shape.styleRef(), ApplyToStrokeMode); | 284 shape, shape.styleRef(), ApplyToStrokeMode); |
| 285 if (strokePaintDescription.isValid) { | 285 if (strokePaintDescription.isValid) { |
| 286 TextStreamSeparator s(" "); | 286 TextStreamSeparator s(" "); |
| 287 ts << " [stroke={" << s; | 287 ts << " [stroke={" << s; |
| 288 writeSVGPaintingResource(ts, strokePaintDescription); | 288 writeSVGPaintingResource(ts, strokePaintDescription); |
| 289 | 289 |
| 290 SVGLengthContext lengthContext(shape.element()); | 290 SVGLengthContext lengthContext(shape.element()); |
| 291 double dashOffset = | 291 double dashOffset = |
| 292 lengthContext.valueForLength(svgStyle.strokeDashOffset(), style); | 292 lengthContext.valueForLength(svgStyle.strokeDashOffset(), style); |
| 293 double strokeWidth = lengthContext.valueForLength(svgStyle.strokeWidth()); | 293 double strokeWidth = lengthContext.valueForLength(style.strokeWidth()); |
| 294 DashArray dashArray = SVGLayoutSupport::resolveSVGDashArray( | 294 DashArray dashArray = SVGLayoutSupport::resolveSVGDashArray( |
| 295 *svgStyle.strokeDashArray(), style, lengthContext); | 295 *svgStyle.strokeDashArray(), style, lengthContext); |
| 296 | 296 |
| 297 writeIfNotDefault(ts, "opacity", svgStyle.strokeOpacity(), 1.0f); | 297 writeIfNotDefault(ts, "opacity", svgStyle.strokeOpacity(), 1.0f); |
| 298 writeIfNotDefault(ts, "stroke width", strokeWidth, 1.0); | 298 writeIfNotDefault(ts, "stroke width", strokeWidth, 1.0); |
| 299 writeIfNotDefault(ts, "miter limit", svgStyle.strokeMiterLimit(), 4.0f); | 299 writeIfNotDefault(ts, "miter limit", svgStyle.strokeMiterLimit(), 4.0f); |
| 300 writeIfNotDefault(ts, "line cap", svgStyle.capStyle(), ButtCap); | 300 writeIfNotDefault(ts, "line cap", style.capStyle(), ButtCap); |
| 301 writeIfNotDefault(ts, "line join", svgStyle.joinStyle(), MiterJoin); | 301 writeIfNotDefault(ts, "line join", style.joinStyle(), MiterJoin); |
| 302 writeIfNotDefault(ts, "dash offset", dashOffset, 0.0); | 302 writeIfNotDefault(ts, "dash offset", dashOffset, 0.0); |
| 303 if (!dashArray.isEmpty()) | 303 if (!dashArray.isEmpty()) |
| 304 writeNameValuePair(ts, "dash array", dashArray); | 304 writeNameValuePair(ts, "dash array", dashArray); |
| 305 | 305 |
| 306 ts << "}]"; | 306 ts << "}]"; |
| 307 } | 307 } |
| 308 | 308 |
| 309 SVGPaintDescription fillPaintDescription = | 309 SVGPaintDescription fillPaintDescription = |
| 310 LayoutSVGResourcePaintServer::requestPaintDescription( | 310 LayoutSVGResourcePaintServer::requestPaintDescription( |
| 311 shape, shape.styleRef(), ApplyToFillMode); | 311 shape, shape.styleRef(), ApplyToFillMode); |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 765 ts << " "; | 765 ts << " "; |
| 766 writeStandardPrefix(ts, *filter, 0); | 766 writeStandardPrefix(ts, *filter, 0); |
| 767 ts << " " << filter->resourceBoundingBox(&object) << "\n"; | 767 ts << " " << filter->resourceBoundingBox(&object) << "\n"; |
| 768 } | 768 } |
| 769 } | 769 } |
| 770 } | 770 } |
| 771 } | 771 } |
| 772 } | 772 } |
| 773 | 773 |
| 774 } // namespace blink | 774 } // namespace blink |
| OLD | NEW |