| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999 Lars Knoll (knoll@kde.org) | 2 * (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Dirk Mueller (mueller@kde.org) | 3 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 4 * Copyright (C) 2004-2009, 2013 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004-2009, 2013 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 const LChar* characters8() const { return m_text.impl()->characters8(); } | 121 const LChar* characters8() const { return m_text.impl()->characters8(); } |
| 122 const UChar* characters16() const { return m_text.impl()->characters16(); } | 122 const UChar* characters16() const { return m_text.impl()->characters16(); } |
| 123 bool hasEmptyText() const { return m_text.isEmpty(); } | 123 bool hasEmptyText() const { return m_text.isEmpty(); } |
| 124 UChar characterAt(unsigned) const; | 124 UChar characterAt(unsigned) const; |
| 125 UChar uncheckedCharacterAt(unsigned) const; | 125 UChar uncheckedCharacterAt(unsigned) const; |
| 126 UChar operator[](unsigned i) const { return uncheckedCharacterAt(i); } | 126 UChar operator[](unsigned i) const { return uncheckedCharacterAt(i); } |
| 127 UChar32 codepointAt(unsigned) const; | 127 UChar32 codepointAt(unsigned) const; |
| 128 unsigned textLength() const { | 128 unsigned textLength() const { |
| 129 return m_text.length(); | 129 return m_text.length(); |
| 130 } // non virtual implementation of length() | 130 } // non virtual implementation of length() |
| 131 bool containsOnlyWhitespace(unsigned from, unsigned len) const; |
| 131 void positionLineBox(InlineBox*); | 132 void positionLineBox(InlineBox*); |
| 132 | 133 |
| 133 virtual float width(unsigned from, | 134 virtual float width(unsigned from, |
| 134 unsigned len, | 135 unsigned len, |
| 135 const Font&, | 136 const Font&, |
| 136 LayoutUnit xPos, | 137 LayoutUnit xPos, |
| 137 TextDirection, | 138 TextDirection, |
| 138 HashSet<const SimpleFontData*>* fallbackFonts = nullptr, | 139 HashSet<const SimpleFontData*>* fallbackFonts = nullptr, |
| 139 FloatRect* glyphBounds = nullptr) const; | 140 FloatRect* glyphBounds = nullptr) const; |
| 140 virtual float width(unsigned from, | 141 virtual float width(unsigned from, |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 void layout() final { ASSERT_NOT_REACHED(); } | 254 void layout() final { ASSERT_NOT_REACHED(); } |
| 254 bool nodeAtPoint(HitTestResult&, | 255 bool nodeAtPoint(HitTestResult&, |
| 255 const HitTestLocation&, | 256 const HitTestLocation&, |
| 256 const LayoutPoint&, | 257 const LayoutPoint&, |
| 257 HitTestAction) final { | 258 HitTestAction) final { |
| 258 ASSERT_NOT_REACHED(); | 259 ASSERT_NOT_REACHED(); |
| 259 return false; | 260 return false; |
| 260 } | 261 } |
| 261 | 262 |
| 262 void deleteTextBoxes(); | 263 void deleteTextBoxes(); |
| 263 bool containsOnlyWhitespace(unsigned from, unsigned len) const; | |
| 264 float widthFromFont(const Font&, | 264 float widthFromFont(const Font&, |
| 265 int start, | 265 int start, |
| 266 int len, | 266 int len, |
| 267 float leadWidth, | 267 float leadWidth, |
| 268 float textWidthSoFar, | 268 float textWidthSoFar, |
| 269 TextDirection, | 269 TextDirection, |
| 270 HashSet<const SimpleFontData*>* fallbackFonts, | 270 HashSet<const SimpleFontData*>* fallbackFonts, |
| 271 FloatRect* glyphBoundsAccumulation) const; | 271 FloatRect* glyphBoundsAccumulation) const; |
| 272 | 272 |
| 273 void secureText(UChar mask); | 273 void secureText(UChar mask); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 | 349 |
| 350 inline LayoutText* Text::layoutObject() const { | 350 inline LayoutText* Text::layoutObject() const { |
| 351 return toLayoutText(CharacterData::layoutObject()); | 351 return toLayoutText(CharacterData::layoutObject()); |
| 352 } | 352 } |
| 353 | 353 |
| 354 void applyTextTransform(const ComputedStyle*, String&, UChar); | 354 void applyTextTransform(const ComputedStyle*, String&, UChar); |
| 355 | 355 |
| 356 } // namespace blink | 356 } // namespace blink |
| 357 | 357 |
| 358 #endif // LayoutText_h | 358 #endif // LayoutText_h |
| OLD | NEW |