[Webkit-unassigned] [Bug 23019] New: The embed element is still visible when the the value of the display euqals to none

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Dec 28 20:48:46 PST 2008


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

           Summary: The embed element is still visible when the the value of
                    the display euqals to none
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: weihong.zeng at hotmail.com


As follow:

<embed id="fc" src="http://801.tianya.cn/2008/12/sanguo/1224/640.swf"></embed>
<script>
var obj = document.getElementById("fc");
obj.style.display ="none";
</script>

If the display equals to "none", rendererIsNeeded should return false.

bool HTMLEmbedElement::rendererIsNeeded(RenderStyle* style)
{
    if (isImageType())
        return HTMLPlugInElement::rendererIsNeeded(style);

    Frame* frame = document()->frame();
    if (!frame)
        return false;

    Node* p = parentNode();
    if (p && p->hasTagName(objectTag)) {
        ASSERT(p->renderer());
        return false;
    }

-    return true;
+    return HTMLElement::rendererIsNeeded(style);
}


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



More information about the webkit-unassigned mailing list