summaryrefslogtreecommitdiffstats
path: root/WebCore/svg/SVGTextContentElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/svg/SVGTextContentElement.cpp')
-rw-r--r--WebCore/svg/SVGTextContentElement.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/WebCore/svg/SVGTextContentElement.cpp b/WebCore/svg/SVGTextContentElement.cpp
index 6057da8..8b34c2c 100644
--- a/WebCore/svg/SVGTextContentElement.cpp
+++ b/WebCore/svg/SVGTextContentElement.cpp
@@ -65,7 +65,7 @@ static inline float cumulativeCharacterRangeLength(const Vector<SVGChar>::iterat
return 0.0f;
float textLength = 0.0f;
- RenderStyle* style = textBox->textObject()->style();
+ RenderStyle* style = textBox->textRenderer()->style();
bool usesFullRange = (startPosition == -1 && length == -1);
@@ -128,7 +128,7 @@ struct SVGInlineTextBoxQueryWalker {
void chunkPortionCallback(SVGInlineTextBox* textBox, int startOffset, const TransformationMatrix&,
const Vector<SVGChar>::iterator& start, const Vector<SVGChar>::iterator& end)
{
- RenderStyle* style = textBox->textObject()->style();
+ RenderStyle* style = textBox->textRenderer()->style();
bool isVerticalText = style->svgStyle()->writingMode() == WM_TBRL || style->svgStyle()->writingMode() == WM_TB;
switch (m_mode) {
@@ -309,7 +309,7 @@ static Vector<SVGInlineTextBox*> findInlineTextBoxInTextChunks(const SVGTextCont
for (; boxIt != boxEnd; ++boxIt) {
SVGInlineTextBox* textBox = static_cast<SVGInlineTextBox*>(boxIt->box);
- Node* textElement = textBox->textObject()->parent()->element();
+ Node* textElement = textBox->textRenderer()->parent()->node();
ASSERT(textElement);
if (textElement == element || textElement->parent() == element)
@@ -480,7 +480,7 @@ void SVGTextContentElement::selectSubString(long charnum, long nchars, Exception
for (long i = 0; i < nchars; ++i)
end = end.next();
- controller->setSelection(Selection(start, end));
+ controller->setSelection(VisibleSelection(start, end));
}
void SVGTextContentElement::parseMappedAttribute(MappedAttribute* attr)