Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp

Issue 2312713002: Unprefix -webkit-clip-path (Closed)
Patch Set: Rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698