| 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 15 matching lines...) Expand all Loading... |
| 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 "core/layout/svg/SVGLayoutTreeAsText.h" | 29 #include "core/layout/svg/SVGLayoutTreeAsText.h" |
| 30 | 30 |
| 31 #include "core/layout/LayoutTreeAsText.h" | 31 #include "core/layout/LayoutTreeAsText.h" |
| 32 #include "core/layout/api/LineLayoutSVGInlineText.h" | 32 #include "core/layout/api/LineLayoutSVGInlineText.h" |
| 33 #include "core/layout/line/InlineTextBox.h" | 33 #include "core/layout/line/InlineTextBox.h" |
| 34 #include "core/layout/svg/LayoutSVGGradientStop.h" | 34 #include "core/layout/svg/LayoutSVGGradientStop.h" |
| 35 #include "core/layout/svg/LayoutSVGImage.h" | 35 #include "core/layout/svg/LayoutSVGImage.h" |
| 36 #include "core/layout/svg/LayoutSVGInline.h" |
| 36 #include "core/layout/svg/LayoutSVGResourceClipper.h" | 37 #include "core/layout/svg/LayoutSVGResourceClipper.h" |
| 37 #include "core/layout/svg/LayoutSVGResourceFilter.h" | 38 #include "core/layout/svg/LayoutSVGResourceFilter.h" |
| 38 #include "core/layout/svg/LayoutSVGResourceLinearGradient.h" | 39 #include "core/layout/svg/LayoutSVGResourceLinearGradient.h" |
| 39 #include "core/layout/svg/LayoutSVGResourceMarker.h" | 40 #include "core/layout/svg/LayoutSVGResourceMarker.h" |
| 40 #include "core/layout/svg/LayoutSVGResourceMasker.h" | 41 #include "core/layout/svg/LayoutSVGResourceMasker.h" |
| 41 #include "core/layout/svg/LayoutSVGResourcePattern.h" | 42 #include "core/layout/svg/LayoutSVGResourcePattern.h" |
| 42 #include "core/layout/svg/LayoutSVGResourceRadialGradient.h" | 43 #include "core/layout/svg/LayoutSVGResourceRadialGradient.h" |
| 43 #include "core/layout/svg/LayoutSVGRoot.h" | 44 #include "core/layout/svg/LayoutSVGRoot.h" |
| 44 #include "core/layout/svg/LayoutSVGShape.h" | 45 #include "core/layout/svg/LayoutSVGShape.h" |
| 45 #include "core/layout/svg/LayoutSVGText.h" | 46 #include "core/layout/svg/LayoutSVGText.h" |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 | 654 |
| 654 void writeSVGText(TextStream& ts, const LayoutSVGText& text, int indent) { | 655 void writeSVGText(TextStream& ts, const LayoutSVGText& text, int indent) { |
| 655 writeStandardPrefix(ts, text, indent); | 656 writeStandardPrefix(ts, text, indent); |
| 656 writePositionAndStyle(ts, text); | 657 writePositionAndStyle(ts, text); |
| 657 writeLayoutSVGTextBox(ts, text); | 658 writeLayoutSVGTextBox(ts, text); |
| 658 ts << "\n"; | 659 ts << "\n"; |
| 659 writeResources(ts, text, indent); | 660 writeResources(ts, text, indent); |
| 660 writeChildren(ts, text, indent); | 661 writeChildren(ts, text, indent); |
| 661 } | 662 } |
| 662 | 663 |
| 664 void writeSVGInline(TextStream& ts, const LayoutSVGInline& text, int indent) { |
| 665 writeStandardPrefix(ts, text, indent); |
| 666 writePositionAndStyle(ts, text); |
| 667 ts << "\n"; |
| 668 writeResources(ts, text, indent); |
| 669 writeChildren(ts, text, indent); |
| 670 } |
| 671 |
| 663 void writeSVGInlineText(TextStream& ts, | 672 void writeSVGInlineText(TextStream& ts, |
| 664 const LayoutSVGInlineText& text, | 673 const LayoutSVGInlineText& text, |
| 665 int indent) { | 674 int indent) { |
| 666 writeStandardPrefix(ts, text, indent); | 675 writeStandardPrefix(ts, text, indent); |
| 667 writePositionAndStyle(ts, text); | 676 writePositionAndStyle(ts, text); |
| 668 ts << "\n"; | 677 ts << "\n"; |
| 669 writeResources(ts, text, indent); | 678 writeResources(ts, text, indent); |
| 670 writeSVGInlineTextBoxes(ts, text, indent); | 679 writeSVGInlineTextBoxes(ts, text, indent); |
| 671 } | 680 } |
| 672 | 681 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 ts << " "; | 762 ts << " "; |
| 754 writeStandardPrefix(ts, *filter, 0); | 763 writeStandardPrefix(ts, *filter, 0); |
| 755 ts << " " << filter->resourceBoundingBox(&object) << "\n"; | 764 ts << " " << filter->resourceBoundingBox(&object) << "\n"; |
| 756 } | 765 } |
| 757 } | 766 } |
| 758 } | 767 } |
| 759 } | 768 } |
| 760 } | 769 } |
| 761 | 770 |
| 762 } // namespace blink | 771 } // namespace blink |
| OLD | NEW |