| Index: Source/core/paint/VideoPainter.cpp
|
| diff --git a/Source/core/paint/VideoPainter.cpp b/Source/core/paint/VideoPainter.cpp
|
| index ecb9949b8754a2887d8cd78fe8d51fed9e507d72..c5d58ca9278d723ee9887cfdb49aea9c0eeaf74e 100644
|
| --- a/Source/core/paint/VideoPainter.cpp
|
| +++ b/Source/core/paint/VideoPainter.cpp
|
| @@ -44,7 +44,7 @@ void VideoPainter::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint&
|
|
|
| if (displayingPoster) {
|
| ImagePainter(m_layoutVideo).paintIntoRect(context, rect);
|
| - } else if ((m_layoutVideo.document().view() && m_layoutVideo.document().view()->paintBehavior() & PaintBehaviorFlattenCompositingLayers) || !m_layoutVideo.acceleratedRenderingInUse()) {
|
| + } else if ((gGlobalPaintFlags & GlobalPaintFlattenCompositingLayers) || !m_layoutVideo.acceleratedRenderingInUse()) {
|
| SkPaint videoPaint = context->fillPaint();
|
| videoPaint.setColor(SK_ColorBLACK);
|
| m_layoutVideo.videoElement()->paintCurrentFrame(context->canvas(), pixelSnappedIntRect(rect), &videoPaint);
|
|
|