chromium/third_party/blink/renderer/core/layout/physical_fragment_rare_data.cc

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "third_party/blink/renderer/core/layout/physical_fragment_rare_data.h"

#include "third_party/blink/renderer/core/layout/box_fragment_builder.h"
#include "third_party/blink/renderer/core/layout/frame_set_layout_data.h"
#include "third_party/blink/renderer/platform/wtf/size_assertions.h"

namespace blink {

PhysicalFragmentRareData::PhysicalFragmentRareData(wtf_size_t num_fields) {}

PhysicalFragmentRareData::PhysicalFragmentRareData(
    const PhysicalRect* scrollable_overflow,
    const PhysicalBoxStrut* borders,
    const PhysicalBoxStrut* scrollbar,
    const PhysicalBoxStrut* padding,
    std::optional<PhysicalRect> inflow_bounds,
    BoxFragmentBuilder& builder,
    wtf_size_t num_fields)
    :{}

#define SET_IF_EXISTS
#define CLONE_IF_EXISTS

PhysicalFragmentRareData::PhysicalFragmentRareData(
    const PhysicalFragmentRareData& other)
    :{}

#undef SET_IF_EXISTS
#undef CLONE_IF_EXISTS

PhysicalFragmentRareData::~PhysicalFragmentRareData() = default;

// RareField struct -----------------------------------------------------------

#define DISPATCH_BY_MEMBER_TYPE

#define CONSTRUCT_UNION_MEMBER

PhysicalFragmentRareData::RareField::RareField(
    PhysicalFragmentRareData::FieldId field_id)
    :{}
#undef CONSTRUCT_UNION_MEMBER

// This invokes a copy constructor if the type has no move constructor.
#define MOVE_UNION_MEMBER

PhysicalFragmentRareData::RareField::RareField(
    PhysicalFragmentRareData::RareField&& other)
    :{}
#undef MOVE_UNION_MEMBER

#define DESTRUCT_UNION_MEMBER

PhysicalFragmentRareData::RareField::~RareField() {}
#undef DESTRUCT_UNION_MEMBER

#undef DISPATCH_BY_MEMBER_TYPE

}  // namespace blink