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

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

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated change after Doug's review. 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
« no previous file with comments | « Source/core/svg/SVGElementRareData.cpp ('k') | Source/core/svg/SVGGraphicsElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFEFloodElement.cpp
diff --git a/Source/core/svg/SVGFEFloodElement.cpp b/Source/core/svg/SVGFEFloodElement.cpp
index aad1eadfc47f906da40ba5c9167a7da35bf04545..b1b15e51bab0c680e9722284ceecf827103264e6 100644
--- a/Source/core/svg/SVGFEFloodElement.cpp
+++ b/Source/core/svg/SVGFEFloodElement.cpp
@@ -39,14 +39,13 @@ bool SVGFEFloodElement::setFilterEffectAttribute(FilterEffect* effect, const Qua
{
LayoutObject* renderer = this->renderer();
ASSERT(renderer);
- LayoutStyle* style = renderer->style();
- ASSERT(style);
+ const LayoutStyle& style = renderer->styleRef();
FEFlood* flood = static_cast<FEFlood*>(effect);
if (attrName == SVGNames::flood_colorAttr)
- return flood->setFloodColor(style->svgStyle().floodColor());
+ return flood->setFloodColor(style.svgStyle().floodColor());
if (attrName == SVGNames::flood_opacityAttr)
- return flood->setFloodOpacity(style->svgStyle().floodOpacity());
+ return flood->setFloodOpacity(style.svgStyle().floodOpacity());
ASSERT_NOT_REACHED();
return false;
« no previous file with comments | « Source/core/svg/SVGElementRareData.cpp ('k') | Source/core/svg/SVGGraphicsElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698