Index: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
index 2d0b4b8846718b0a2720c7b604b2d7a236fea9ee..32c4354a3eb273cf7e4aa44bd01ad11f24a04fba 100644 |
--- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
+++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp |
@@ -1871,10 +1871,7 @@ bool CompositedLayerMapping::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 CompositedLayerMapping::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); |