本文整理汇总了C++中LayoutRect::uniteIfNonZero方法的典型用法代码示例。如果您正苦于以下问题:C++ LayoutRect::uniteIfNonZero方法的具体用法?C++ LayoutRect::uniteIfNonZero怎么用?C++ LayoutRect::uniteIfNonZero使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LayoutRect
的用法示例。
在下文中一共展示了LayoutRect::uniteIfNonZero方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: clippedOverflowRectForRepaint
LayoutRect RenderTableRow::clippedOverflowRectForRepaint(const RenderLayerModelObject* repaintContainer) const
{
ASSERT(parent());
// Rows and cells are in the same coordinate space. We need to both compute our overflow rect (which
// will accommodate a row outline and any visual effects on the row itself), but we also need to add in
// the repaint rects of cells.
LayoutRect result = RenderBox::clippedOverflowRectForRepaint(repaintContainer);
for (RenderTableCell* cell = firstCell(); cell; cell = cell->nextCell()) {
// Even if a cell is a repaint container, it's the row that paints the background behind it.
// So we don't care if a cell is a repaintContainer here.
result.uniteIfNonZero(cell->clippedOverflowRectForRepaint(repaintContainer));
}
return result;
}