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

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

Issue 1312713005: [Line Layout API] Add rubyBase to LineLayoutRubyRun (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 3 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
« no previous file with comments | « no previous file | Source/core/layout/line/InlineFlowBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/line/InlineFlowBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698