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

Side by Side Diff: Source/core/rendering/svg/RenderSVGResourceContainer.cpp

Issue 468933002: Rename Repaint to paintInvalidation in svg, part 2. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | Annotate | Revision Log
OLDNEW
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 void RenderSVGResourceContainer::markClientForInvalidation(RenderObject* client, InvalidationMode mode) 139 void RenderSVGResourceContainer::markClientForInvalidation(RenderObject* client, InvalidationMode mode)
140 { 140 {
141 ASSERT(client); 141 ASSERT(client);
142 ASSERT(!m_clients.isEmpty()); 142 ASSERT(!m_clients.isEmpty());
143 143
144 switch (mode) { 144 switch (mode) {
145 case LayoutAndBoundariesInvalidation: 145 case LayoutAndBoundariesInvalidation:
146 case BoundariesInvalidation: 146 case BoundariesInvalidation:
147 client->setNeedsBoundariesUpdate(); 147 client->setNeedsBoundariesUpdate();
148 break; 148 break;
149 case RepaintInvalidation: 149 case PaintInvalidation:
150 if (client->view()) { 150 if (client->view()) {
151 if (frameView()->isInPerformLayout()) 151 if (frameView()->isInPerformLayout())
152 client->setShouldDoFullPaintInvalidation(true); 152 client->setShouldDoFullPaintInvalidation(true);
153 else 153 else
154 client->paintInvalidationForWholeRenderer(); 154 client->paintInvalidationForWholeRenderer();
155 } 155 }
156 break; 156 break;
157 case ParentOnlyInvalidation: 157 case ParentOnlyInvalidation:
158 break; 158 break;
159 } 159 }
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 if (!object->isSVGShape()) 278 if (!object->isSVGShape())
279 return resourceTransform; 279 return resourceTransform;
280 280
281 SVGGraphicsElement* element = toSVGGraphicsElement(object->node()); 281 SVGGraphicsElement* element = toSVGGraphicsElement(object->node());
282 AffineTransform transform = element->getScreenCTM(SVGGraphicsElement::Disall owStyleUpdate); 282 AffineTransform transform = element->getScreenCTM(SVGGraphicsElement::Disall owStyleUpdate);
283 transform *= resourceTransform; 283 transform *= resourceTransform;
284 return transform; 284 return transform;
285 } 285 }
286 286
287 } 287 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceContainer.h ('k') | Source/core/rendering/svg/RenderSVGResourceFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698