diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-10-26 13:57:00 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2021-11-02 11:31:01 +0000 |
commit | 1943b3c2a1dcee36c233724fc4ee7613d71b9cf6 (patch) | |
tree | 8c1b5f12357025c197da5427ae02cfdc2f3570d6 /chromium/third_party/blink/renderer/core/layout/ng/ng_block_break_token.h | |
parent | 21ba0c5d4bf8fba15dddd97cd693bad2358b77fd (diff) | |
download | qtwebengine-chromium-1943b3c2a1dcee36c233724fc4ee7613d71b9cf6.tar.gz |
BASELINE: Update Chromium to 94.0.4606.111
Change-Id: I924781584def20fc800bedf6ff41fdb96c438193
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/core/layout/ng/ng_block_break_token.h')
-rw-r--r-- | chromium/third_party/blink/renderer/core/layout/ng/ng_block_break_token.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/ng/ng_block_break_token.h b/chromium/third_party/blink/renderer/core/layout/ng/ng_block_break_token.h index d70d2ad3fba..6b7e39055a5 100644 --- a/chromium/third_party/blink/renderer/core/layout/ng/ng_block_break_token.h +++ b/chromium/third_party/blink/renderer/core/layout/ng/ng_block_break_token.h @@ -55,6 +55,17 @@ class CORE_EXPORT NGBlockBreakToken final : public NGBreakToken { // the fragmentainer is shorter than 50px, for instance). LayoutUnit ConsumedBlockSize() const { return consumed_block_size_; } + // The consumed block size when writing back to legacy layout. The only time + // this may be different than ConsumedBlockSize() is in the case of a + // fragmentainer. We clamp the fragmentainer block size from 0 to 1 for legacy + // write-back only in the case where there is content that overflows the + // zero-height fragmentainer. This can result in a different consumed block + // size when used for legacy. This difference is represented by + // |consumed_block_size_legacy_adjustment_|. + LayoutUnit ConsumedBlockSizeForLegacy() const { + return consumed_block_size_ + consumed_block_size_legacy_adjustment_; + } + // A unique identifier for a fragment that generates a break token. This is // unique within the generating layout input node. The break token of the // first fragment gets 0, then second 1, and so on. Note that we don't "count" @@ -168,6 +179,7 @@ class CORE_EXPORT NGBlockBreakToken final : public NGBreakToken { private: LayoutUnit consumed_block_size_; + LayoutUnit consumed_block_size_legacy_adjustment_; unsigned sequence_number_ = 0; wtf_size_t num_children_; |