[Webkit-unassigned] [Bug 105489] New: Elements must be reattached when inserted/removed from top layer

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 19 18:27:10 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=105489

           Summary: Elements must be reattached when inserted/removed from
                    top layer
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: falken at chromium.org
                CC: esprehn at chromium.org, jchaffraix at webkit.org
            Blocks: 84796


Julien mentioned this in bug 84796 comment 43.

We originally thought that since dialog.showModal() and dialog.close() toggle display: none, the renderer would be attached and detached automatically whenever inserted/removed from the top layer, so it would be inserted in the desired position in the render tree.
However, attach/reattach doesn't necessarily occur between showModal and close calls. For example, we get in trouble in the following case:

top.showModal();
bottom.showModal();
top.offsetTop;  // force a layout
top.close();
top.showModal();

Here, close() will set display: none, but the next showModal() removes that. When recalcStyle occurs, no style change is detected since the forced layout, so no reattach occurs. So the top layer renderers are not in the correct top layer order.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list