| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 2 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 unsigned numberOfInputEffects = effect->inputEffects().size(); | 73 unsigned numberOfInputEffects = effect->inputEffects().size(); |
| 74 | 74 |
| 75 // It is not possible to add the same value to a set twice. | 75 // It is not possible to add the same value to a set twice. |
| 76 for (unsigned i = 0; i < numberOfInputEffects; ++i) | 76 for (unsigned i = 0; i < numberOfInputEffects; ++i) |
| 77 effectReferences(effect->inputEffect(i)).add(effect.get()); | 77 effectReferences(effect->inputEffect(i)).add(effect.get()); |
| 78 m_effectRenderer.add(object, effect.get()); | 78 m_effectRenderer.add(object, effect.get()); |
| 79 } | 79 } |
| 80 | 80 |
| 81 void SVGFilterBuilder::clearEffects() | 81 void SVGFilterBuilder::clearEffects() |
| 82 { | 82 { |
| 83 m_lastEffect = 0; | 83 m_lastEffect = nullptr; |
| 84 m_namedEffects.clear(); | 84 m_namedEffects.clear(); |
| 85 m_effectReferences.clear(); | 85 m_effectReferences.clear(); |
| 86 m_effectRenderer.clear(); | 86 m_effectRenderer.clear(); |
| 87 addBuiltinEffects(); | 87 addBuiltinEffects(); |
| 88 } | 88 } |
| 89 | 89 |
| 90 void SVGFilterBuilder::clearResultsRecursive(FilterEffect* effect) | 90 void SVGFilterBuilder::clearResultsRecursive(FilterEffect* effect) |
| 91 { | 91 { |
| 92 if (!effect->hasResult()) | 92 if (!effect->hasResult()) |
| 93 return; | 93 return; |
| 94 | 94 |
| 95 effect->clearResult(); | 95 effect->clearResult(); |
| 96 | 96 |
| 97 HashSet<FilterEffect*>& effectReferences = this->effectReferences(effect); | 97 HashSet<FilterEffect*>& effectReferences = this->effectReferences(effect); |
| 98 HashSet<FilterEffect*>::iterator end = effectReferences.end(); | 98 HashSet<FilterEffect*>::iterator end = effectReferences.end(); |
| 99 for (HashSet<FilterEffect*>::iterator it = effectReferences.begin(); it != e
nd; ++it) | 99 for (HashSet<FilterEffect*>::iterator it = effectReferences.begin(); it != e
nd; ++it) |
| 100 clearResultsRecursive(*it); | 100 clearResultsRecursive(*it); |
| 101 } | 101 } |
| 102 | 102 |
| 103 } // namespace WebCore | 103 } // namespace WebCore |
| OLD | NEW |