Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.h

Issue 2237623002: Demo patch that demonstrates simple block layout using Layout NG (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed NGBlockLayoutAlgorithmTest Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LayoutNGBlockFlow_h 5 #ifndef LayoutNGBlockFlow_h
6 #define LayoutNGBlockFlow_h 6 #define LayoutNGBlockFlow_h
7 7
8 #include "core/layout/LayoutBlockFlow.h" 8 #include "core/layout/LayoutBlockFlow.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 // This overrides the default layout block algorithm to use Layout NG. 12 // This overrides the default layout block algorithm to use Layout NG.
13 class LayoutNGBlockFlow final : public LayoutBlockFlow { 13 class LayoutNGBlockFlow final : public LayoutBlockFlow {
14 public: 14 public:
15 explicit LayoutNGBlockFlow(Element*); 15 explicit LayoutNGBlockFlow(Element*);
16 ~LayoutNGBlockFlow() override = default; 16 ~LayoutNGBlockFlow() override = default;
17 17
18 void layoutBlock(bool relayoutChildren) override;
19
18 private: 20 private:
19 bool isOfType(LayoutObjectType) const override; 21 bool isOfType(LayoutObjectType) const override;
20 }; 22 };
21 23
22 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutNGBlockFlow, isLayoutNGBlockFlow()); 24 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutNGBlockFlow, isLayoutNGBlockFlow());
23 25
24 } // namespace blink 26 } // namespace blink
25 27
26 #endif // LayoutNGBlockFlow_h 28 #endif // LayoutNGBlockFlow_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698