diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/core/layout/ng/layout_ng_block_flow_mixin.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/core/layout/ng/layout_ng_block_flow_mixin.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/ng/layout_ng_block_flow_mixin.cc b/chromium/third_party/blink/renderer/core/layout/ng/layout_ng_block_flow_mixin.cc index ef990b7ce3f..a7904987197 100644 --- a/chromium/third_party/blink/renderer/core/layout/ng/layout_ng_block_flow_mixin.cc +++ b/chromium/third_party/blink/renderer/core/layout/ng/layout_ng_block_flow_mixin.cc @@ -299,8 +299,12 @@ void LayoutNGBlockFlowMixin<Base>::DirtyLinesFromChangedChild( // We need to dirty line box fragments only if the child is once laid out in // LayoutNG inline formatting context. New objects are handled in // NGInlineNode::MarkLineBoxesDirty(). - if (child->IsInLayoutNGInlineFormattingContext()) - NGPaintFragment::DirtyLinesFromChangedChild(child); + if (child->IsInLayoutNGInlineFormattingContext()) { + if (RuntimeEnabledFeatures::LayoutNGFragmentItemEnabled()) { + if (const NGFragmentItems* items = Base::FragmentItems()) + items->DirtyLinesFromChangedChild(child); + } + } } template <typename Base> @@ -341,6 +345,10 @@ void LayoutNGBlockFlowMixin<Base>::UpdateMargins() { template class CORE_TEMPLATE_EXPORT LayoutNGBlockFlowMixin<LayoutBlockFlow>; template class CORE_TEMPLATE_EXPORT LayoutNGBlockFlowMixin<LayoutProgress>; +template class CORE_TEMPLATE_EXPORT LayoutNGBlockFlowMixin<LayoutRubyAsBlock>; +template class CORE_TEMPLATE_EXPORT LayoutNGBlockFlowMixin<LayoutRubyBase>; +template class CORE_TEMPLATE_EXPORT LayoutNGBlockFlowMixin<LayoutRubyRun>; +template class CORE_TEMPLATE_EXPORT LayoutNGBlockFlowMixin<LayoutRubyText>; template class CORE_TEMPLATE_EXPORT LayoutNGBlockFlowMixin<LayoutTableCaption>; template class CORE_TEMPLATE_EXPORT LayoutNGBlockFlowMixin<LayoutTableCell>; |