| Index: Source/core/layout/LayoutBox.cpp
|
| diff --git a/Source/core/layout/LayoutBox.cpp b/Source/core/layout/LayoutBox.cpp
|
| index 36c0c273c5b5abb3310c289aa2d71bc9b8a9d42a..b733065ed559f4d09a023150a43cd6775df407c2 100644
|
| --- a/Source/core/layout/LayoutBox.cpp
|
| +++ b/Source/core/layout/LayoutBox.cpp
|
| @@ -1145,6 +1145,11 @@ void LayoutBox::paintBoxDecorationBackground(const PaintInfo& paintInfo, const L
|
| bool LayoutBox::getBackgroundPaintedExtent(LayoutRect& paintedExtent)
|
| {
|
| ASSERT(hasBackground());
|
| +
|
| + // LayoutView is special in the sense that it expands to the whole canvas,
|
| + // thus can't be handled by this function.
|
| + ASSERT(!isLayoutView());
|
| +
|
| LayoutRect backgroundRect(enclosingIntRect(borderBoxRect()));
|
|
|
| Color backgroundColor = resolveColor(CSSPropertyBackgroundColor);
|
| @@ -1268,7 +1273,7 @@ bool LayoutBox::computeBackgroundIsKnownToBeObscured()
|
| if (!hasBackground())
|
| return false;
|
| // Table and root background painting is special.
|
| - if (isTable() || isDocumentElement())
|
| + if (isTable() || isLayoutView())
|
| return false;
|
| // FIXME: box-shadow is painted while background painting.
|
| if (style()->boxShadow())
|
|
|