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 24 matching lines...) Expand all Loading... |
35 bool markForInvalidation) { | 35 bool markForInvalidation) { |
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 DCHECK(client); |
46 m_gradientMap.erase(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 // Validate gradient DOM state before building the actual | 55 // Validate gradient DOM state before building the actual |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 return SpreadMethodReflect; | 121 return SpreadMethodReflect; |
122 case SVGSpreadMethodRepeat: | 122 case SVGSpreadMethodRepeat: |
123 return SpreadMethodRepeat; | 123 return SpreadMethodRepeat; |
124 } | 124 } |
125 | 125 |
126 NOTREACHED(); | 126 NOTREACHED(); |
127 return SpreadMethodPad; | 127 return SpreadMethodPad; |
128 } | 128 } |
129 | 129 |
130 } // namespace blink | 130 } // namespace blink |
OLD | NEW |