#include "third_party/blink/renderer/core/layout/custom/custom_layout_work_task.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/bindings/core/v8/serialization/serialized_script_value.h"
#include "third_party/blink/renderer/core/layout/block_node.h"
#include "third_party/blink/renderer/core/layout/constraint_space_builder.h"
#include "third_party/blink/renderer/core/layout/custom/custom_intrinsic_sizes.h"
#include "third_party/blink/renderer/core/layout/custom/custom_layout_child.h"
#include "third_party/blink/renderer/core/layout/custom/custom_layout_fragment.h"
#include "third_party/blink/renderer/core/layout/layout_result.h"
#include "third_party/blink/renderer/core/layout/length_utils.h"
#include "third_party/blink/renderer/core/layout/logical_box_fragment.h"
#include "third_party/blink/renderer/core/layout/physical_box_fragment.h"
#include "third_party/blink/renderer/core/layout/space_utils.h"
namespace blink {
CustomLayoutWorkTask::CustomLayoutWorkTask(CustomLayoutChild* child,
CustomLayoutToken* token,
ScriptPromiseResolverBase* resolver,
const TaskType type)
: … { … }
CustomLayoutWorkTask::CustomLayoutWorkTask(
CustomLayoutChild* child,
CustomLayoutToken* token,
ScriptPromiseResolverBase* resolver,
const CustomLayoutConstraintsOptions* options,
scoped_refptr<SerializedScriptValue> constraint_data,
const TaskType type)
: … { … }
CustomLayoutWorkTask::~CustomLayoutWorkTask() = default;
void CustomLayoutWorkTask::Trace(Visitor* visitor) const { … }
void CustomLayoutWorkTask::Run(const ConstraintSpace& parent_space,
const ComputedStyle& parent_style,
const LayoutUnit child_available_block_size,
bool* child_depends_on_block_constraints) { … }
void CustomLayoutWorkTask::RunLayoutFragmentTask(
const ConstraintSpace& parent_space,
const ComputedStyle& parent_style,
LayoutInputNode child) { … }
void CustomLayoutWorkTask::RunIntrinsicSizesTask(
const ConstraintSpace& parent_space,
const ComputedStyle& parent_style,
const LayoutUnit child_available_block_size,
LayoutInputNode child,
bool* child_depends_on_block_constraints) { … }
}