| Index: Source/core/html/HTMLCanvasElement.cpp
|
| diff --git a/Source/core/html/HTMLCanvasElement.cpp b/Source/core/html/HTMLCanvasElement.cpp
|
| index ba236832342b0382e851b15e55f70a98f2f5e158..bf64bfaa776c67b3da3980abd7df17362504f352 100644
|
| --- a/Source/core/html/HTMLCanvasElement.cpp
|
| +++ b/Source/core/html/HTMLCanvasElement.cpp
|
| @@ -142,7 +142,14 @@ LayoutObject* HTMLCanvasElement::createLayoutObject(const ComputedStyle& style)
|
|
|
| void HTMLCanvasElement::didRecalcStyle(StyleRecalcChange)
|
| {
|
| - SkFilterQuality filterQuality = ensureComputedStyle()->imageRendering() == ImageRenderingPixelated ? kNone_SkFilterQuality : kLow_SkFilterQuality;
|
| + SkFilterQuality filterQuality;
|
| + const ComputedStyle* style = ensureComputedStyle();
|
| + if (style && style->imageRendering() == ImageRenderingPixelated) {
|
| + filterQuality = kNone_SkFilterQuality;
|
| + } else {
|
| + filterQuality = kLow_SkFilterQuality;
|
| + }
|
| +
|
| if (is3D()) {
|
| m_context->setFilterQuality(filterQuality);
|
| setNeedsCompositingUpdate();
|
|
|