Ignore:
Timestamp:
Oct 1, 2013, 3:29:34 PM (12 years ago)
Author:
Antti Koivisto
Message:

Make tests for renderer base types non-virtual
https://bugs.webkit.org/show_bug.cgi?id=122185

Reviewed by Dave Hyatt.

Make isRenderFoo() functions for commonly tested base types use bit flags instead of virtual calls.
This is faster and we have space in RenderElement.

These bits are not mutully exclusive. For testing leaf types we can add an enum.

File:
1 edited

Legend:

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

    r156613 r156738  
    150150// -------------------------------------------------------------------------------------------------------
    151151
    152 RenderBlock::RenderBlock(Element* element)
    153     : RenderBox(element)
     152RenderBlock::RenderBlock(Element* element, unsigned baseTypeFlags)
     153    : RenderBox(element, baseTypeFlags | RenderBlockFlag)
    154154    , m_lineHeight(-1)
    155155    , m_hasMarginBeforeQuirk(false)
Note: See TracChangeset for help on using the changeset viewer.