Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Side by Side Diff: Source/core/svg/SVGClipPathElement.cpp

Issue 423823004: Add support for SVG Clip paths in HTML (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed unwanted code from RenderLayerClipPathInfo.* and Renderlayer.cpp and Renamed filters to svg… Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« Source/core/svg/SVGClipPathElement.h ('K') | « Source/core/svg/SVGClipPathElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698