[Webkit-unassigned] [Bug 108404] New: Shadow tree doesn't calculate style correctly if shared

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 30 16:43:49 PST 2013


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

           Summary: Shadow tree doesn't calculate style correctly if
                    shared
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: dino at apple.com
                CC: simon.fraser at apple.com, dglazkov at chromium.org


If an element has a fairly complex shadow tree, the elements do not always resolve style correctly if they are shared. This can be occasionally seen on the Mac port on a page with <video> and multiple captions (e.g. LayoutTests/media/video-controls-captions-trackmenu*). The captions menu is part of the shadow structure, and elements in the menu are styled with a class name to indicate they should be "ticked". Often you will see that all the elements are ticked, even when that is impossible. A recalculation of the style usually fixes it.

As a test I added some code to StyleResolver::locateSharedStyle() so that it will not return a valid style when the element is in the shadow tree. This fixes the problem.

    if (m_styledElement->isInShadowTree())
        return 0;

-- 
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