| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 void layout() final { NOTREACHED(); } | 252 void layout() final { NOTREACHED(); } |
| 252 bool nodeAtPoint(HitTestResult&, | 253 bool nodeAtPoint(HitTestResult&, |
| 253 const HitTestLocation&, | 254 const HitTestLocation&, |
| 254 const LayoutPoint&, | 255 const LayoutPoint&, |
| 255 HitTestAction) final { | 256 HitTestAction) final { |
| 256 NOTREACHED(); | 257 NOTREACHED(); |
| 257 return false; | 258 return false; |
| 258 } | 259 } |
| 259 | 260 |
| 260 void deleteTextBoxes(); | 261 void deleteTextBoxes(); |
| 261 bool containsOnlyWhitespace(unsigned from, unsigned len) const; | |
| 262 float widthFromFont(const Font&, | 262 float widthFromFont(const Font&, |
| 263 int start, | 263 int start, |
| 264 int len, | 264 int len, |
| 265 float leadWidth, | 265 float leadWidth, |
| 266 float textWidthSoFar, | 266 float textWidthSoFar, |
| 267 TextDirection, | 267 TextDirection, |
| 268 HashSet<const SimpleFontData*>* fallbackFonts, | 268 HashSet<const SimpleFontData*>* fallbackFonts, |
| 269 FloatRect* glyphBoundsAccumulation) const; | 269 FloatRect* glyphBoundsAccumulation) const; |
| 270 | 270 |
| 271 void secureText(UChar mask); | 271 void secureText(UChar mask); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 | 347 |
| 348 inline LayoutText* Text::layoutObject() const { | 348 inline LayoutText* Text::layoutObject() const { |
| 349 return toLayoutText(CharacterData::layoutObject()); | 349 return toLayoutText(CharacterData::layoutObject()); |
| 350 } | 350 } |
| 351 | 351 |
| 352 void applyTextTransform(const ComputedStyle*, String&, UChar); | 352 void applyTextTransform(const ComputedStyle*, String&, UChar); |
| 353 | 353 |
| 354 } // namespace blink | 354 } // namespace blink |
| 355 | 355 |
| 356 #endif // LayoutText_h | 356 #endif // LayoutText_h |
| OLD | NEW |