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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 static const AtomicString& strokePaint() | 58 static const AtomicString& strokePaint() |
59 { | 59 { |
60 DEFINE_STATIC_LOCAL(const AtomicString, s_strokePaintName, ("StrokePaint
")); | 60 DEFINE_STATIC_LOCAL(const AtomicString, s_strokePaintName, ("StrokePaint
")); |
61 return s_strokePaintName; | 61 return s_strokePaintName; |
62 } | 62 } |
63 }; | 63 }; |
64 | 64 |
65 } // namespace | 65 } // namespace |
66 | 66 |
| 67 SVGFilterGraphNodeMap::SVGFilterGraphNodeMap() |
| 68 { |
| 69 } |
| 70 |
67 void SVGFilterGraphNodeMap::addBuiltinEffect(FilterEffect* effect) | 71 void SVGFilterGraphNodeMap::addBuiltinEffect(FilterEffect* effect) |
68 { | 72 { |
69 m_effectReferences.add(effect, FilterEffectSet()); | 73 m_effectReferences.add(effect, FilterEffectSet()); |
70 } | 74 } |
71 | 75 |
72 void SVGFilterGraphNodeMap::addPrimitive(LayoutObject* object, FilterEffect* eff
ect) | 76 void SVGFilterGraphNodeMap::addPrimitive(LayoutObject* object, FilterEffect* eff
ect) |
73 { | 77 { |
74 // The effect must be a newly created filter effect. | 78 // The effect must be a newly created filter effect. |
75 ASSERT(!m_effectReferences.contains(effect)); | 79 ASSERT(!m_effectReferences.contains(effect)); |
76 ASSERT(!object || !m_effectRenderer.contains(object)); | 80 ASSERT(!object || !m_effectRenderer.contains(object)); |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 return namedEffect; | 209 return namedEffect; |
206 } | 210 } |
207 | 211 |
208 if (m_lastEffect) | 212 if (m_lastEffect) |
209 return m_lastEffect.get(); | 213 return m_lastEffect.get(); |
210 | 214 |
211 return m_builtinEffects.get(FilterInputKeywords::getSourceGraphic()); | 215 return m_builtinEffects.get(FilterInputKeywords::getSourceGraphic()); |
212 } | 216 } |
213 | 217 |
214 } // namespace blink | 218 } // namespace blink |
OLD | NEW |