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

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

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase to master Created 5 years, 10 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
Index: Source/core/svg/SVGElement.cpp
diff --git a/Source/core/svg/SVGElement.cpp b/Source/core/svg/SVGElement.cpp
index e7ac4bf4545f1ce5c7e8c142c5c961cf8ab02b6e..27ab044386e20ebf6ba6275fce0061f3d240dbc5 100644
--- a/Source/core/svg/SVGElement.cpp
+++ b/Source/core/svg/SVGElement.cpp
@@ -418,7 +418,7 @@ void SVGElement::invalidateRelativeLengthClients(SubtreeLayoutScope* layoutScope
TemporaryChange<bool> inRelativeLengthClientsInvalidationChange(m_inRelativeLengthClientsInvalidation, true);
#endif
- LayoutObject* renderer = this->renderer();
+ LayoutObject* renderer = this->layoutObject();
if (renderer && selfHasRelativeLengths()) {
if (renderer->isSVGResourceContainer())
toLayoutSVGResourceContainer(renderer)->invalidateCacheAndMarkForLayout(layoutScope);
@@ -879,7 +879,7 @@ void SVGElement::svgAttributeChanged(const QualifiedName& attrName)
}
if (isIdAttributeName(attrName)) {
- LayoutObject* object = renderer();
+ LayoutObject* object = layoutObject();
// Notify resources about id changes, this is important as we cache resources by id in SVGDocumentExtensions
if (object && object->isSVGResourceContainer())
toLayoutSVGResourceContainer(object)->idChanged();
@@ -918,7 +918,7 @@ PassRefPtr<LayoutStyle> SVGElement::customStyleForRenderer()
LayoutStyle* style = 0;
if (Element* parent = parentOrShadowHostElement()) {
- if (LayoutObject* renderer = parent->renderer())
+ if (LayoutObject* renderer = parent->layoutObject())
style = renderer->style();
}
@@ -950,7 +950,7 @@ LayoutStyle* SVGElement::computedStyle(PseudoId pseudoElementSpecifier)
LayoutStyle* parentStyle = 0;
if (Element* parent = parentOrShadowHostElement()) {
- if (LayoutObject* renderer = parent->renderer())
+ if (LayoutObject* renderer = parent->layoutObject())
parentStyle = renderer->style();
}

Powered by Google App Engine
This is Rietveld 408576698