REGRESSION (r99613): Incomplete painting of the root element background in flipped...
[WebKit-https.git] / Source / WebCore / rendering / RenderView.cpp
index 9b4300f8a119eb491a5928d4a371bc94aef8d435..92a97f7da38796cdc4dfd4c2364ac9cc384c3cae 100644 (file)
@@ -692,7 +692,7 @@ IntRect RenderView::unscaledDocumentRect() const
     return overflowRect;
 }
 
-LayoutRect RenderView::backgroundRect() const
+LayoutRect RenderView::backgroundRect(RenderBox* backgroundRenderer) const
 {
     if (!hasColumns())
         return unscaledDocumentRect();
@@ -701,6 +701,8 @@ LayoutRect RenderView::backgroundRect() const
     LayoutRect backgroundRect(0, 0, columnInfo->desiredColumnWidth(), columnInfo->columnHeight() * columnInfo->columnCount());
     if (!isHorizontalWritingMode())
         backgroundRect = backgroundRect.transposedRect();
+    backgroundRenderer->flipForWritingMode(backgroundRect);
+
     return backgroundRect;
 }