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

Side by Side Diff: Source/core/layout/api/LineLayoutInline.h

Issue 1164933006: Create LineLayout api (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: all line API implementations now in headers Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef LineLayoutInline_h
6 #define LineLayoutInline_h
7
8 #include "core/layout/LayoutInline.h"
9 #include "core/layout/api/LineLayoutItem.h"
10 #include "platform/LayoutUnit.h"
11
12 namespace blink {
13
14 class ComputedStyle;
15 class LayoutInline;
16 class LayoutObject;
17
18 class LineLayoutInline : public LineLayoutItem {
19 public:
20 LineLayoutInline(LayoutInline*);
21 LineLayoutInline(const LineLayoutItem&);
22 LineLayoutInline() { }
23
24 LineLayoutItem firstChild() const
25 {
26 return toInline()->firstChild();
27 }
28
29 LineLayoutItem lastChild() const
30 {
31 return toInline()->lastChild();
32 }
33
34 protected:
35 LayoutInline* toInline()
36 {
37 return toLayoutInline(layoutObject());
38 }
39
40 const LayoutInline* toInline() const
41 {
42 return toLayoutInline(layoutObject());
43 }
44
45 };
46
47 } // namespace blink
48
49 #endif // LineLayoutInline_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698