| Index: third_party/WebKit/Source/core/svg/SVGFESpecularLightingElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGFESpecularLightingElement.cpp b/third_party/WebKit/Source/core/svg/SVGFESpecularLightingElement.cpp
|
| index 09f2cc530576208c59ab9401c2cb3f218c6daf29..92c59c327dec8885321f05d079d1111a9a061efd 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGFESpecularLightingElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGFESpecularLightingElement.cpp
|
| @@ -132,12 +132,11 @@ PassRefPtrWillBeRawPtr<FilterEffect> SVGFESpecularLightingElement::build(SVGFilt
|
| 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;
|
|
|