| 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 float leadWidth, | 240 float leadWidth, |
| 241 HashSet<const SimpleFontData*>& fallbackFonts, | 241 HashSet<const SimpleFontData*>& fallbackFonts, |
| 242 FloatRect& glyphBounds); | 242 FloatRect& glyphBounds); |
| 243 | 243 |
| 244 // Make length() private so that callers that have a LayoutText* | 244 // Make length() private so that callers that have a LayoutText* |
| 245 // will use the more efficient textLength() instead, while | 245 // will use the more efficient textLength() instead, while |
| 246 // callers with a LayoutObject* can continue to use length(). | 246 // callers with a LayoutObject* can continue to use length(). |
| 247 unsigned length() const final { return textLength(); } | 247 unsigned length() const final { return textLength(); } |
| 248 | 248 |
| 249 // See the class comment as to why we shouldn't call this function directly. | 249 // See the class comment as to why we shouldn't call this function directly. |
| 250 void paint(const PaintInfo&, const LayoutPoint&) const final { | 250 void paint(const PaintInfo&, const LayoutPoint&) const final { NOTREACHED(); } |
| 251 ASSERT_NOT_REACHED(); | 251 void layout() final { NOTREACHED(); } |
| 252 } | |
| 253 void layout() final { ASSERT_NOT_REACHED(); } | |
| 254 bool nodeAtPoint(HitTestResult&, | 252 bool nodeAtPoint(HitTestResult&, |
| 255 const HitTestLocation&, | 253 const HitTestLocation&, |
| 256 const LayoutPoint&, | 254 const LayoutPoint&, |
| 257 HitTestAction) final { | 255 HitTestAction) final { |
| 258 ASSERT_NOT_REACHED(); | 256 NOTREACHED(); |
| 259 return false; | 257 return false; |
| 260 } | 258 } |
| 261 | 259 |
| 262 void deleteTextBoxes(); | 260 void deleteTextBoxes(); |
| 263 bool containsOnlyWhitespace(unsigned from, unsigned len) const; | 261 bool containsOnlyWhitespace(unsigned from, unsigned len) const; |
| 264 float widthFromFont(const Font&, | 262 float widthFromFont(const Font&, |
| 265 int start, | 263 int start, |
| 266 int len, | 264 int len, |
| 267 float leadWidth, | 265 float leadWidth, |
| 268 float textWidthSoFar, | 266 float textWidthSoFar, |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 | 347 |
| 350 inline LayoutText* Text::layoutObject() const { | 348 inline LayoutText* Text::layoutObject() const { |
| 351 return toLayoutText(CharacterData::layoutObject()); | 349 return toLayoutText(CharacterData::layoutObject()); |
| 352 } | 350 } |
| 353 | 351 |
| 354 void applyTextTransform(const ComputedStyle*, String&, UChar); | 352 void applyTextTransform(const ComputedStyle*, String&, UChar); |
| 355 | 353 |
| 356 } // namespace blink | 354 } // namespace blink |
| 357 | 355 |
| 358 #endif // LayoutText_h | 356 #endif // LayoutText_h |
| OLD | NEW |