Chromium Code Reviews| 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 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 433 } | 433 } |
| 434 break; | 434 break; |
| 435 case ClipperResourceType: | 435 case ClipperResourceType: |
| 436 if (!m_clipperFilterMaskerData) | 436 if (!m_clipperFilterMaskerData) |
| 437 break; | 437 break; |
| 438 if (m_clipperFilterMaskerData->clipper == resource) { | 438 if (m_clipperFilterMaskerData->clipper == resource) { |
| 439 m_clipperFilterMaskerData->clipper->removeAllClientsFromCache(); | 439 m_clipperFilterMaskerData->clipper->removeAllClientsFromCache(); |
| 440 m_clipperFilterMaskerData->clipper = 0; | 440 m_clipperFilterMaskerData->clipper = 0; |
| 441 } | 441 } |
| 442 break; | 442 break; |
| 443 case SolidColorResourceType: | |
|
f(malita)
2014/10/20 14:51:06
let's switch this to a default case and leave the
| |
| 444 ASSERT_NOT_REACHED(); | |
| 445 } | 443 } |
| 446 } | 444 } |
| 447 | 445 |
| 448 void SVGResources::buildSetOfResources(HashSet<RenderSVGResourceContainer*>& set ) | 446 void SVGResources::buildSetOfResources(HashSet<RenderSVGResourceContainer*>& set ) |
| 449 { | 447 { |
| 450 if (hasResourceData()) | 448 if (hasResourceData()) |
| 451 return; | 449 return; |
| 452 | 450 |
| 453 if (m_linkedResource) { | 451 if (m_linkedResource) { |
| 454 ASSERT(!m_clipperFilterMaskerData); | 452 ASSERT(!m_clipperFilterMaskerData); |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 706 if (RenderSVGResourceContainer* stroke = m_fillStrokeData->stroke) | 704 if (RenderSVGResourceContainer* stroke = m_fillStrokeData->stroke) |
| 707 fprintf(stderr, " |-> Stroke : %p (node=%p)\n", stroke, stroke-> element()); | 705 fprintf(stderr, " |-> Stroke : %p (node=%p)\n", stroke, stroke-> element()); |
| 708 } | 706 } |
| 709 | 707 |
| 710 if (m_linkedResource) | 708 if (m_linkedResource) |
| 711 fprintf(stderr, " |-> xlink:href : %p (node=%p)\n", m_linkedResource, m_ linkedResource->element()); | 709 fprintf(stderr, " |-> xlink:href : %p (node=%p)\n", m_linkedResource, m_ linkedResource->element()); |
| 712 } | 710 } |
| 713 #endif | 711 #endif |
| 714 | 712 |
| 715 } | 713 } |
| OLD | NEW |