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

Unified Diff: Source/core/svg/SVGStopElement.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/SVGStopElement.cpp
diff --git a/Source/core/svg/SVGStopElement.cpp b/Source/core/svg/SVGStopElement.cpp
index c356577c88500e2bf67a42ea58f04296d989ce74..c708b48592b8b62b5c407b4cfb3ab233d768ebc3 100644
--- a/Source/core/svg/SVGStopElement.cpp
+++ b/Source/core/svg/SVGStopElement.cpp
@@ -50,8 +50,8 @@ void SVGStopElement::svgAttributeChanged(const QualifiedName& attrName)
if (attrName == SVGNames::offsetAttr) {
SVGElement::InvalidationGuard invalidationGuard(this);
- if (renderer())
- markForLayoutAndParentResourceInvalidation(renderer());
+ if (layoutObject())
+ markForLayoutAndParentResourceInvalidation(layoutObject());
return;
}
@@ -70,7 +70,7 @@ bool SVGStopElement::rendererIsNeeded(const LayoutStyle&)
Color SVGStopElement::stopColorIncludingOpacity() const
{
- LayoutStyle* style = renderer() ? renderer()->style() : 0;
+ LayoutStyle* style = layoutObject() ? layoutObject()->style() : 0;
// FIXME: This check for null style exists to address Bug WK 90814, a rare crash condition in
// which the renderer or style is null. This entire class is scheduled for removal (Bug WK 86941)
// and we will tolerate this null check until then.

Powered by Google App Engine
This is Rietveld 408576698