| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 case kBoundariesInvalidation: | 155 case kBoundariesInvalidation: |
| 156 client->SetNeedsBoundariesUpdate(); | 156 client->SetNeedsBoundariesUpdate(); |
| 157 break; | 157 break; |
| 158 case kPaintInvalidation: | 158 case kPaintInvalidation: |
| 159 // Since LayoutSVGInlineTexts don't have SVGResources (they use their | 159 // Since LayoutSVGInlineTexts don't have SVGResources (they use their |
| 160 // parent's), they will not be notified of changes to paint servers. So | 160 // parent's), they will not be notified of changes to paint servers. So |
| 161 // if the client is one that could have a LayoutSVGInlineText use a | 161 // if the client is one that could have a LayoutSVGInlineText use a |
| 162 // paint invalidation reason that will force paint invalidation of the | 162 // paint invalidation reason that will force paint invalidation of the |
| 163 // entire <text>/<tspan>/... subtree. | 163 // entire <text>/<tspan>/... subtree. |
| 164 client->SetShouldDoFullPaintInvalidation( | 164 client->SetShouldDoFullPaintInvalidation( |
| 165 kPaintInvalidationSVGResourceChange); | 165 PaintInvalidationReason::kSVGResource); |
| 166 // Invalidate paint properties to update effects if any. | 166 // Invalidate paint properties to update effects if any. |
| 167 client->SetNeedsPaintPropertyUpdate(); | 167 client->SetNeedsPaintPropertyUpdate(); |
| 168 break; | 168 break; |
| 169 case kParentOnlyInvalidation: | 169 case kParentOnlyInvalidation: |
| 170 break; | 170 break; |
| 171 } | 171 } |
| 172 } | 172 } |
| 173 | 173 |
| 174 void LayoutSVGResourceContainer::AddClient(LayoutObject* client) { | 174 void LayoutSVGResourceContainer::AddClient(LayoutObject* client) { |
| 175 DCHECK(client); | 175 DCHECK(client); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 // This will process the rest of the ancestors. | 256 // This will process the rest of the ancestors. |
| 257 ToLayoutSVGResourceContainer(current)->RemoveAllClientsFromCache(); | 257 ToLayoutSVGResourceContainer(current)->RemoveAllClientsFromCache(); |
| 258 break; | 258 break; |
| 259 } | 259 } |
| 260 | 260 |
| 261 current = current->Parent(); | 261 current = current->Parent(); |
| 262 } | 262 } |
| 263 } | 263 } |
| 264 | 264 |
| 265 } // namespace blink | 265 } // namespace blink |
| OLD | NEW |