| Index: third_party/WebKit/Source/core/paint/ViewPainter.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/ViewPainter.cpp b/third_party/WebKit/Source/core/paint/ViewPainter.cpp
|
| index f2dd9906b01e67d7e28335389f1fc2ce713e50f2..6883c0b049ed1acacc51e519abbf0f39e73e17f4 100644
|
| --- a/third_party/WebKit/Source/core/paint/ViewPainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/ViewPainter.cpp
|
| @@ -56,7 +56,7 @@ void ViewPainter::paintBoxDecorationBackground(const PaintInfo& paintInfo)
|
| IntRect backgroundRect = pixelSnappedIntRect(m_layoutView.layer()->boundingBoxForCompositing());
|
| const Document& document = m_layoutView.document();
|
| const FrameView& frameView = *m_layoutView.frameView();
|
| - bool isMainFrame = !document.ownerElement();
|
| + bool isMainFrame = document.isInMainFrame();
|
| bool paintsBaseBackground = isMainFrame && !frameView.isTransparent();
|
| bool shouldClearCanvas = paintsBaseBackground && (document.settings() && document.settings()->shouldClearDocumentBackground());
|
| Color baseBackgroundColor = paintsBaseBackground ? frameView.baseBackgroundColor() : Color();
|
|
|