| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 void removeTextBox(InlineTextBox*); | 53 void removeTextBox(InlineTextBox*); |
| 54 | 54 |
| 55 const String& text() const { return m_text; } | 55 const String& text() const { return m_text; } |
| 56 virtual unsigned textStartOffset() const { return 0; } | 56 virtual unsigned textStartOffset() const { return 0; } |
| 57 String plainText() const; | 57 String plainText() const; |
| 58 | 58 |
| 59 InlineTextBox* createInlineTextBox(); | 59 InlineTextBox* createInlineTextBox(); |
| 60 void dirtyLineBoxes(bool fullLayout); | 60 void dirtyLineBoxes(bool fullLayout); |
| 61 | 61 |
| 62 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const override final; | 62 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const override final; |
| 63 void absoluteRectsForRange(Vector<IntRect>&, unsigned startOffset = 0, unsig
ned endOffset = INT_MAX, bool useSelectionHeight = false, bool* wasFixed = 0); | 63 void absoluteRectsForRange(Vector<IntRect>&, unsigned startOffset = 0, unsig
ned endOffset = INT_MAX, bool useSelectionHeight = false); |
| 64 | 64 |
| 65 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const overrid
e final; | 65 virtual void absoluteQuads(Vector<FloatQuad>&) const override final; |
| 66 void absoluteQuadsForRange(Vector<FloatQuad>&, unsigned startOffset = 0, uns
igned endOffset = INT_MAX, bool useSelectionHeight = false, bool* wasFixed = 0); | 66 void absoluteQuadsForRange(Vector<FloatQuad>&, unsigned startOffset = 0, uns
igned endOffset = INT_MAX, bool useSelectionHeight = false); |
| 67 | 67 |
| 68 enum ClippingOption { NoClipping, ClipToEllipsis }; | 68 enum ClippingOption { NoClipping, ClipToEllipsis }; |
| 69 void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed = 0, ClippingOption =
NoClipping) const; | 69 void absoluteQuads(Vector<FloatQuad>&, ClippingOption = NoClipping) const; |
| 70 | 70 |
| 71 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override; | 71 virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override; |
| 72 | 72 |
| 73 bool is8Bit() const { return m_text.is8Bit(); } | 73 bool is8Bit() const { return m_text.is8Bit(); } |
| 74 const LChar* characters8() const { return m_text.impl()->characters8(); } | 74 const LChar* characters8() const { return m_text.impl()->characters8(); } |
| 75 const UChar* characters16() const { return m_text.impl()->characters16(); } | 75 const UChar* characters16() const { return m_text.impl()->characters16(); } |
| 76 bool hasEmptyText() const { return m_text.isEmpty(); } | 76 bool hasEmptyText() const { return m_text.isEmpty(); } |
| 77 String substring(unsigned position, unsigned length) const { return m_text.s
ubstring(position, length); } | 77 String substring(unsigned position, unsigned length) const { return m_text.s
ubstring(position, length); } |
| 78 UChar characterAt(unsigned) const; | 78 UChar characterAt(unsigned) const; |
| 79 UChar uncheckedCharacterAt(unsigned) const; | 79 UChar uncheckedCharacterAt(unsigned) const; |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 #endif | 221 #endif |
| 222 | 222 |
| 223 inline RenderText* Text::renderer() const | 223 inline RenderText* Text::renderer() const |
| 224 { | 224 { |
| 225 return toRenderText(CharacterData::renderer()); | 225 return toRenderText(CharacterData::renderer()); |
| 226 } | 226 } |
| 227 | 227 |
| 228 } // namespace blink | 228 } // namespace blink |
| 229 | 229 |
| 230 #endif // RenderText_h | 230 #endif // RenderText_h |
| OLD | NEW |