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

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

Issue 1025213002: Begin tracking why layout is invalidated (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGElement.cpp ('k') | Source/core/svg/SVGGradientElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 4 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 } 122 }
123 123
124 void SVGFilterElement::childrenChanged(const ChildrenChange& change) 124 void SVGFilterElement::childrenChanged(const ChildrenChange& change)
125 { 125 {
126 SVGElement::childrenChanged(change); 126 SVGElement::childrenChanged(change);
127 127
128 if (change.byParser) 128 if (change.byParser)
129 return; 129 return;
130 130
131 if (LayoutObject* object = layoutObject()) 131 if (LayoutObject* object = layoutObject())
132 object->setNeedsLayoutAndFullPaintInvalidation(); 132 object->setNeedsLayoutAndFullPaintInvalidation(LayoutInvalidationReason: :ChildChanged);
133 } 133 }
134 134
135 LayoutObject* SVGFilterElement::createLayoutObject(const ComputedStyle&) 135 LayoutObject* SVGFilterElement::createLayoutObject(const ComputedStyle&)
136 { 136 {
137 LayoutSVGResourceFilter* renderer = new LayoutSVGResourceFilter(this); 137 LayoutSVGResourceFilter* renderer = new LayoutSVGResourceFilter(this);
138 138
139 for (const RefPtrWillBeMember<Node>& node : m_clientsToAdd) 139 for (const RefPtrWillBeMember<Node>& node : m_clientsToAdd)
140 renderer->addClientLayer(node.get()); 140 renderer->addClientLayer(node.get());
141 m_clientsToAdd.clear(); 141 m_clientsToAdd.clear();
142 142
(...skipping 14 matching lines...) Expand all
157 m_clientsToAdd.add(client); 157 m_clientsToAdd.add(client);
158 } 158 }
159 159
160 void SVGFilterElement::removeClient(Node* client) 160 void SVGFilterElement::removeClient(Node* client)
161 { 161 {
162 ASSERT(client); 162 ASSERT(client);
163 m_clientsToAdd.remove(client); 163 m_clientsToAdd.remove(client);
164 } 164 }
165 165
166 } // namespace blink 166 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/svg/SVGElement.cpp ('k') | Source/core/svg/SVGGradientElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698