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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 if (!svgStyle.maskerResource().isEmpty()) { | 642 if (!svgStyle.maskerResource().isEmpty()) { |
643 if (LayoutSVGResourceMasker* masker = getLayoutSVGResourceById<LayoutSVG
ResourceMasker>(object.document(), svgStyle.maskerResource())) { | 643 if (LayoutSVGResourceMasker* masker = getLayoutSVGResourceById<LayoutSVG
ResourceMasker>(object.document(), svgStyle.maskerResource())) { |
644 writeIndent(ts, indent); | 644 writeIndent(ts, indent); |
645 ts << " "; | 645 ts << " "; |
646 writeNameAndQuotedValue(ts, "masker", svgStyle.maskerResource()); | 646 writeNameAndQuotedValue(ts, "masker", svgStyle.maskerResource()); |
647 ts << " "; | 647 ts << " "; |
648 writeStandardPrefix(ts, *masker, 0); | 648 writeStandardPrefix(ts, *masker, 0); |
649 ts << " " << masker->resourceBoundingBox(&object) << "\n"; | 649 ts << " " << masker->resourceBoundingBox(&object) << "\n"; |
650 } | 650 } |
651 } | 651 } |
652 if (ClipPathOperation* clipPathOperation = svgStyle.clipPath()) { | 652 if (ClipPathOperation* clipPathOperation = style.clipPath()) { |
653 if (clipPathOperation->type() == ClipPathOperation::REFERENCE) { | 653 if (clipPathOperation->type() == ClipPathOperation::REFERENCE) { |
654 const ReferenceClipPathOperation& clipPathReference = toReferenceCli
pPathOperation(*clipPathOperation); | 654 const ReferenceClipPathOperation& clipPathReference = toReferenceCli
pPathOperation(*clipPathOperation); |
655 AtomicString id = SVGURIReference::fragmentIdentifierFromIRIString(c
lipPathReference.url(), object.document()); | 655 AtomicString id = SVGURIReference::fragmentIdentifierFromIRIString(c
lipPathReference.url(), object.document()); |
656 if (LayoutSVGResourceClipper* clipper = getLayoutSVGResourceById<Lay
outSVGResourceClipper>(object.document(), id)) { | 656 if (LayoutSVGResourceClipper* clipper = getLayoutSVGResourceById<Lay
outSVGResourceClipper>(object.document(), id)) { |
657 writeIndent(ts, indent); | 657 writeIndent(ts, indent); |
658 ts << " "; | 658 ts << " "; |
659 writeNameAndQuotedValue(ts, "clipPath", id); | 659 writeNameAndQuotedValue(ts, "clipPath", id); |
660 ts << " "; | 660 ts << " "; |
661 writeStandardPrefix(ts, *clipper, 0); | 661 writeStandardPrefix(ts, *clipper, 0); |
662 ts << " " << clipper->resourceBoundingBox(object.objectBoundingB
ox()) << "\n"; | 662 ts << " " << clipper->resourceBoundingBox(object.objectBoundingB
ox()) << "\n"; |
(...skipping 14 matching lines...) Expand all Loading... |
677 ts << " "; | 677 ts << " "; |
678 writeStandardPrefix(ts, *filter, 0); | 678 writeStandardPrefix(ts, *filter, 0); |
679 ts << " " << filter->resourceBoundingBox(&object) << "\n"; | 679 ts << " " << filter->resourceBoundingBox(&object) << "\n"; |
680 } | 680 } |
681 } | 681 } |
682 } | 682 } |
683 } | 683 } |
684 } | 684 } |
685 | 685 |
686 } // namespace blink | 686 } // namespace blink |
OLD | NEW |