| 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 13 matching lines...) Expand all Loading... |
| 24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #include "config.h" | 29 #include "config.h" |
| 30 | 30 |
| 31 #include "core/rendering/svg/SVGRenderTreeAsText.h" | 31 #include "core/rendering/svg/SVGRenderTreeAsText.h" |
| 32 | 32 |
| 33 #include "SVGNames.h" | 33 #include "SVGNames.h" |
| 34 #include "core/platform/graphics/GraphicsTypes.h" | |
| 35 #include "core/rendering/InlineTextBox.h" | 34 #include "core/rendering/InlineTextBox.h" |
| 36 #include "core/rendering/RenderTreeAsText.h" | 35 #include "core/rendering/RenderTreeAsText.h" |
| 37 #include "core/rendering/svg/RenderSVGGradientStop.h" | 36 #include "core/rendering/svg/RenderSVGGradientStop.h" |
| 38 #include "core/rendering/svg/RenderSVGImage.h" | 37 #include "core/rendering/svg/RenderSVGImage.h" |
| 39 #include "core/rendering/svg/RenderSVGInlineText.h" | 38 #include "core/rendering/svg/RenderSVGInlineText.h" |
| 40 #include "core/rendering/svg/RenderSVGResourceClipper.h" | 39 #include "core/rendering/svg/RenderSVGResourceClipper.h" |
| 41 #include "core/rendering/svg/RenderSVGResourceFilter.h" | 40 #include "core/rendering/svg/RenderSVGResourceFilter.h" |
| 42 #include "core/rendering/svg/RenderSVGResourceLinearGradient.h" | 41 #include "core/rendering/svg/RenderSVGResourceLinearGradient.h" |
| 43 #include "core/rendering/svg/RenderSVGResourceMarker.h" | 42 #include "core/rendering/svg/RenderSVGResourceMarker.h" |
| 44 #include "core/rendering/svg/RenderSVGResourceMasker.h" | 43 #include "core/rendering/svg/RenderSVGResourceMasker.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 58 #include "core/svg/SVGLineElement.h" | 57 #include "core/svg/SVGLineElement.h" |
| 59 #include "core/svg/SVGLinearGradientElement.h" | 58 #include "core/svg/SVGLinearGradientElement.h" |
| 60 #include "core/svg/SVGPathElement.h" | 59 #include "core/svg/SVGPathElement.h" |
| 61 #include "core/svg/SVGPathUtilities.h" | 60 #include "core/svg/SVGPathUtilities.h" |
| 62 #include "core/svg/SVGPatternElement.h" | 61 #include "core/svg/SVGPatternElement.h" |
| 63 #include "core/svg/SVGPointList.h" | 62 #include "core/svg/SVGPointList.h" |
| 64 #include "core/svg/SVGPolyElement.h" | 63 #include "core/svg/SVGPolyElement.h" |
| 65 #include "core/svg/SVGRadialGradientElement.h" | 64 #include "core/svg/SVGRadialGradientElement.h" |
| 66 #include "core/svg/SVGRectElement.h" | 65 #include "core/svg/SVGRectElement.h" |
| 67 #include "core/svg/SVGStopElement.h" | 66 #include "core/svg/SVGStopElement.h" |
| 67 #include "platform/graphics/GraphicsTypes.h" |
| 68 | 68 |
| 69 #include <math.h> | 69 #include <math.h> |
| 70 #include <memory> | 70 #include <memory> |
| 71 | 71 |
| 72 namespace WebCore { | 72 namespace WebCore { |
| 73 | 73 |
| 74 /** class + iomanip to help streaming list separators, i.e. ", " in string "a, b
, c, d" | 74 /** class + iomanip to help streaming list separators, i.e. ", " in string "a, b
, c, d" |
| 75 * Can be used in cases where you don't know which item in the list is the first | 75 * Can be used in cases where you don't know which item in the list is the first |
| 76 * one to be printed, but still want to avoid strings like ", b, c". | 76 * one to be printed, but still want to avoid strings like ", b, c". |
| 77 */ | 77 */ |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 ts << " "; | 660 ts << " "; |
| 661 writeNameAndQuotedValue(ts, "filter", svgStyle->filterResource()); | 661 writeNameAndQuotedValue(ts, "filter", svgStyle->filterResource()); |
| 662 ts << " "; | 662 ts << " "; |
| 663 writeStandardPrefix(ts, *filter, 0); | 663 writeStandardPrefix(ts, *filter, 0); |
| 664 ts << " " << filter->resourceBoundingBox(&renderer) << "\n"; | 664 ts << " " << filter->resourceBoundingBox(&renderer) << "\n"; |
| 665 } | 665 } |
| 666 } | 666 } |
| 667 } | 667 } |
| 668 | 668 |
| 669 } // namespace WebCore | 669 } // namespace WebCore |
| OLD | NEW |