| 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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 if (FilterEffect* lastEffect = builder.lastEffect()) | 512 if (FilterEffect* lastEffect = builder.lastEffect()) |
| 513 lastEffect->externalRepresentation(ts, indent + 1); | 513 lastEffect->externalRepresentation(ts, indent + 1); |
| 514 } else if (resource->resourceType() == ClipperResourceType) { | 514 } else if (resource->resourceType() == ClipperResourceType) { |
| 515 writeNameValuePair(ts, "clipPathUnits", toLayoutSVGResourceClipper(resou
rce)->clipPathUnits()); | 515 writeNameValuePair(ts, "clipPathUnits", toLayoutSVGResourceClipper(resou
rce)->clipPathUnits()); |
| 516 ts << "\n"; | 516 ts << "\n"; |
| 517 } else if (resource->resourceType() == MarkerResourceType) { | 517 } else if (resource->resourceType() == MarkerResourceType) { |
| 518 LayoutSVGResourceMarker* marker = toLayoutSVGResourceMarker(resource); | 518 LayoutSVGResourceMarker* marker = toLayoutSVGResourceMarker(resource); |
| 519 writeNameValuePair(ts, "markerUnits", marker->markerUnits()); | 519 writeNameValuePair(ts, "markerUnits", marker->markerUnits()); |
| 520 ts << " [ref at " << marker->referencePoint() << "]"; | 520 ts << " [ref at " << marker->referencePoint() << "]"; |
| 521 ts << " [angle="; | 521 ts << " [angle="; |
| 522 if (marker->angle() == -1) | 522 if (marker->orientType() != SVGMarkerOrientAngle) |
| 523 ts << marker->orientType() << "]\n"; | 523 ts << marker->orientType() << "]\n"; |
| 524 else | 524 else |
| 525 ts << marker->angle() << "]\n"; | 525 ts << marker->angle() << "]\n"; |
| 526 } else if (resource->resourceType() == PatternResourceType) { | 526 } else if (resource->resourceType() == PatternResourceType) { |
| 527 LayoutSVGResourcePattern* pattern = static_cast<LayoutSVGResourcePattern
*>(resource); | 527 LayoutSVGResourcePattern* pattern = static_cast<LayoutSVGResourcePattern
*>(resource); |
| 528 | 528 |
| 529 // Dump final results that are used for layout. No use in asking SVGPatt
ernElement for its patternUnits(), as it may | 529 // Dump final results that are used for layout. No use in asking SVGPatt
ernElement for its patternUnits(), as it may |
| 530 // link to other patterns using xlink:href, we need to build the full in
heritance chain, aka. collectPatternProperties() | 530 // link to other patterns using xlink:href, we need to build the full in
heritance chain, aka. collectPatternProperties() |
| 531 PatternAttributes attributes; | 531 PatternAttributes attributes; |
| 532 toSVGPatternElement(pattern->element())->collectPatternAttributes(attrib
utes); | 532 toSVGPatternElement(pattern->element())->collectPatternAttributes(attrib
utes); |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 ts << " "; | 665 ts << " "; |
| 666 writeNameAndQuotedValue(ts, "filter", svgStyle.filterResource()); | 666 writeNameAndQuotedValue(ts, "filter", svgStyle.filterResource()); |
| 667 ts << " "; | 667 ts << " "; |
| 668 writeStandardPrefix(ts, *filter, 0); | 668 writeStandardPrefix(ts, *filter, 0); |
| 669 ts << " " << filter->resourceBoundingBox(&layoutObject) << "\n"; | 669 ts << " " << filter->resourceBoundingBox(&layoutObject) << "\n"; |
| 670 } | 670 } |
| 671 } | 671 } |
| 672 } | 672 } |
| 673 | 673 |
| 674 } // namespace blink | 674 } // namespace blink |
| OLD | NEW |