LayoutListMarker::LayoutListMarker(LayoutListItem* item)
    : LayoutBox(nullptr)
    , m_listItem(item)
{
    setInline(true);
    setIsAtomicInlineLevel(true);
}
Beispiel #2
0
LayoutReplaced::LayoutReplaced(Element* element,
                               const LayoutSize& intrinsicSize)
    : LayoutBox(element), m_intrinsicSize(intrinsicSize) {
    // TODO(jchaffraix): We should not set this boolean for block-level
    // replaced elements (crbug.com/567964).
    setIsAtomicInlineLevel(true);
}
LayoutReplaced::LayoutReplaced(Element* element)
    : LayoutBox(element)
    , m_intrinsicSize(defaultWidth, defaultHeight)
{
    // TODO(jchaffraix): We should not set this boolean for block-level
    // replaced elements (crbug.com/567964).
    setIsAtomicInlineLevel(true);
}
LayoutReplica::LayoutReplica()
    : LayoutBox(nullptr)
{
    // This is a hack. Replicas are synthetic, and don't pick up the attributes of the
    // layoutObjects being replicated, so they always report that they are inline, non-replaced.
    // However, we need transforms to be applied to replicas for reflections, so have to pass
    // the if (!isInline() || isAtomicInlineLevel()) check before setHasTransform().
    setIsAtomicInlineLevel(true);
}
LayoutRubyRun::LayoutRubyRun()
    : LayoutBlockFlow(nullptr)
{
    setInline(true);
    setIsAtomicInlineLevel(true);
}