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