| Index: Source/WebCore/rendering/svg/RenderSVGText.cpp
|
| ===================================================================
|
| --- Source/WebCore/rendering/svg/RenderSVGText.cpp (revision 112620)
|
| +++ Source/WebCore/rendering/svg/RenderSVGText.cpp (working copy)
|
| @@ -6,6 +6,7 @@
|
| * Copyright (C) 2008 Rob Buis <buis@kde.org>
|
| * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
|
| * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved.
|
| + * Copyright (C) 2012 Google Inc.
|
| *
|
| * This library is free software; you can redistribute it and/or
|
| * modify it under the terms of the GNU Library General Public
|
| @@ -176,10 +177,12 @@
|
| affectedAttributes.append(next);
|
| }
|
|
|
| -void RenderSVGText::textDOMChanged()
|
| +void RenderSVGText::invalidateTextPositioningElements()
|
| {
|
| - if (m_needsPositioningValuesUpdate)
|
| - return;
|
| + // Clear the text positioning elements. This should be called when either the children
|
| + // of a DOM text element have changed, or the length of the text in any child element
|
| + // has changed. Failure to clear may leave us with invalid elements, as other code paths
|
| + // do not always cause the position elements to be marked invalid before use.
|
| m_layoutAttributesBuilder.clearTextPositioningElements();
|
| }
|
|
|
|
|