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; |