The layer for "visibility:hidden; position: absolute;" object should be shown in RenderLayer Tree when USE(ACCELERATED_COMPOSITING). It's because the HiddenLayers are included in zOrderList when CompositingMode is on. void RenderLayer::rebuildZOrderLists() { #if USE(ACCELERATED_COMPOSITING) bool includeHiddenLayers = compositor()->inCompositingMode(); // TRUE or FALSE by RenderLayerCompositor::m_compositing #else bool includeHiddenLayers = false; // Always FALSE -> other ports' case #endif for (RenderLayer* child = firstChild(); child; child = child->nextSibling()) if (!m_reflection || reflectionLayer() != child) child->collectLayers(includeHiddenLayers, m_posZOrderList, m_negZOrderList);
Created attachment 177890 [details] Patch
(In reply to comment #0) > The layer for "visibility:hidden; position: absolute;" object should be shown in RenderLayer Tree when USE(ACCELERATED_COMPOSITING). > > It's because the HiddenLayers are included in zOrderList when CompositingMode is on. > > void RenderLayer::rebuildZOrderLists() > { > #if USE(ACCELERATED_COMPOSITING) > bool includeHiddenLayers = compositor()->inCompositingMode(); // TRUE or FALSE by RenderLayerCompositor::m_compositing > #else > bool includeHiddenLayers = false; // Always FALSE -> other ports' case > #endif > for (RenderLayer* child = firstChild(); child; child = child->nextSibling()) > if (!m_reflection || reflectionLayer() != child) > child->collectLayers(includeHiddenLayers, m_posZOrderList, m_negZOrderList); Love to know this! :)
Comment on attachment 177890 [details] Patch I think that this is reasonable.
Comment on attachment 177890 [details] Patch Clearing flags on attachment: 177890 Committed r136786: <http://trac.webkit.org/changeset/136786>
All reviewed patches have been landed. Closing bug.
(In reply to comment #2) > (In reply to comment #0) Just for reference) That code was originated from the bug 38829, fixing a bug that the first frame of the <video> was displayed even though the video has been set to hidden.