1 // Copyright 2020 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_NG_MATHML_LAYOUT_NG_MATHML_BLOCK_FLOW_H_ 6 #define THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_NG_MATHML_LAYOUT_NG_MATHML_BLOCK_FLOW_H_ 7 8 #include "third_party/blink/renderer/core/layout/ng/layout_ng_block_flow.h" 9 10 namespace blink { 11 12 class Element; 13 14 class LayoutNGMathMLBlockFlow final : public LayoutNGBlockFlow { 15 public: 16 explicit LayoutNGMathMLBlockFlow(Element*); 17 GetName()18 const char* GetName() const final { return "LayoutNGMathMLBlockFlow"; } 19 20 private: IsOfType(LayoutObjectType)21 bool IsOfType(LayoutObjectType) const final; 22 bool IsChildAllowed(LayoutObject*, const ComputedStyle&) const final { 23 return true; 24 } CreatesNewFormattingContext()25 bool CreatesNewFormattingContext() const final { return true; } 26 GetPaginationBreakability(FragmentationEngine)27 PaginationBreakability GetPaginationBreakability( 28 FragmentationEngine) const final { 29 return kForbidBreaks; 30 } 31 }; 32 33 } // namespace blink 34 35 #endif // THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_NG_MATHML_LAYOUT_NG_MATHML_BLOCK_FLOW_H_ 36