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 LineLayoutText_h | 5 #ifndef LineLayoutText_h |
6 #define LineLayoutText_h | 6 #define LineLayoutText_h |
7 | 7 |
8 #include "core/layout/LayoutText.h" | 8 #include "core/layout/LayoutText.h" |
9 #include "core/layout/api/LineLayoutItem.h" | 9 #include "core/layout/api/LineLayoutItem.h" |
10 #include "platform/LayoutUnit.h" | 10 #include "platform/LayoutUnit.h" |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 unsigned textStartOffset() const | 147 unsigned textStartOffset() const |
148 { | 148 { |
149 return toText()->textStartOffset(); | 149 return toText()->textStartOffset(); |
150 } | 150 } |
151 | 151 |
152 float minLogicalWidth() const | 152 float minLogicalWidth() const |
153 { | 153 { |
154 return toText()->minLogicalWidth(); | 154 return toText()->minLogicalWidth(); |
155 } | 155 } |
156 | 156 |
| 157 void setLineBreakForTextWrap(bool hasLineBreakForTextWrap) |
| 158 { |
| 159 toText()->setLineBreakForTextWrap(hasLineBreakForTextWrap); |
| 160 } |
| 161 |
157 private: | 162 private: |
158 LayoutText* toText() { return toLayoutText(layoutObject()); } | 163 LayoutText* toText() { return toLayoutText(layoutObject()); } |
159 const LayoutText* toText() const { return toLayoutText(layoutObject()); } | 164 const LayoutText* toText() const { return toLayoutText(layoutObject()); } |
160 }; | 165 }; |
161 | 166 |
162 } // namespace blink | 167 } // namespace blink |
163 | 168 |
164 #endif // LineLayoutText_h | 169 #endif // LineLayoutText_h |
OLD | NEW |