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

Side by Side Diff: third_party/WebKit/Source/core/layout/api/LineLayoutBlockFlow.h

Issue 1433253003: [Line Layout API] Convert AbstractInlineTextBox to new line layout API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add constructors so we can assign nullptr to LineLayoutItem descendants Created 5 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 LineLayoutBlockFlow_h 5 #ifndef LineLayoutBlockFlow_h
6 #define LineLayoutBlockFlow_h 6 #define LineLayoutBlockFlow_h
7 7
8 #include "core/layout/FloatingObjects.h" 8 #include "core/layout/FloatingObjects.h"
9 #include "core/layout/LayoutBlockFlow.h" 9 #include "core/layout/LayoutBlockFlow.h"
10 #include "core/layout/api/LineLayoutBox.h" 10 #include "core/layout/api/LineLayoutBox.h"
(...skipping 12 matching lines...) Expand all
23 : LineLayoutBox(blockFlow) 23 : LineLayoutBox(blockFlow)
24 { 24 {
25 } 25 }
26 26
27 explicit LineLayoutBlockFlow(const LineLayoutItem& item) 27 explicit LineLayoutBlockFlow(const LineLayoutItem& item)
28 : LineLayoutBox(item) 28 : LineLayoutBox(item)
29 { 29 {
30 ASSERT(!item || item.isLayoutBlockFlow()); 30 ASSERT(!item || item.isLayoutBlockFlow());
31 } 31 }
32 32
33 LineLayoutBlockFlow(std::nullptr_t) : LineLayoutBox(nullptr) { }
34
33 LineLayoutBlockFlow() { } 35 LineLayoutBlockFlow() { }
34 36
35 LineLayoutItem firstChild() const 37 LineLayoutItem firstChild() const
36 { 38 {
37 return LineLayoutItem(toBlockFlow()->firstChild()); 39 return LineLayoutItem(toBlockFlow()->firstChild());
38 } 40 }
39 LineLayoutItem lastChild() const 41 LineLayoutItem lastChild() const
40 { 42 {
41 return LineLayoutItem(toBlockFlow()->lastChild()); 43 return LineLayoutItem(toBlockFlow()->lastChild());
42 } 44 }
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 } 179 }
178 180
179 private: 181 private:
180 LayoutBlockFlow* toBlockFlow() { return toLayoutBlockFlow(layoutObject()); } ; 182 LayoutBlockFlow* toBlockFlow() { return toLayoutBlockFlow(layoutObject()); } ;
181 const LayoutBlockFlow* toBlockFlow() const { return toLayoutBlockFlow(layout Object()); }; 183 const LayoutBlockFlow* toBlockFlow() const { return toLayoutBlockFlow(layout Object()); };
182 }; 184 };
183 185
184 } // namespace blink 186 } // namespace blink
185 187
186 #endif // LineLayoutBlockFlow_h 188 #endif // LineLayoutBlockFlow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698