| 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/style/FilterOperation.h" |
| 32 #include "core/svg/SVGDocumentExtensions.h" | 33 #include "core/svg/SVGDocumentExtensions.h" |
| 33 #include "core/svg/SVGFilterElement.h" | 34 #include "core/svg/SVGFilterElement.h" |
| 34 #include "platform/graphics/filters/FilterOperation.h" | |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 namespace { | 38 namespace { |
| 39 | 39 |
| 40 using ResourceReferenceMap = PersistentHeapHashMap<WeakMember<const FilterOperat
ion>, Member<DocumentResourceReference>>; | 40 using ResourceReferenceMap = PersistentHeapHashMap<WeakMember<const FilterOperat
ion>, Member<DocumentResourceReference>>; |
| 41 | 41 |
| 42 ResourceReferenceMap& documentResourceReferences() | 42 ResourceReferenceMap& documentResourceReferences() |
| 43 { | 43 { |
| 44 DEFINE_STATIC_LOCAL(ResourceReferenceMap, documentResourceReferences, ()); | 44 DEFINE_STATIC_LOCAL(ResourceReferenceMap, documentResourceReferences, ()); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 return nullptr; | 81 return nullptr; |
| 82 } | 82 } |
| 83 | 83 |
| 84 if (!isSVGFilterElement(*filter)) | 84 if (!isSVGFilterElement(*filter)) |
| 85 return nullptr; | 85 return nullptr; |
| 86 | 86 |
| 87 return toSVGFilterElement(filter); | 87 return toSVGFilterElement(filter); |
| 88 } | 88 } |
| 89 | 89 |
| 90 } // namespace blink | 90 } // namespace blink |
| OLD | NEW |