[Webkit-unassigned] [Bug 105002] trailing whitespace sometimes goes missing when inserted via innerHTML

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 14 14:11:56 PST 2012


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





--- Comment #8 from Eric Seidel <eric at webkit.org>  2012-12-14 14:14:16 PST ---
(In reply to comment #7)
> (In reply to comment #6)
> > it's possible that the flakiness comes from having a render or not.
> 
> is there a way to force having a renderer()?

Elements normally attach (get a renderer) during style-resolve, which is a precursor to layout.

An element normally has a renderer, but elements can explicitly opt out (by being display: none) or a few other reasons:

bool NodeRenderingContext::shouldCreateRenderer() const
{
    if (!m_node->document()->shouldCreateRenderers())
        return false;
    if (!m_parentDetails.node())
        return false;
    RenderObject* parentRenderer = this->parentRenderer();
    if (!parentRenderer)
        return false;
    if (!parentRenderer->canHaveChildren())
        return false;
    if (!m_parentDetails.node()->childShouldCreateRenderer(*this))
        return false;
    return true;
}

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