[Webkit-unassigned] [Bug 21892] nested SVGs inside html display: table element fail to hit-test correctly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 27 14:11:27 PDT 2008


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





------- Comment #11 from eric at webkit.org  2008-10-27 14:11 PDT -------
We end up asking the containing block via:

void RenderSVGViewportContainer::layout()

which calls "calcBounds()":

void RenderSVGContainer::calcBounds()
{
    m_width = calcReplacedWidth();
    m_height = calcReplacedHeight();
    m_absoluteBounds = absoluteClippedOverflowRect();
}


int RenderSVGContainer::calcReplacedHeight() const
{
    switch (style()->height().type()) {
    case Fixed:
        return max(0, style()->height().value());
    case Percent:
    {
        RenderBlock* cb = containingBlock();
        return style()->height().calcValue(cb->availableHeight());
    }
    default:
        return 0;
    }
}

It seems that containing block call is likely wrong.


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