| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 3 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
| 4 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> | 4 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> |
| 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 m_gradientMap.clear(); | 36 m_gradientMap.clear(); |
| 37 m_shouldCollectGradientAttributes = true; | 37 m_shouldCollectGradientAttributes = true; |
| 38 markAllClientsForInvalidation(markForInvalidation ? PaintInvalidation | 38 markAllClientsForInvalidation(markForInvalidation ? PaintInvalidation |
| 39 : ParentOnlyInvalidation); | 39 : ParentOnlyInvalidation); |
| 40 } | 40 } |
| 41 | 41 |
| 42 void LayoutSVGResourceGradient::removeClientFromCache( | 42 void LayoutSVGResourceGradient::removeClientFromCache( |
| 43 LayoutObject* client, | 43 LayoutObject* client, |
| 44 bool markForInvalidation) { | 44 bool markForInvalidation) { |
| 45 ASSERT(client); | 45 ASSERT(client); |
| 46 m_gradientMap.remove(client); | 46 m_gradientMap.erase(client); |
| 47 markClientForInvalidation( | 47 markClientForInvalidation( |
| 48 client, markForInvalidation ? PaintInvalidation : ParentOnlyInvalidation); | 48 client, markForInvalidation ? PaintInvalidation : ParentOnlyInvalidation); |
| 49 } | 49 } |
| 50 | 50 |
| 51 SVGPaintServer LayoutSVGResourceGradient::preparePaintServer( | 51 SVGPaintServer LayoutSVGResourceGradient::preparePaintServer( |
| 52 const LayoutObject& object) { | 52 const LayoutObject& object) { |
| 53 clearInvalidationMask(); | 53 clearInvalidationMask(); |
| 54 | 54 |
| 55 // Be sure to synchronize all SVG properties on the gradientElement _before_ | 55 // Be sure to synchronize all SVG properties on the gradientElement _before_ |
| 56 // processing any further. Otherwhise the call to collectGradientAttributes() | 56 // processing any further. Otherwhise the call to collectGradientAttributes() |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 return SpreadMethodReflect; | 136 return SpreadMethodReflect; |
| 137 case SVGSpreadMethodRepeat: | 137 case SVGSpreadMethodRepeat: |
| 138 return SpreadMethodRepeat; | 138 return SpreadMethodRepeat; |
| 139 } | 139 } |
| 140 | 140 |
| 141 ASSERT_NOT_REACHED(); | 141 ASSERT_NOT_REACHED(); |
| 142 return SpreadMethodPad; | 142 return SpreadMethodPad; |
| 143 } | 143 } |
| 144 | 144 |
| 145 } // namespace blink | 145 } // namespace blink |
| OLD | NEW |