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 "config.h" | 28 #include "config.h" |
29 | 29 |
30 #include "core/rendering/svg/ReferenceFilterBuilder.h" | 30 #include "core/rendering/svg/ReferenceFilterBuilder.h" |
31 | 31 |
32 #include "SVGNames.h" | |
33 #include "core/css/CSSPrimitiveValue.h" | 32 #include "core/css/CSSPrimitiveValue.h" |
34 #include "core/css/CSSPrimitiveValueMappings.h" | 33 #include "core/css/CSSPrimitiveValueMappings.h" |
35 #include "core/css/StylePropertySet.h" | 34 #include "core/css/StylePropertySet.h" |
36 #include "core/dom/Element.h" | 35 #include "core/dom/Element.h" |
37 #include "core/fetch/DocumentResource.h" | 36 #include "core/fetch/DocumentResource.h" |
38 #include "core/rendering/svg/RenderSVGResourceFilter.h" | 37 #include "core/rendering/svg/RenderSVGResourceFilter.h" |
39 #include "core/svg/SVGDocumentExtensions.h" | 38 #include "core/svg/SVGDocumentExtensions.h" |
40 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" | 39 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" |
41 #include "core/svg/graphics/filters/SVGFilterBuilder.h" | 40 #include "core/svg/graphics/filters/SVGFilterBuilder.h" |
42 #include "platform/graphics/filters/SourceAlpha.h" | 41 #include "platform/graphics/filters/SourceAlpha.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 effect->setEffectBoundaries(SVGLengthContext::resolveRectangle<SVGFilter
PrimitiveStandardAttributes>(effectElement, filterElement.primitiveUnits()->curr
entValue()->enumValue(), parentFilter->sourceImageRect())); | 165 effect->setEffectBoundaries(SVGLengthContext::resolveRectangle<SVGFilter
PrimitiveStandardAttributes>(effectElement, filterElement.primitiveUnits()->curr
entValue()->enumValue(), parentFilter->sourceImageRect())); |
167 ColorSpace colorSpace = filterColorSpace; | 166 ColorSpace colorSpace = filterColorSpace; |
168 if (useFilterColorSpace || getSVGElementColorSpace(effectElement, colorS
pace)) | 167 if (useFilterColorSpace || getSVGElementColorSpace(effectElement, colorS
pace)) |
169 effect->setOperatingColorSpace(colorSpace); | 168 effect->setOperatingColorSpace(colorSpace); |
170 builder->add(AtomicString(effectElement->result()->currentValue()->value
()), effect); | 169 builder->add(AtomicString(effectElement->result()->currentValue()->value
()), effect); |
171 } | 170 } |
172 return builder->lastEffect(); | 171 return builder->lastEffect(); |
173 } | 172 } |
174 | 173 |
175 } // namespace WebCore | 174 } // namespace WebCore |
OLD | NEW |