| Index: third_party/WebKit/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
|
| index 7b5bbd911e2a2e0a8a67e4e2d769942097a2ba2f..f628c72456604f557d7caf2c949cab7d6fdecf08 100644
|
| --- a/third_party/WebKit/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
|
| @@ -1871,10 +1871,7 @@ bool CompositedDeprecatedPaintLayerMapping::isDirectlyCompositedImage() const
|
| if (!image->isBitmapImage())
|
| return false;
|
|
|
| - // FIXME: We should be able to handle bitmap images using direct compositing
|
| - // no matter what image-orientation value. See crbug.com/502267
|
| - if (imageLayoutObject->style()->respectImageOrientation() != RespectImageOrientation)
|
| - return true;
|
| + return true;
|
| }
|
|
|
| return false;
|
| @@ -1907,7 +1904,7 @@ void CompositedDeprecatedPaintLayerMapping::updateImageContents()
|
| return;
|
|
|
| // This is a no-op if the layer doesn't have an inner layer for the image.
|
| - m_graphicsLayer->setContentsToImage(image);
|
| + m_graphicsLayer->setContentsToImage(image, imageLayoutObject->shouldRespectImageOrientation());
|
|
|
| m_graphicsLayer->setFilterQuality(layoutObject()->style()->imageRendering() == ImageRenderingPixelated ? kNone_SkFilterQuality : kLow_SkFilterQuality);
|
|
|
|
|