| Index: Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
|
| diff --git a/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp b/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp
|
| index 4ed2dcb5e42860baefcf3d5f5cdb9cd6750f03c9..fa7070e112e3f30a62f6a47d5f37c786280ee06f 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"
|
| @@ -1851,7 +1852,13 @@ bool CompositedDeprecatedPaintLayerMapping::isDirectlyCompositedImage() const
|
| return false;
|
|
|
| Image* image = cachedImage->imageForLayoutObject(imageLayoutObject);
|
| - return image->isBitmapImage();
|
| + 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 false;
|
|
|