| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 if (change.byParser) | 84 if (change.byParser) |
| 85 return; | 85 return; |
| 86 | 86 |
| 87 if (RenderObject* object = renderer()) | 87 if (RenderObject* object = renderer()) |
| 88 object->setNeedsLayoutAndFullPaintInvalidation(); | 88 object->setNeedsLayoutAndFullPaintInvalidation(); |
| 89 } | 89 } |
| 90 | 90 |
| 91 RenderObject* SVGClipPathElement::createRenderer(RenderStyle*) | 91 RenderObject* SVGClipPathElement::createRenderer(RenderStyle*) |
| 92 { | 92 { |
| 93 return new RenderSVGResourceClipper(this); | 93 RenderSVGResourceClipper* renderer = new RenderSVGResourceClipper(this); |
| 94 |
| 95 WillBeHeapHashSet<RefPtrWillBeMember<Node> >::iterator layerEnd = m_clientsT
oAdd.end(); |
| 96 for (WillBeHeapHashSet<RefPtrWillBeMember<Node> >::iterator it = m_clientsTo
Add.begin(); it != layerEnd; ++it) |
| 97 renderer->addClientRenderLayer(it->get()); |
| 98 m_clientsToAdd.clear(); |
| 99 |
| 100 return renderer; |
| 101 } |
| 102 |
| 103 void SVGClipPathElement::addClient(Node* client) |
| 104 { |
| 105 ASSERT(client); |
| 106 m_clientsToAdd.add(client); |
| 107 } |
| 108 |
| 109 void SVGClipPathElement::removeClient(Node* client) |
| 110 { |
| 111 ASSERT(client); |
| 112 m_clientsToAdd.remove(client); |
| 94 } | 113 } |
| 95 | 114 |
| 96 } | 115 } |
| OLD | NEW |