blob: 7dd9c992f83522fb4dea46ba38c9391e461567d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright 2019 The Chromium Authors. All rights reserved.
// 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/ng/custom/custom_intrinsic_sizes.h"
#include "third_party/blink/renderer/core/layout/ng/custom/custom_layout_child.h"
namespace blink {
CustomIntrinsicSizes::CustomIntrinsicSizes(CustomLayoutChild* child,
CustomLayoutToken* token,
double min_content_size,
double max_content_size)
: child_(child),
token_(token),
min_content_size_(min_content_size),
max_content_size_(max_content_size) {}
const NGLayoutInputNode& CustomIntrinsicSizes::GetLayoutNode() const {
return child_->GetLayoutNode();
}
void CustomIntrinsicSizes::Trace(Visitor* visitor) {
visitor->Trace(child_);
visitor->Trace(token_);
ScriptWrappable::Trace(visitor);
}
} // namespace blink
|