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

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

Issue 236203020: Separate repaint and layout requirements of StyleDifference (Step 1) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase, Fix break Created 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz>
3 * Copyright (C) 2006 Apple Inc. All rights reserved. 3 * Copyright (C) 2006 Apple Inc. All rights reserved.
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 } 118 }
119 119
120 void RenderSVGInline::willBeDestroyed() 120 void RenderSVGInline::willBeDestroyed()
121 { 121 {
122 SVGResourcesCache::clientDestroyed(this); 122 SVGResourcesCache::clientDestroyed(this);
123 RenderInline::willBeDestroyed(); 123 RenderInline::willBeDestroyed();
124 } 124 }
125 125
126 void RenderSVGInline::styleDidChange(StyleDifference diff, const RenderStyle* ol dStyle) 126 void RenderSVGInline::styleDidChange(StyleDifference diff, const RenderStyle* ol dStyle)
127 { 127 {
128 if (diff == StyleDifferenceLayout) 128 if (diff.needsFullLayout())
129 setNeedsBoundariesUpdate(); 129 setNeedsBoundariesUpdate();
130 130
131 RenderInline::styleDidChange(diff, oldStyle); 131 RenderInline::styleDidChange(diff, oldStyle);
132 SVGResourcesCache::clientStyleChanged(this, diff, style()); 132 SVGResourcesCache::clientStyleChanged(this, diff, style());
133 } 133 }
134 134
135 void RenderSVGInline::addChild(RenderObject* child, RenderObject* beforeChild) 135 void RenderSVGInline::addChild(RenderObject* child, RenderObject* beforeChild)
136 { 136 {
137 RenderInline::addChild(child, beforeChild); 137 RenderInline::addChild(child, beforeChild);
138 SVGResourcesCache::clientWasAddedToTree(child, child->style()); 138 SVGResourcesCache::clientWasAddedToTree(child, child->style());
(...skipping 11 matching lines...) Expand all
150 RenderInline::removeChild(child); 150 RenderInline::removeChild(child);
151 return; 151 return;
152 } 152 }
153 Vector<SVGTextLayoutAttributes*, 2> affectedAttributes; 153 Vector<SVGTextLayoutAttributes*, 2> affectedAttributes;
154 textRenderer->subtreeChildWillBeRemoved(child, affectedAttributes); 154 textRenderer->subtreeChildWillBeRemoved(child, affectedAttributes);
155 RenderInline::removeChild(child); 155 RenderInline::removeChild(child);
156 textRenderer->subtreeChildWasRemoved(affectedAttributes); 156 textRenderer->subtreeChildWasRemoved(affectedAttributes);
157 } 157 }
158 158
159 } 159 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGGradientStop.cpp ('k') | Source/core/rendering/svg/RenderSVGInlineText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698