| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 void dirtyOrDeleteLineBoxesIfNeeded(bool fullLayout); | 96 void dirtyOrDeleteLineBoxesIfNeeded(bool fullLayout); |
| 97 void dirtyLineBoxes(); | 97 void dirtyLineBoxes(); |
| 98 | 98 |
| 99 void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedOffset) c
onst final; | 99 void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedOffset) c
onst final; |
| 100 void absoluteRectsForRange(Vector<IntRect>&, unsigned startOffset = 0, unsig
ned endOffset = INT_MAX, bool useSelectionHeight = false); | 100 void absoluteRectsForRange(Vector<IntRect>&, unsigned startOffset = 0, unsig
ned endOffset = INT_MAX, bool useSelectionHeight = false); |
| 101 | 101 |
| 102 void absoluteQuads(Vector<FloatQuad>&) const final; | 102 void absoluteQuads(Vector<FloatQuad>&) const final; |
| 103 void absoluteQuadsForRange(Vector<FloatQuad>&, unsigned startOffset = 0, uns
igned endOffset = INT_MAX, bool useSelectionHeight = false); | 103 void absoluteQuadsForRange(Vector<FloatQuad>&, unsigned startOffset = 0, uns
igned endOffset = INT_MAX, bool useSelectionHeight = false); |
| 104 | 104 |
| 105 enum ClippingOption { NoClipping, ClipToEllipsis }; | 105 enum ClippingOption { NoClipping, ClipToEllipsis }; |
| 106 void absoluteQuads(Vector<FloatQuad>&, ClippingOption = NoClipping) const; | 106 enum LocalOrAbsoluteOption { LocalQuads, AbsoluteQuads }; |
| 107 void quads(Vector<FloatQuad>&, ClippingOption = NoClipping, LocalOrAbsoluteO
ption = AbsoluteQuads) const; |
| 107 | 108 |
| 108 PositionWithAffinity positionForPoint(const LayoutPoint&) override; | 109 PositionWithAffinity positionForPoint(const LayoutPoint&) override; |
| 109 | 110 |
| 110 bool is8Bit() const { return m_text.is8Bit(); } | 111 bool is8Bit() const { return m_text.is8Bit(); } |
| 111 const LChar* characters8() const { return m_text.impl()->characters8(); } | 112 const LChar* characters8() const { return m_text.impl()->characters8(); } |
| 112 const UChar* characters16() const { return m_text.impl()->characters16(); } | 113 const UChar* characters16() const { return m_text.impl()->characters16(); } |
| 113 bool hasEmptyText() const { return m_text.isEmpty(); } | 114 bool hasEmptyText() const { return m_text.isEmpty(); } |
| 114 UChar characterAt(unsigned) const; | 115 UChar characterAt(unsigned) const; |
| 115 UChar uncheckedCharacterAt(unsigned) const; | 116 UChar uncheckedCharacterAt(unsigned) const; |
| 116 UChar operator[](unsigned i) const { return uncheckedCharacterAt(i); } | 117 UChar operator[](unsigned i) const { return uncheckedCharacterAt(i); } |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 inline LayoutText* Text::layoutObject() const | 292 inline LayoutText* Text::layoutObject() const |
| 292 { | 293 { |
| 293 return toLayoutText(CharacterData::layoutObject()); | 294 return toLayoutText(CharacterData::layoutObject()); |
| 294 } | 295 } |
| 295 | 296 |
| 296 void applyTextTransform(const ComputedStyle*, String&, UChar); | 297 void applyTextTransform(const ComputedStyle*, String&, UChar); |
| 297 | 298 |
| 298 } // namespace blink | 299 } // namespace blink |
| 299 | 300 |
| 300 #endif // LayoutText_h | 301 #endif // LayoutText_h |
| OLD | NEW |