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

Unified Diff: Source/core/svg/SVGLinearGradientElement.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/SVGLineElement.cpp ('k') | Source/core/svg/SVGMarkerElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGLinearGradientElement.cpp
diff --git a/Source/core/svg/SVGLinearGradientElement.cpp b/Source/core/svg/SVGLinearGradientElement.cpp
index 04f39e9ce55341f7976acfd01a1040b355aa3321..3bd6e18c5fa4060f1fd17e90d93590dd89e01652 100644
--- a/Source/core/svg/SVGLinearGradientElement.cpp
+++ b/Source/core/svg/SVGLinearGradientElement.cpp
@@ -85,7 +85,7 @@ void SVGLinearGradientElement::svgAttributeChanged(const QualifiedName& attrName
updateRelativeLengthsInformation();
- LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this->renderer());
+ LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this->layoutObject());
if (renderer)
renderer->invalidateCacheAndMarkForLayout();
}
@@ -134,7 +134,7 @@ static void setGradientAttributes(SVGGradientElement* element, LinearGradientAtt
bool SVGLinearGradientElement::collectGradientAttributes(LinearGradientAttributes& attributes)
{
- if (!renderer())
+ if (!layoutObject())
return false;
WillBeHeapHashSet<RawPtrWillBeMember<SVGGradientElement>> processedGradients;
@@ -153,7 +153,7 @@ bool SVGLinearGradientElement::collectGradientAttributes(LinearGradientAttribute
if (processedGradients.contains(current))
return true;
- if (!current->renderer())
+ if (!current->layoutObject())
return false;
setGradientAttributes(current, attributes, isSVGLinearGradientElement(*current));
« no previous file with comments | « Source/core/svg/SVGLineElement.cpp ('k') | Source/core/svg/SVGMarkerElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698