Index: third_party/WebKit/Source/core/layout/svg/SVGTextChunkBuilder.cpp |
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGTextChunkBuilder.cpp b/third_party/WebKit/Source/core/layout/svg/SVGTextChunkBuilder.cpp |
index e2c3bd74df1a988902f58cab8a5503a995452e61..f4f7366d201f1bf3bfb7c84a27303cdb7f5b5838 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/SVGTextChunkBuilder.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/SVGTextChunkBuilder.cpp |
@@ -186,7 +186,7 @@ void SVGTextChunkBuilder::handleTextChunk(BoxListConstIterator boxStart, BoxList |
// Handle 'lengthAdjust' property. |
float desiredTextLength = 0; |
SVGLengthAdjustType lengthAdjust = SVGLengthAdjustUnknown; |
- if (SVGTextContentElement* textContentElement = SVGTextContentElement::elementFromLayoutObject(textLineLayout.parent())) { |
+ if (SVGTextContentElement* textContentElement = SVGTextContentElement::elementFromLineLayoutItem(textLineLayout.parent())) { |
lengthAdjust = textContentElement->lengthAdjust()->currentValue()->enumValue(); |
SVGLengthContext lengthContext(textContentElement); |