Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a preparation to add NGFrameSetLayoutAlgorithm. This CL has no behavior changes. Bug: 1346221 Change-Id: Iec8b1c765f8deebe4dd737b68e74530bf09833ef Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3818343 Reviewed-by: Koji Ishii <kojii@chromium.org> Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Kent Tamura <tkent@chromium.org> Cr-Commit-Position: refs/heads/main@{#1032869}
- Loading branch information
1 parent
0b15ea5
commit 687ed73
Showing
5 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
third_party/blink/renderer/core/layout/ng/frame_set_layout_data.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright 2022 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. | ||
|
||
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_NG_FRAME_SET_LAYOUT_DATA_H_ | ||
#define THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_NG_FRAME_SET_LAYOUT_DATA_H_ | ||
|
||
#include "third_party/blink/renderer/platform/geometry/layout_unit.h" | ||
#include "third_party/blink/renderer/platform/wtf/vector.h" | ||
|
||
namespace blink { | ||
|
||
// An instance of FrameSetLayoutData is produced by NGFrameSetLayoutAlgorithm, | ||
// and is owned by NGBoxFragmentBuilder and NGPhysicalBoxFragment. It is used | ||
// by NGFrameSetPainter and resize handling of HTMLFrameSetElement. | ||
struct FrameSetLayoutData { | ||
// Frame grid sizes. | ||
Vector<LayoutUnit> col_sizes; | ||
Vector<LayoutUnit> row_sizes; | ||
|
||
// Border existence. | ||
Vector<bool> col_allow_border; | ||
Vector<bool> row_allow_border; | ||
|
||
int border_thickness; | ||
bool has_border_color; | ||
}; | ||
|
||
} // namespace blink | ||
|
||
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_NG_FRAME_SET_LAYOUT_DATA_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters