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

Side by Side Diff: Source/WebCore/svg/SVGTextContentElement.cpp

Issue 9933004: Merge 112119 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 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
« no previous file with comments | « Source/WebCore/svg/SVGAElement.cpp ('k') | no next file » | 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, 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 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 void SVGTextContentElement::childrenChanged(bool changedByParser, Node* beforeCh ange, Node* afterChange, int childCountDelta) 311 void SVGTextContentElement::childrenChanged(bool changedByParser, Node* beforeCh ange, Node* afterChange, int childCountDelta)
312 { 312 {
313 SVGStyledElement::childrenChanged(changedByParser, beforeChange, afterChange , childCountDelta); 313 SVGStyledElement::childrenChanged(changedByParser, beforeChange, afterChange , childCountDelta);
314 314
315 if (changedByParser || !renderer()) 315 if (changedByParser || !renderer())
316 return; 316 return;
317 317
318 // Invalidate the TextPosition cache in SVGTextLayoutAttributesBuilder as it may now point 318 // Invalidate the TextPosition cache in SVGTextLayoutAttributesBuilder as it may now point
319 // to no-longer existing SVGTextPositioningElements and thus needs to be reb uilt. 319 // to no-longer existing SVGTextPositioningElements and thus needs to be reb uilt.
320 if (RenderSVGText* textRenderer = RenderSVGText::locateRenderSVGTextAncestor (renderer())) 320 if (RenderSVGText* textRenderer = RenderSVGText::locateRenderSVGTextAncestor (renderer()))
321 textRenderer->textDOMChanged(); 321 textRenderer->invalidateTextPositioningElements();
322 } 322 }
323 323
324 } 324 }
325 325
326 #endif // ENABLE(SVG) 326 #endif // ENABLE(SVG)
OLDNEW
« no previous file with comments | « Source/WebCore/svg/SVGAElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698