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

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

Issue 1987943002: [wip] unprefix filter Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix animation blur filter test, move it into LayoutTests/animations. Created 4 years, 7 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 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 if (!svgStyle.clipperResource().isEmpty()) { 652 if (!svgStyle.clipperResource().isEmpty()) {
653 if (LayoutSVGResourceClipper* clipper = getLayoutSVGResourceById<LayoutS VGResourceClipper>(object.document(), svgStyle.clipperResource())) { 653 if (LayoutSVGResourceClipper* clipper = getLayoutSVGResourceById<LayoutS VGResourceClipper>(object.document(), svgStyle.clipperResource())) {
654 writeIndent(ts, indent); 654 writeIndent(ts, indent);
655 ts << " "; 655 ts << " ";
656 writeNameAndQuotedValue(ts, "clipPath", svgStyle.clipperResource()); 656 writeNameAndQuotedValue(ts, "clipPath", svgStyle.clipperResource());
657 ts << " "; 657 ts << " ";
658 writeStandardPrefix(ts, *clipper, 0); 658 writeStandardPrefix(ts, *clipper, 0);
659 ts << " " << clipper->resourceBoundingBox(&layoutObject) << "\n"; 659 ts << " " << clipper->resourceBoundingBox(&layoutObject) << "\n";
660 } 660 }
661 } 661 }
662 if (!svgStyle.filterResource().isEmpty()) { 662 if (style.hasFilter()) {
663 if (LayoutSVGResourceFilter* filter = getLayoutSVGResourceById<LayoutSVG ResourceFilter>(object.document(), svgStyle.filterResource())) { 663 const FilterOperations& filterOperations = style.filter();
664 writeIndent(ts, indent); 664 if (filterOperations.size() == 1) {
665 ts << " "; 665 const FilterOperation& filterOperation = *filterOperations.at(0);
666 writeNameAndQuotedValue(ts, "filter", svgStyle.filterResource()); 666 if (filterOperation.type() == FilterOperation::REFERENCE) {
667 ts << " "; 667 const auto& referenceFilterOperation = toReferenceFilterOperatio n(filterOperation);
668 writeStandardPrefix(ts, *filter, 0); 668 AtomicString id = SVGURIReference::fragmentIdentifierFromIRIStri ng(referenceFilterOperation.url(), object.document());
669 ts << " " << filter->resourceBoundingBox(&layoutObject) << "\n"; 669 if (LayoutSVGResourceFilter* filter = getLayoutSVGResourceById<L ayoutSVGResourceFilter>(object.document(), id)) {
670 writeIndent(ts, indent);
671 ts << " ";
672 writeNameAndQuotedValue(ts, "filter", id);
673 ts << " ";
674 writeStandardPrefix(ts, *filter, 0);
675 ts << " " << filter->resourceBoundingBox(&layoutObject) << " \n";
676 }
677 }
670 } 678 }
671 } 679 }
672 } 680 }
673 681
674 } // namespace blink 682 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698