[Webkit-unassigned] [Bug 78562] RenderBlock::createAnonymousBlockWithSameTypeAs needs to know about the new flexboxes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 13 18:43:53 PST 2012


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





--- Comment #1 from Ojan Vafai <ojan at chromium.org>  2012-02-13 18:43:53 PST ---
As well as:
RenderBlock* RenderBlock::createAnonymousBlock(bool isFlexibleBox) const
{
    RefPtr<RenderStyle> newStyle = RenderStyle::createAnonymousStyle(style());

    RenderBlock* newBox = 0;
    if (isFlexibleBox) {
        newStyle->setDisplay(BOX);
        newBox = new (renderArena()) RenderDeprecatedFlexibleBox(document() /* anonymous box */);
    } else {
        newStyle->setDisplay(BLOCK);
        newBox = new (renderArena()) RenderBlock(document() /* anonymous box */);
    }

    newBox->setStyle(newStyle.release());
    return newBox;
}

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