std::unique_ptr<FloatingObject> FloatingObject::copyToNewContainer( LayoutSize offset, bool shouldPaint, bool isDescendant) const { return WTF::wrapUnique(new FloatingObject( layoutObject(), getType(), LayoutRect(frameRect().location() - offset, frameRect().size()), shouldPaint, isDescendant, isLowestNonOverhangingFloatInChild())); }
PassOwnPtr<FloatingObject> FloatingObject::copyToNewContainer(LayoutSize offset, Ownership ownership) const { return adoptPtr(new FloatingObject(layoutObject(), type(), LayoutRect(frameRect().location() - offset, frameRect().size()), ownership, isLowestNonOverhangingFloatInChild())); }
PassOwnPtr<FloatingObject> FloatingObject::copyToNewContainer(LayoutSize offset, bool shouldPaint, bool isDescendant) const { return adoptPtr(new FloatingObject(layoutObject(), type(), LayoutRect(frameRect().location() - offset, frameRect().size()), shouldPaint, isDescendant, isLowestNonOverhangingFloatInChild())); }