[Webkit-unassigned] [Bug 176261] Async frame scrolling: handled fixed root backgrounds in frames
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 1 18:07:15 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=176261
--- Comment #3 from Simon Fraser (smfr) <simon.fraser at apple.com> ---
Some WIP (needed to fix root layer opaqueness):
diff --git a/Source/WebCore/rendering/RenderLayerBacking.cpp b/Source/WebCore/rendering/RenderLayerBacking.cpp
index 32c24fa21a31aff1aa9b0345382c5c1a2d31de23..7776955752fcf3f0d3b4f46aa2384acb28a057f8 100644
--- a/Source/WebCore/rendering/RenderLayerBacking.cpp
+++ b/Source/WebCore/rendering/RenderLayerBacking.cpp
@@ -1023,7 +1023,7 @@ void RenderLayerBacking::updateGeometry()
positionOverflowControlsLayers();
}
- if (!m_isMainFrameRenderViewLayer) {
+ if (!m_isFrameLayerWithTiledBacking) {
// For non-root layers, background is always painted by the primary graphics layer.
ASSERT(!m_backgroundLayer);
// Subpixel offset from graphics layer or size changed.
@@ -1966,12 +1966,14 @@ void RenderLayerBacking::updateRootLayerConfiguration()
bool viewIsTransparent = compositor().viewHasTransparentBackground(&backgroundColor);
if (m_backgroundLayerPaintsFixedRootBackground && m_backgroundLayer) {
- m_backgroundLayer->setBackgroundColor(backgroundColor);
- m_backgroundLayer->setContentsOpaque(!viewIsTransparent);
+ if (m_isMainFrameRenderViewLayer) {
+ m_backgroundLayer->setBackgroundColor(backgroundColor);
+ m_backgroundLayer->setContentsOpaque(!viewIsTransparent);
+ }
m_graphicsLayer->setBackgroundColor(Color());
m_graphicsLayer->setContentsOpaque(false);
- } else {
+ } else if (m_isMainFrameRenderViewLayer) {
m_graphicsLayer->setBackgroundColor(backgroundColor);
m_graphicsLayer->setContentsOpaque(!viewIsTransparent);
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170902/7a77ba6f/attachment.html>
More information about the webkit-unassigned
mailing list