OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Adobe Systems Inc. All rights reserved. | 2 * Copyright (C) 2013 Adobe Systems Inc. All rights reserved. |
3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
4 * Copyright (C) 2011 Apple Inc. All rights reserved. | 4 * Copyright (C) 2011 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 11 matching lines...) Expand all Loading... |
22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 */ | 26 */ |
27 | 27 |
28 #include "core/layout/svg/ReferenceFilterBuilder.h" | 28 #include "core/layout/svg/ReferenceFilterBuilder.h" |
29 | 29 |
30 #include "core/dom/Element.h" | 30 #include "core/dom/Element.h" |
31 #include "core/fetch/DocumentResource.h" | 31 #include "core/fetch/DocumentResource.h" |
32 #include "core/layout/LayoutBox.h" | 32 #include "core/layout/LayoutObject.h" |
33 #include "core/paint/PaintLayer.h" | 33 #include "core/paint/PaintLayer.h" |
34 #include "core/svg/SVGDocumentExtensions.h" | 34 #include "core/svg/SVGDocumentExtensions.h" |
35 #include "core/svg/SVGFilterElement.h" | 35 #include "core/svg/SVGFilterElement.h" |
36 #include "core/svg/graphics/filters/SVGFilterBuilder.h" | 36 #include "core/svg/graphics/filters/SVGFilterBuilder.h" |
37 #include "platform/graphics/filters/Filter.h" | 37 #include "platform/graphics/filters/Filter.h" |
38 #include "platform/graphics/filters/SourceGraphic.h" | 38 #include "platform/graphics/filters/SourceGraphic.h" |
39 | 39 |
40 namespace blink { | 40 namespace blink { |
41 | 41 |
42 namespace { | 42 namespace { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 previousEffect = result->getSourceGraphic(); | 108 previousEffect = result->getSourceGraphic(); |
109 | 109 |
110 SVGFilterBuilder builder(previousEffect, nullptr, fillPaint, strokePaint); | 110 SVGFilterBuilder builder(previousEffect, nullptr, fillPaint, strokePaint); |
111 builder.buildGraph(result, filterElement, referenceBox); | 111 builder.buildGraph(result, filterElement, referenceBox); |
112 | 112 |
113 result->setLastEffect(builder.lastEffect()); | 113 result->setLastEffect(builder.lastEffect()); |
114 return result; | 114 return result; |
115 } | 115 } |
116 | 116 |
117 } // namespace blink | 117 } // namespace blink |
OLD | NEW |