Index: third_party/WebKit/Source/core/svg/SVGFEDiffuseLightingElement.cpp |
diff --git a/third_party/WebKit/Source/core/svg/SVGFEDiffuseLightingElement.cpp b/third_party/WebKit/Source/core/svg/SVGFEDiffuseLightingElement.cpp |
index 791b0c8ef4911905fa5eae52720cf55403469689..195adf34c9b063621ece835ca60fb8d3517224a5 100644 |
--- a/third_party/WebKit/Source/core/svg/SVGFEDiffuseLightingElement.cpp |
+++ b/third_party/WebKit/Source/core/svg/SVGFEDiffuseLightingElement.cpp |
@@ -126,12 +126,11 @@ PassRefPtrWillBeRawPtr<FilterEffect> SVGFEDiffuseLightingElement::build(SVGFilte |
if (!input1) |
return nullptr; |
- LayoutObject* layoutObject = this->layoutObject(); |
- if (!layoutObject) |
- return nullptr; |
- |
- ASSERT(layoutObject->style()); |
- Color color = layoutObject->style()->svgStyle().lightingColor(); |
+ Color color = Color::white; |
+ if (LayoutObject* layoutObject = this->layoutObject()) { |
+ ASSERT(layoutObject->style()); |
+ color = layoutObject->styleRef().svgStyle().lightingColor(); |
+ } |
const SVGFELightElement* lightNode = SVGFELightElement::findLightElement(*this); |
RefPtr<LightSource> lightSource = lightNode ? lightNode->lightSource(filter) : nullptr; |