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 16 matching lines...) Expand all Loading... |
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" | 32 #include "SVGNames.h" |
33 #include "core/css/CSSPrimitiveValue.h" | 33 #include "core/css/CSSPrimitiveValue.h" |
34 #include "core/css/CSSPrimitiveValueMappings.h" | 34 #include "core/css/CSSPrimitiveValueMappings.h" |
35 #include "core/dom/Element.h" | 35 #include "core/dom/Element.h" |
36 #include "core/fetch/DocumentResource.h" | 36 #include "core/fetch/DocumentResource.h" |
37 #include "core/platform/graphics/filters/FilterEffect.h" | |
38 #include "core/platform/graphics/filters/SourceAlpha.h" | 37 #include "core/platform/graphics/filters/SourceAlpha.h" |
39 #include "core/rendering/svg/RenderSVGResourceFilter.h" | 38 #include "core/rendering/svg/RenderSVGResourceFilter.h" |
40 #include "core/svg/SVGDocumentExtensions.h" | 39 #include "core/svg/SVGDocumentExtensions.h" |
41 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" | 40 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" |
42 #include "core/svg/graphics/filters/SVGFilterBuilder.h" | 41 #include "core/svg/graphics/filters/SVGFilterBuilder.h" |
43 | 42 |
44 namespace WebCore { | 43 namespace WebCore { |
45 | 44 |
46 HashMap<const FilterOperation*, OwnPtr<DocumentResourceReference> >* ReferenceFi
lterBuilder::documentResourceReferences = 0; | 45 HashMap<const FilterOperation*, OwnPtr<DocumentResourceReference> >* ReferenceFi
lterBuilder::documentResourceReferences = 0; |
47 | 46 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 effect->setEffectBoundaries(SVGLengthContext::resolveRectangle<SVGFilter
PrimitiveStandardAttributes>(effectElement, filterElement->primitiveUnitsCurrent
Value(), parentFilter->sourceImageRect())); | 168 effect->setEffectBoundaries(SVGLengthContext::resolveRectangle<SVGFilter
PrimitiveStandardAttributes>(effectElement, filterElement->primitiveUnitsCurrent
Value(), parentFilter->sourceImageRect())); |
170 ColorSpace colorSpace = filterColorSpace; | 169 ColorSpace colorSpace = filterColorSpace; |
171 if (useFilterColorSpace || getSVGElementColorSpace(effectElement, colorS
pace)) | 170 if (useFilterColorSpace || getSVGElementColorSpace(effectElement, colorS
pace)) |
172 effect->setOperatingColorSpace(colorSpace); | 171 effect->setOperatingColorSpace(colorSpace); |
173 builder->add(effectElement->resultCurrentValue(), effect); | 172 builder->add(effectElement->resultCurrentValue(), effect); |
174 } | 173 } |
175 return builder->lastEffect(); | 174 return builder->lastEffect(); |
176 } | 175 } |
177 | 176 |
178 } // namespace WebCore | 177 } // namespace WebCore |
OLD | NEW |