1 // Copyright 2018 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_LAYOUT_NG_FIELDSET_H_
6 #define THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_NG_LAYOUT_NG_FIELDSET_H_
7 
8 #include "third_party/blink/renderer/core/core_export.h"
9 #include "third_party/blink/renderer/core/layout/ng/layout_ng_block_flow.h"
10 
11 namespace blink {
12 
13 class CORE_EXPORT LayoutNGFieldset final : public LayoutNGBlockFlow {
14  public:
15   explicit LayoutNGFieldset(Element*);
16 
GetName()17   const char* GetName() const override { return "LayoutNGFieldset"; }
18 
19   void AddChild(LayoutObject* new_child,
20                 LayoutObject* before_child = nullptr) override;
21 
CreatesNewFormattingContext()22   bool CreatesNewFormattingContext() const final { return true; }
23 
24  protected:
25   bool IsOfType(LayoutObjectType) const override;
26 };
27 
28 }  // namespace blink
29 
30 #endif  // THIRD_PARTY_BLINK_RENDERER_CORE_LAYOUT_NG_LAYOUT_NG_FIELDSET_H_
31