Index: Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp |
diff --git a/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp b/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp |
index f05e08401a628af7a4fc02468b5034cf3d761555..b1ebbef24b7825fb445258e9fa0201ffeaeb5641 100644 |
--- a/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp |
+++ b/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp |
@@ -57,6 +57,7 @@ |
#include "platform/RuntimeEnabledFeatures.h" |
#include "platform/fonts/FontCache.h" |
#include "platform/geometry/TransformState.h" |
+#include "platform/graphics/BitmapImage.h" |
#include "platform/graphics/GraphicsContext.h" |
#include "platform/graphics/paint/ClipDisplayItem.h" |
#include "platform/graphics/paint/DisplayItemList.h" |
@@ -1847,7 +1848,11 @@ bool CompositedDeprecatedPaintLayerMapping::isDirectlyCompositedImage() const |
return false; |
Image* image = cachedImage->imageForLayoutObject(imageLayoutObject); |
- return image->isBitmapImage(); |
+ if (!image->isBitmapImage()) |
+ return false; |
+ |
+ if (imageLayoutObject->style()->respectImageOrientation() != RespectImageOrientation) |
+ return true; |
} |
return false; |