https://bugs.webkit.org/show_bug.cgi?id=71863
Reviewed by Anders Carlsson.
* rendering/RenderBox.cpp:
(WebCore::RenderBox::paintRootBoxFillLayers): Instead of unconditionally flipping the background
rect here...
* rendering/RenderView.cpp:
(WebCore::RenderView::backgroundRect): ...flip it only in column mode here.
* rendering/RenderView.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@99630
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-11-08 Dan Bernstein <mitz@apple.com>
+
+ REGRESSION (r99613): Incomplete painting of the root element background in flipped blocks writing mode
+ https://bugs.webkit.org/show_bug.cgi?id=71863
+
+ Reviewed by Anders Carlsson.
+
+ * rendering/RenderBox.cpp:
+ (WebCore::RenderBox::paintRootBoxFillLayers): Instead of unconditionally flipping the background
+ rect here...
+ * rendering/RenderView.cpp:
+ (WebCore::RenderView::backgroundRect): ...flip it only in column mode here.
+ * rendering/RenderView.h:
+
2011-11-08 Michael Saboff <msaboff@apple.com>
Towards 8 Bit Strings: Templatize JSC::Parser class by Lexer type
}
}
- RenderView* view = this->view();
- LayoutRect backgroundRect = view->backgroundRect();
- flipForWritingMode(backgroundRect);
- paintFillLayers(paintInfo, bgColor, bgLayer, backgroundRect, BackgroundBleedNone, CompositeSourceOver, bodyObject);
+ paintFillLayers(paintInfo, bgColor, bgLayer, view()->backgroundRect(this), BackgroundBleedNone, CompositeSourceOver, bodyObject);
}
BackgroundBleedAvoidance RenderBox::determineBackgroundBleedAvoidance(GraphicsContext* context) const
return overflowRect;
}
-LayoutRect RenderView::backgroundRect() const
+LayoutRect RenderView::backgroundRect(RenderBox* backgroundRenderer) const
{
if (!hasColumns())
return unscaledDocumentRect();
LayoutRect backgroundRect(0, 0, columnInfo->desiredColumnWidth(), columnInfo->columnHeight() * columnInfo->columnCount());
if (!isHorizontalWritingMode())
backgroundRect = backgroundRect.transposedRect();
+ backgroundRenderer->flipForWritingMode(backgroundRect);
+
return backgroundRect;
}
#endif
IntRect unscaledDocumentRect() const;
- LayoutRect backgroundRect() const;
+ LayoutRect backgroundRect(RenderBox* backgroundRenderer) const;
IntRect documentRect() const;