本文整理汇总了C++中setReplaced函数的典型用法代码示例。如果您正苦于以下问题:C++ setReplaced函数的具体用法?C++ setReplaced怎么用?C++ setReplaced使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setReplaced函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: RenderBox
RenderReplaced::RenderReplaced(Node* node, const IntSize& intrinsicSize)
: RenderBox(node)
, m_intrinsicSize(intrinsicSize)
, m_hasIntrinsicSize(true)
{
setReplaced(true);
}
示例2: RenderBlock
RenderRubyRun::RenderRubyRun(Node* node)
: RenderBlock(node)
, m_beingDestroyed(false)
{
setReplaced(true);
setInline(true);
}
示例3: RenderContainer
RenderSVGContainer::RenderSVGContainer(SVGStyledElement *node)
: RenderContainer(node)
, m_drawsContents(true)
, m_slice(false)
{
setReplaced(true);
}
示例4: RenderBox
RenderSVGRoot::RenderSVGRoot(SVGStyledElement* node)
: RenderBox(node)
, m_isLayoutSizeChanged(false)
, m_needsBoundariesOrTransformUpdate(true)
{
setReplaced(true);
}
示例5: RenderBox
RenderReplaced::RenderReplaced(Node* node)
: RenderBox(node)
, m_intrinsicWidth(300)
, m_intrinsicHeight(150)
, m_selectionState(SelectionNone)
{
setReplaced(true);
}
示例6: RenderBox
RenderReplaced::RenderReplaced(Node* node)
: RenderBox(node)
, m_intrinsicSize(cDefaultWidth, cDefaultHeight)
, m_selectionState(SelectionNone)
, m_hasOverflow(false)
{
setReplaced(true);
}
示例7: LayoutBox
LayoutReplica::LayoutReplica()
: LayoutBox(0)
{
// 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() || isReplaced()) check before setHasTransform().
setReplaced(true);
}
示例8: setReplaced
void RenderSummary::styleDidChange(StyleDifference diff, const RenderStyle* oldStyle)
{
RenderBlock::styleDidChange(diff, oldStyle);
// Ensure that if we ended up being inline that we set our replaced flag
// so that we're treated like an inline-block.
setReplaced(isInline());
}
示例9: RenderBox
RenderReplica::RenderReplica(Document& document, Ref<RenderStyle>&& style)
: RenderBox(document, WTFMove(style), 0)
{
// This is a hack. Replicas are synthetic, and don't pick up the attributes of the
// renderers 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() || isReplaced()) check before setHasTransform().
setReplaced(true);
}
示例10: RenderBox
RenderListMarker::RenderListMarker(RenderListItem* item)
: RenderBox(item->document())
, m_image(0)
, m_listItem(item)
, m_selectionState(SelectionNone)
{
// init RenderObject attributes
setInline(true); // our object is Inline
setReplaced(true); // pretend to be replaced
}
示例11: RenderObject
RenderSVGContainer::RenderSVGContainer(SVGStyledElement* node)
: RenderObject(node)
, m_firstChild(0)
, m_lastChild(0)
, m_width(0)
, m_height(0)
, m_drawsContents(true)
{
setReplaced(true);
}
示例12: RenderBox
RenderReplaced::RenderReplaced(Document& document, RenderStyle&& style, const LayoutSize& intrinsicSize)
: RenderBox(document, WTFMove(style), RenderReplacedFlag)
, m_intrinsicSize(intrinsicSize)
{
setReplaced(true);
}
示例13: m_intrinsicSize
RenderReplaced::RenderReplaced()
: m_intrinsicSize(defaultWidth, defaultHeight)
{
setReplaced(true);
}
示例14: RenderBox
RenderReplaced::RenderReplaced(Element& element, Ref<RenderStyle>&& style, const LayoutSize& intrinsicSize)
: RenderBox(element, WTF::move(style), RenderReplacedFlag)
, m_intrinsicSize(intrinsicSize)
{
setReplaced(true);
}
示例15: RenderBlockFlow
RenderRubyRun::RenderRubyRun()
: RenderBlockFlow(0)
{
setReplaced(true);
setInline(true);
}