summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/layout/ng/ng_fragment_builder.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/layout/ng/ng_fragment_builder.h')
-rw-r--r--chromium/third_party/blink/renderer/core/layout/ng/ng_fragment_builder.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/ng/ng_fragment_builder.h b/chromium/third_party/blink/renderer/core/layout/ng/ng_fragment_builder.h
index fe47c293049..5e83fb5da8f 100644
--- a/chromium/third_party/blink/renderer/core/layout/ng/ng_fragment_builder.h
+++ b/chromium/third_party/blink/renderer/core/layout/ng/ng_fragment_builder.h
@@ -56,7 +56,10 @@ class CORE_EXPORT NGFragmentBuilder {
}
void SetBlockSize(LayoutUnit block_size) { size_.block_size = block_size; }
+ bool HasBlockSize() const { return size_.block_size != kIndefiniteSize; }
+
void SetIsHiddenForPaint(bool value) { is_hidden_for_paint_ = value; }
+ void SetIsOpaque() { is_opaque_ = true; }
void SetHasCollapsedBorders(bool value) { has_collapsed_borders_ = value; }
@@ -87,8 +90,9 @@ class CORE_EXPORT NGFragmentBuilder {
NGStyleVariant style_variant_;
LogicalSize size_;
LayoutObject* layout_object_ = nullptr;
- scoped_refptr<NGBreakToken> break_token_;
+ scoped_refptr<const NGBreakToken> break_token_;
bool is_hidden_for_paint_ = false;
+ bool is_opaque_ = false;
bool has_collapsed_borders_ = false;
friend class NGPhysicalFragment;
};