| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 float firstRunX() const; | 107 float firstRunX() const; |
| 108 float firstRunY() const; | 108 float firstRunY() const; |
| 109 | 109 |
| 110 virtual void setText(PassRefPtr<StringImpl>, bool force = false); | 110 virtual void setText(PassRefPtr<StringImpl>, bool force = false); |
| 111 void setTextWithOffset(PassRefPtr<StringImpl>, unsigned offset, unsigned len
, bool force = false); | 111 void setTextWithOffset(PassRefPtr<StringImpl>, unsigned offset, unsigned len
, bool force = false); |
| 112 | 112 |
| 113 virtual void transformText(); | 113 virtual void transformText(); |
| 114 | 114 |
| 115 virtual bool canBeSelectionLeaf() const override { return true; } | 115 virtual bool canBeSelectionLeaf() const override { return true; } |
| 116 virtual void setSelectionState(SelectionState) override final; | 116 virtual void setSelectionState(SelectionState) override final; |
| 117 virtual LayoutRect selectionRectForPaintInvalidation(const LayoutLayerModelO
bject* paintInvalidationContainer) const override; | 117 virtual LayoutRect selectionRectForPaintInvalidation(const LayoutBoxModelObj
ect* paintInvalidationContainer) const override; |
| 118 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0) override; | 118 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0) override; |
| 119 | 119 |
| 120 InlineTextBox* firstTextBox() const { return m_firstTextBox; } | 120 InlineTextBox* firstTextBox() const { return m_firstTextBox; } |
| 121 InlineTextBox* lastTextBox() const { return m_lastTextBox; } | 121 InlineTextBox* lastTextBox() const { return m_lastTextBox; } |
| 122 | 122 |
| 123 virtual int caretMinOffset() const override; | 123 virtual int caretMinOffset() const override; |
| 124 virtual int caretMaxOffset() const override; | 124 virtual int caretMaxOffset() const override; |
| 125 unsigned renderedTextLength() const; | 125 unsigned renderedTextLength() const; |
| 126 | 126 |
| 127 virtual int previousOffset(int current) const override final; | 127 virtual int previousOffset(int current) const override final; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 173 |
| 174 void deleteTextBoxes(); | 174 void deleteTextBoxes(); |
| 175 bool containsOnlyWhitespace(unsigned from, unsigned len) const; | 175 bool containsOnlyWhitespace(unsigned from, unsigned len) const; |
| 176 float widthFromCache(const Font&, int start, int len, float xPos, TextDirect
ion, HashSet<const SimpleFontData*>* fallbackFonts, GlyphOverflow*) const; | 176 float widthFromCache(const Font&, int start, int len, float xPos, TextDirect
ion, HashSet<const SimpleFontData*>* fallbackFonts, GlyphOverflow*) const; |
| 177 bool isAllASCII() const { return m_isAllASCII; } | 177 bool isAllASCII() const { return m_isAllASCII; } |
| 178 | 178 |
| 179 void secureText(UChar mask); | 179 void secureText(UChar mask); |
| 180 | 180 |
| 181 bool isText() const = delete; // This will catch anyone doing an unnecessary
check. | 181 bool isText() const = delete; // This will catch anyone doing an unnecessary
check. |
| 182 | 182 |
| 183 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutLayer
ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons
t override; | 183 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo
delObject* paintInvalidationContainer, const PaintInvalidationState* = 0) const
override; |
| 184 | 184 |
| 185 void checkConsistency() const; | 185 void checkConsistency() const; |
| 186 | 186 |
| 187 // We put the bitfield first to minimize padding on 64-bit. | 187 // We put the bitfield first to minimize padding on 64-bit. |
| 188 bool m_hasBreakableChar : 1; // Whether or not we can be broken into multipl
e lines. | 188 bool m_hasBreakableChar : 1; // Whether or not we can be broken into multipl
e lines. |
| 189 bool m_hasBreak : 1; // Whether or not we have a hard break (e.g., <pre> wit
h '\n'). | 189 bool m_hasBreak : 1; // Whether or not we have a hard break (e.g., <pre> wit
h '\n'). |
| 190 bool m_hasTab : 1; // Whether or not we have a variable width tab character
(e.g., <pre> with '\t'). | 190 bool m_hasTab : 1; // Whether or not we have a variable width tab character
(e.g., <pre> with '\t'). |
| 191 bool m_hasBreakableStart : 1; | 191 bool m_hasBreakableStart : 1; |
| 192 bool m_hasBreakableEnd : 1; | 192 bool m_hasBreakableEnd : 1; |
| 193 bool m_hasEndWhiteSpace : 1; | 193 bool m_hasEndWhiteSpace : 1; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 inline RenderText* Text::renderer() const | 236 inline RenderText* Text::renderer() const |
| 237 { | 237 { |
| 238 return toRenderText(CharacterData::renderer()); | 238 return toRenderText(CharacterData::renderer()); |
| 239 } | 239 } |
| 240 | 240 |
| 241 void applyTextTransform(const LayoutStyle*, String&, UChar); | 241 void applyTextTransform(const LayoutStyle*, String&, UChar); |
| 242 | 242 |
| 243 } // namespace blink | 243 } // namespace blink |
| 244 | 244 |
| 245 #endif // RenderText_h | 245 #endif // RenderText_h |
| OLD | NEW |