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

Unified Diff: Source/core/svg/SVGTextContentElement.cpp

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGStopElement.cpp ('k') | Source/core/svg/SVGTextPathElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGTextContentElement.cpp
diff --git a/Source/core/svg/SVGTextContentElement.cpp b/Source/core/svg/SVGTextContentElement.cpp
index 1036888b3b303a91777566cd87874543685502bd..192f3d92c01dd9de97853a91ebc48b2a976e8c89 100644
--- a/Source/core/svg/SVGTextContentElement.cpp
+++ b/Source/core/svg/SVGTextContentElement.cpp
@@ -92,13 +92,13 @@ DEFINE_TRACE(SVGTextContentElement)
unsigned SVGTextContentElement::getNumberOfChars()
{
document().updateLayoutIgnorePendingStylesheets();
- return SVGTextQuery(renderer()).numberOfCharacters();
+ return SVGTextQuery(layoutObject()).numberOfCharacters();
}
float SVGTextContentElement::getComputedTextLength()
{
document().updateLayoutIgnorePendingStylesheets();
- return SVGTextQuery(renderer()).textLength();
+ return SVGTextQuery(layoutObject()).textLength();
}
float SVGTextContentElement::getSubStringLength(unsigned charnum, unsigned nchars, ExceptionState& exceptionState)
@@ -114,7 +114,7 @@ float SVGTextContentElement::getSubStringLength(unsigned charnum, unsigned nchar
if (nchars > numberOfChars - charnum)
nchars = numberOfChars - charnum;
- return SVGTextQuery(renderer()).subStringLength(charnum, nchars);
+ return SVGTextQuery(layoutObject()).subStringLength(charnum, nchars);
}
PassRefPtrWillBeRawPtr<SVGPointTearOff> SVGTextContentElement::getStartPositionOfChar(unsigned charnum, ExceptionState& exceptionState)
@@ -126,7 +126,7 @@ PassRefPtrWillBeRawPtr<SVGPointTearOff> SVGTextContentElement::getStartPositionO
return nullptr;
}
- FloatPoint point = SVGTextQuery(renderer()).startPositionOfCharacter(charnum);
+ FloatPoint point = SVGTextQuery(layoutObject()).startPositionOfCharacter(charnum);
return SVGPointTearOff::create(SVGPoint::create(point), 0, PropertyIsNotAnimVal);
}
@@ -139,7 +139,7 @@ PassRefPtrWillBeRawPtr<SVGPointTearOff> SVGTextContentElement::getEndPositionOfC
return nullptr;
}
- FloatPoint point = SVGTextQuery(renderer()).endPositionOfCharacter(charnum);
+ FloatPoint point = SVGTextQuery(layoutObject()).endPositionOfCharacter(charnum);
return SVGPointTearOff::create(SVGPoint::create(point), 0, PropertyIsNotAnimVal);
}
@@ -152,7 +152,7 @@ PassRefPtrWillBeRawPtr<SVGRectTearOff> SVGTextContentElement::getExtentOfChar(un
return nullptr;
}
- FloatRect rect = SVGTextQuery(renderer()).extentOfCharacter(charnum);
+ FloatRect rect = SVGTextQuery(layoutObject()).extentOfCharacter(charnum);
return SVGRectTearOff::create(SVGRect::create(rect), 0, PropertyIsNotAnimVal);
}
@@ -165,13 +165,13 @@ float SVGTextContentElement::getRotationOfChar(unsigned charnum, ExceptionState&
return 0.0f;
}
- return SVGTextQuery(renderer()).rotationOfCharacter(charnum);
+ return SVGTextQuery(layoutObject()).rotationOfCharacter(charnum);
}
int SVGTextContentElement::getCharNumAtPosition(PassRefPtrWillBeRawPtr<SVGPointTearOff> point, ExceptionState& exceptionState)
{
document().updateLayoutIgnorePendingStylesheets();
- return SVGTextQuery(renderer()).characterNumberAtPosition(point->target()->value());
+ return SVGTextQuery(layoutObject()).characterNumberAtPosition(point->target()->value());
}
void SVGTextContentElement::selectSubString(unsigned charnum, unsigned nchars, ExceptionState& exceptionState)
@@ -252,7 +252,7 @@ void SVGTextContentElement::svgAttributeChanged(const QualifiedName& attrName)
SVGElement::InvalidationGuard invalidationGuard(this);
- if (LayoutObject* renderer = this->renderer())
+ if (LayoutObject* renderer = this->layoutObject())
markForLayoutAndParentResourceInvalidation(renderer);
}
« no previous file with comments | « Source/core/svg/SVGStopElement.cpp ('k') | Source/core/svg/SVGTextPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698