| 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: | 443 default: |
| 444 ASSERT_NOT_REACHED(); | 444 ASSERT_NOT_REACHED(); |
| 445 } | 445 } |
| 446 } | 446 } |
| 447 | 447 |
| 448 void SVGResources::buildSetOfResources(HashSet<RenderSVGResourceContainer*>& set
) | 448 void SVGResources::buildSetOfResources(HashSet<RenderSVGResourceContainer*>& set
) |
| 449 { | 449 { |
| 450 if (hasResourceData()) | 450 if (hasResourceData()) |
| 451 return; | 451 return; |
| 452 | 452 |
| 453 if (m_linkedResource) { | 453 if (m_linkedResource) { |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 if (RenderSVGResourceContainer* stroke = m_fillStrokeData->stroke) | 706 if (RenderSVGResourceContainer* stroke = m_fillStrokeData->stroke) |
| 707 fprintf(stderr, " |-> Stroke : %p (node=%p)\n", stroke, stroke->
element()); | 707 fprintf(stderr, " |-> Stroke : %p (node=%p)\n", stroke, stroke->
element()); |
| 708 } | 708 } |
| 709 | 709 |
| 710 if (m_linkedResource) | 710 if (m_linkedResource) |
| 711 fprintf(stderr, " |-> xlink:href : %p (node=%p)\n", m_linkedResource, m_
linkedResource->element()); | 711 fprintf(stderr, " |-> xlink:href : %p (node=%p)\n", m_linkedResource, m_
linkedResource->element()); |
| 712 } | 712 } |
| 713 #endif | 713 #endif |
| 714 | 714 |
| 715 } | 715 } |
| OLD | NEW |