Ignore:
Timestamp:
Oct 14, 2013, 10:55:52 AM (12 years ago)
Author:
[email protected]
Message:

Pass Document directly to anonymous renderer constructors.
<https://webkit.org/b/122752>

Reviewed by Antti Koivisto.

Added separate constructors for creating anonymous renderers that
take a Document& instead of a null Element*/Text*.

Removed setDocumentForAnonymous() and all createAnonymous() helpers.
...and RenderObject::m_node is now a Node&, wohoo!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/rendering/RenderMultiColumnBlock.cpp

    r156876 r157408  
    3737
    3838RenderMultiColumnBlock::RenderMultiColumnBlock(Element& element)
    39     : RenderBlockFlow(&element)
     39    : RenderBlockFlow(element)
    4040    , m_flowThread(0)
    4141    , m_columnCount(1)
     
    140140{
    141141    if (!m_flowThread) {
    142         m_flowThread = RenderMultiColumnFlowThread::createAnonymous(document());
     142        m_flowThread = new (renderArena()) RenderMultiColumnFlowThread(document());
    143143        m_flowThread->setStyle(RenderStyle::createAnonymousStyleWithDisplay(style(), BLOCK));
    144144        RenderBlock::addChild(m_flowThread);
Note: See TracChangeset for help on using the changeset viewer.