OLD | NEW |
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 LineLayoutRubyRun_h | 5 #ifndef LineLayoutRubyRun_h |
6 #define LineLayoutRubyRun_h | 6 #define LineLayoutRubyRun_h |
7 | 7 |
8 #include "core/layout/LayoutRubyRun.h" | 8 #include "core/layout/LayoutRubyRun.h" |
9 #include "core/layout/api/LineLayoutBlockFlow.h" | 9 #include "core/layout/api/LineLayoutBlockFlow.h" |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 void getOverhang(bool firstLine, LineLayoutItem startLayoutItem, LineLayoutI
tem endLayoutItem, int& startOverhang, int& endOverhang) const | 28 void getOverhang(bool firstLine, LineLayoutItem startLayoutItem, LineLayoutI
tem endLayoutItem, int& startOverhang, int& endOverhang) const |
29 { | 29 { |
30 toRubyRun()->getOverhang(firstLine, startLayoutItem, endLayoutItem, star
tOverhang, endOverhang); | 30 toRubyRun()->getOverhang(firstLine, startLayoutItem, endLayoutItem, star
tOverhang, endOverhang); |
31 } | 31 } |
32 | 32 |
33 LayoutRubyText* rubyText() const | 33 LayoutRubyText* rubyText() const |
34 { | 34 { |
35 return toRubyRun()->rubyText(); | 35 return toRubyRun()->rubyText(); |
36 } | 36 } |
37 | 37 |
| 38 LayoutRubyBase* rubyBase() const |
| 39 { |
| 40 return toRubyRun()->rubyBase(); |
| 41 } |
| 42 |
38 private: | 43 private: |
39 LayoutRubyRun* toRubyRun() | 44 LayoutRubyRun* toRubyRun() |
40 { | 45 { |
41 return toLayoutRubyRun(layoutObject()); | 46 return toLayoutRubyRun(layoutObject()); |
42 } | 47 } |
43 | 48 |
44 const LayoutRubyRun* toRubyRun() const | 49 const LayoutRubyRun* toRubyRun() const |
45 { | 50 { |
46 return toLayoutRubyRun(layoutObject()); | 51 return toLayoutRubyRun(layoutObject()); |
47 } | 52 } |
48 }; | 53 }; |
49 | 54 |
50 } // namespace blink | 55 } // namespace blink |
51 | 56 |
52 #endif // LineLayoutRubyRun_h | 57 #endif // LineLayoutRubyRun_h |
OLD | NEW |