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 virtual PassRefPtr<StringImpl> originalText() const; | 53 virtual PassRefPtr<StringImpl> originalText() const; |
54 | 54 |
55 void extractTextBox(InlineTextBox*); | 55 void extractTextBox(InlineTextBox*); |
56 void attachTextBox(InlineTextBox*); | 56 void attachTextBox(InlineTextBox*); |
57 void removeTextBox(InlineTextBox*); | 57 void removeTextBox(InlineTextBox*); |
58 | 58 |
59 const String& text() const { return m_text; } | 59 const String& text() const { return m_text; } |
60 virtual unsigned textStartOffset() const { return 0; } | 60 virtual unsigned textStartOffset() const { return 0; } |
61 String plainText() const; | 61 String plainText() const; |
62 | 62 |
63 InlineTextBox* createInlineTextBox(); | 63 InlineTextBox* createInlineTextBox(int start, unsigned short length); |
64 void dirtyLineBoxes(bool fullLayout); | 64 void dirtyLineBoxes(bool fullLayout); |
65 | 65 |
66 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const OVERRIDE FINAL; | 66 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO
ffset) const OVERRIDE FINAL; |
67 void absoluteRectsForRange(Vector<IntRect>&, unsigned startOffset = 0, unsig
ned endOffset = INT_MAX, bool useSelectionHeight = false, bool* wasFixed = 0); | 67 void absoluteRectsForRange(Vector<IntRect>&, unsigned startOffset = 0, unsig
ned endOffset = INT_MAX, bool useSelectionHeight = false, bool* wasFixed = 0); |
68 | 68 |
69 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const OVERRID
E FINAL; | 69 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const OVERRID
E FINAL; |
70 void absoluteQuadsForRange(Vector<FloatQuad>&, unsigned startOffset = 0, uns
igned endOffset = INT_MAX, bool useSelectionHeight = false, bool* wasFixed = 0); | 70 void absoluteQuadsForRange(Vector<FloatQuad>&, unsigned startOffset = 0, uns
igned endOffset = INT_MAX, bool useSelectionHeight = false, bool* wasFixed = 0); |
71 | 71 |
72 enum ClippingOption { NoClipping, ClipToEllipsis }; | 72 enum ClippingOption { NoClipping, ClipToEllipsis }; |
73 void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed = 0, ClippingOption =
NoClipping) const; | 73 void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed = 0, ClippingOption =
NoClipping) const; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 virtual void willBeDestroyed() OVERRIDE; | 149 virtual void willBeDestroyed() OVERRIDE; |
150 | 150 |
151 virtual void styleWillChange(StyleDifference, const RenderStyle&) OVERRIDE F
INAL { } | 151 virtual void styleWillChange(StyleDifference, const RenderStyle&) OVERRIDE F
INAL { } |
152 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV
ERRIDE; | 152 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV
ERRIDE; |
153 | 153 |
154 virtual void setTextInternal(PassRefPtr<StringImpl>); | 154 virtual void setTextInternal(PassRefPtr<StringImpl>); |
155 virtual UChar previousCharacter() const; | 155 virtual UChar previousCharacter() const; |
156 | 156 |
157 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur
rentLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) cons
t OVERRIDE; | 157 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur
rentLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) cons
t OVERRIDE; |
158 | 158 |
159 virtual InlineTextBox* createTextBox(); // Subclassed by SVG. | 159 virtual InlineTextBox* createTextBox(int start, unsigned short length); // S
ubclassed by SVG. |
160 | 160 |
161 private: | 161 private: |
162 void computePreferredLogicalWidths(float leadWidth); | 162 void computePreferredLogicalWidths(float leadWidth); |
163 void computePreferredLogicalWidths(float leadWidth, HashSet<const SimpleFont
Data*>& fallbackFonts, GlyphOverflow&); | 163 void computePreferredLogicalWidths(float leadWidth, HashSet<const SimpleFont
Data*>& fallbackFonts, GlyphOverflow&); |
164 | 164 |
165 bool computeCanUseSimpleFontCodePath() const; | 165 bool computeCanUseSimpleFontCodePath() const; |
166 | 166 |
167 // Make length() private so that callers that have a RenderText* | 167 // Make length() private so that callers that have a RenderText* |
168 // will use the more efficient textLength() instead, while | 168 // will use the more efficient textLength() instead, while |
169 // callers with a RenderObject* can continue to use length(). | 169 // callers with a RenderObject* can continue to use length(). |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 inline RenderText* Text::renderer() const | 242 inline RenderText* Text::renderer() const |
243 { | 243 { |
244 return toRenderText(CharacterData::renderer()); | 244 return toRenderText(CharacterData::renderer()); |
245 } | 245 } |
246 | 246 |
247 void applyTextTransform(const RenderStyle*, String&, UChar); | 247 void applyTextTransform(const RenderStyle*, String&, UChar); |
248 | 248 |
249 } // namespace blink | 249 } // namespace blink |
250 | 250 |
251 #endif // RenderText_h | 251 #endif // RenderText_h |
OLD | NEW |