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

Unified Diff: Source/core/rendering/svg/RenderSVGRoot.cpp

Issue 910083002: Constify and use LayoutStyle reference in layout/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined again 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/rendering/svg/RenderSVGRoot.cpp
diff --git a/Source/core/rendering/svg/RenderSVGRoot.cpp b/Source/core/rendering/svg/RenderSVGRoot.cpp
index 60327d58b6cda8df49cf582b84e87d1cdeda1f90..666a9c7c49568164e6602ca819c1cad30dc0e989 100644
--- a/Source/core/rendering/svg/RenderSVGRoot.cpp
+++ b/Source/core/rendering/svg/RenderSVGRoot.cpp
@@ -231,7 +231,7 @@ void RenderSVGRoot::styleDidChange(StyleDifference diff, const LayoutStyle* oldS
}
RenderReplaced::styleDidChange(diff, oldStyle);
- SVGResourcesCache::clientStyleChanged(this, diff, style());
+ SVGResourcesCache::clientStyleChanged(this, diff, styleRef());
}
bool RenderSVGRoot::isChildAllowed(LayoutObject* child, const LayoutStyle&) const
@@ -242,7 +242,7 @@ bool RenderSVGRoot::isChildAllowed(LayoutObject* child, const LayoutStyle&) cons
void RenderSVGRoot::addChild(LayoutObject* child, LayoutObject* beforeChild)
{
RenderReplaced::addChild(child, beforeChild);
- SVGResourcesCache::clientWasAddedToTree(child, child->style());
+ SVGResourcesCache::clientWasAddedToTree(child, child->styleRef());
bool shouldIsolateDescendants = (child->isBlendingAllowed() && child->style()->hasBlendMode()) || child->hasNonIsolatedBlendingDescendants();
if (shouldIsolateDescendants)
@@ -284,7 +284,7 @@ void RenderSVGRoot::descendantIsolationRequirementsChanged(DescendantIsolationSt
void RenderSVGRoot::insertedIntoTree()
{
RenderReplaced::insertedIntoTree();
- SVGResourcesCache::clientWasAddedToTree(this, style());
+ SVGResourcesCache::clientWasAddedToTree(this, styleRef());
}
void RenderSVGRoot::willBeRemovedFromTree()
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceContainer.cpp ('k') | Source/core/rendering/svg/RenderSVGShape.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698