summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/layout/ng/ng_block_node.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/layout/ng/ng_block_node.h')
-rw-r--r--chromium/third_party/blink/renderer/core/layout/ng/ng_block_node.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/ng/ng_block_node.h b/chromium/third_party/blink/renderer/core/layout/ng/ng_block_node.h
index bb2aa7cd0f0..2963332d5fe 100644
--- a/chromium/third_party/blink/renderer/core/layout/ng/ng_block_node.h
+++ b/chromium/third_party/blink/renderer/core/layout/ng/ng_block_node.h
@@ -5,6 +5,7 @@
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_NG_NG_BLOCK_NODE_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_NG_NG_BLOCK_NODE_H_
+#include "third_party/abseil-cpp/absl/types/optional.h"
#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/blink/renderer/core/layout/geometry/physical_offset.h"
#include "third_party/blink/renderer/core/layout/ng/ng_layout_input_node.h"
@@ -202,6 +203,9 @@ class CORE_EXPORT NGBlockNode : public NGLayoutInputNode {
return block->HasLineIfEmpty();
return false;
}
+ LayoutUnit EmptyLineBlockSize() const {
+ return box_->LogicalHeightForEmptyLine();
+ }
// After we run the layout algorithm, this function copies back the fragment
// position to the layout box.
@@ -211,6 +215,11 @@ class CORE_EXPORT NGBlockNode : public NGLayoutInputNode {
const NGPhysicalBoxFragment& container_fragment,
const NGBlockBreakToken* previous_container_break_token = nullptr) const;
+ // If extra columns are added after a multicol has been written back to
+ // legacy, for example for an OOF positioned element, we need to update the
+ // legacy flow thread to encompass those extra columns.
+ void MakeRoomForExtraColumns(LayoutUnit block_size) const;
+
String ToString() const;
private:
@@ -256,6 +265,8 @@ class CORE_EXPORT NGBlockNode : public NGLayoutInputNode {
LayoutUnit AtomicInlineBaselineFromLegacyLayout(
const NGConstraintSpace&) const;
+ void UpdateMarginPaddingInfoIfNeeded(const NGConstraintSpace&) const;
+
void UpdateShapeOutsideInfoIfNeeded(
const NGLayoutResult&,
LayoutUnit percentage_resolution_inline_size) const;