Index: third_party/WebKit/Source/platform/graphics/filters/FELighting.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/filters/FELighting.cpp b/third_party/WebKit/Source/platform/graphics/filters/FELighting.cpp |
index 6204756561597a72ea4424d998ba024b26666242..47afd5dc343bf9750fa2cd2b02f8b3e630ebab11 100644 |
--- a/third_party/WebKit/Source/platform/graphics/filters/FELighting.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/filters/FELighting.cpp |
@@ -61,6 +61,9 @@ FloatRect FELighting::mapPaintRect(const FloatRect& rect, bool) |
PassRefPtr<SkImageFilter> FELighting::createImageFilter(SkiaImageFilterBuilder* builder) |
{ |
+ if (!m_lightSource) |
+ return createTransparentBlack(builder); |
+ |
SkImageFilter::CropRect rect = getCropRect(builder ? builder->cropOffset() : FloatSize()); |
Color lightColor = adaptColorToOperatingColorSpace(m_lightingColor); |
RefPtr<SkImageFilter> input(builder ? builder->build(inputEffect(0), operatingColorSpace()) : nullptr); |