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

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

Issue 10443073: Merge 117225 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 6 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) 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void RenderSVGInline::updateFromElement() 117 void RenderSVGInline::updateFromElement()
118 { 118 {
119 RenderInline::updateFromElement(); 119 RenderInline::updateFromElement();
120 SVGResourcesCache::clientUpdatedFromElement(this, style()); 120 SVGResourcesCache::clientUpdatedFromElement(this, style());
121 } 121 }
122 122
123 void RenderSVGInline::addChild(RenderObject* child, RenderObject* beforeChild) 123 void RenderSVGInline::addChild(RenderObject* child, RenderObject* beforeChild)
124 { 124 {
125 RenderInline::addChild(child, beforeChild); 125 RenderInline::addChild(child, beforeChild);
126 if (RenderSVGText* textRenderer = RenderSVGText::locateRenderSVGTextAncestor (this)) 126 if (RenderSVGText* textRenderer = RenderSVGText::locateRenderSVGTextAncestor (this))
127 textRenderer->layoutAttributesChanged(child); 127 textRenderer->subtreeChildWasAdded(child);
128 }
129
130 void RenderSVGInline::removeChild(RenderObject* child)
131 {
132 RenderSVGText* textRenderer = child->isSVGInlineText() ? RenderSVGText::loca teRenderSVGTextAncestor(this) : 0;
133 if (!textRenderer) {
134 RenderInline::removeChild(child);
135 return;
136 }
137
138 RenderSVGInlineText* text = toRenderSVGInlineText(child);
139 Vector<SVGTextLayoutAttributes*, 2> affectedAttributes;
140 textRenderer->subtreeChildWillBeRemoved(text, affectedAttributes);
141 RenderInline::removeChild(child);
142 textRenderer->subtreeChildWasRemoved(affectedAttributes);
128 } 143 }
129 144
130 } 145 }
131 146
132 #endif // ENABLE(SVG) 147 #endif // ENABLE(SVG)
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/svg/RenderSVGInline.h ('k') | Source/WebCore/rendering/svg/RenderSVGInlineText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698