Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 LineLayoutText_h | |
| 6 #define LineLayoutText_h | |
| 7 | |
| 8 #include "core/layout/LayoutText.h" | |
| 9 #include "core/layout/api/LineLayoutItem.h" | |
| 10 #include "platform/LayoutUnit.h" | |
| 11 #include "platform/text/TextPath.h" | |
| 12 #include "wtf/Forward.h" | |
| 13 | |
| 14 namespace blink { | |
| 15 | |
| 16 class LayoutText; | |
| 17 | |
| 18 class LineLayoutText : public LineLayoutItem { | |
| 19 public: | |
| 20 LineLayoutText(LayoutText* layoutObject) : LineLayoutItem(layoutObject) { } | |
| 21 LineLayoutText(const LineLayoutItem&); | |
| 22 LineLayoutText() { } | |
| 23 | |
| 24 bool isWordBreak() const; | |
| 25 | |
| 26 bool isAllCollapsibleWhitespace() const; | |
| 27 | |
| 28 UChar characterAt(unsigned) const; | |
| 29 unsigned textLength() const; | |
| 30 | |
| 31 private: | |
| 32 LayoutText* text() { return toLayoutText(layoutObject()); } | |
|
leviw_travelin_and_unemployed
2015/06/08 18:14:28
toText()
| |
| 33 const LayoutText* text() const { return toLayoutText(layoutObject()); } | |
| 34 }; | |
| 35 | |
| 36 } // namespace blink | |
| 37 | |
| 38 #endif // LineLayoutText_h | |
| OLD | NEW |