| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 184   void setSelectionState(SelectionState) final; | 184   void setSelectionState(SelectionState) final; | 
| 185   LayoutRect localSelectionRect() const final; | 185   LayoutRect localSelectionRect() const final; | 
| 186   LayoutRect localCaretRect( | 186   LayoutRect localCaretRect( | 
| 187       InlineBox*, | 187       InlineBox*, | 
| 188       int caretOffset, | 188       int caretOffset, | 
| 189       LayoutUnit* extraWidthToEndOfLine = nullptr) override; | 189       LayoutUnit* extraWidthToEndOfLine = nullptr) override; | 
| 190 | 190 | 
| 191   InlineTextBox* firstTextBox() const { return m_firstTextBox; } | 191   InlineTextBox* firstTextBox() const { return m_firstTextBox; } | 
| 192   InlineTextBox* lastTextBox() const { return m_lastTextBox; } | 192   InlineTextBox* lastTextBox() const { return m_lastTextBox; } | 
| 193 | 193 | 
| 194   // True if we have inline text box children which implies rendered text (or wh
     itespace) output. | 194   // True if we have inline text box children which implies rendered text (or | 
|  | 195   // whitespace) output. | 
| 195   bool hasTextBoxes() const { return firstTextBox(); } | 196   bool hasTextBoxes() const { return firstTextBox(); } | 
| 196 | 197 | 
| 197   int caretMinOffset() const override; | 198   int caretMinOffset() const override; | 
| 198   int caretMaxOffset() const override; | 199   int caretMaxOffset() const override; | 
| 199   unsigned resolvedTextLength() const; | 200   unsigned resolvedTextLength() const; | 
| 200 | 201 | 
| 201   bool containsReversedText() const { return m_containsReversedText; } | 202   bool containsReversedText() const { return m_containsReversedText; } | 
| 202 | 203 | 
| 203   bool isSecure() const { return style()->textSecurity() != TSNONE; } | 204   bool isSecure() const { return style()->textSecurity() != TSNONE; } | 
| 204   void momentarilyRevealLastTypedCharacter(unsigned lastTypedCharacterOffset); | 205   void momentarilyRevealLastTypedCharacter(unsigned lastTypedCharacterOffset); | 
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 279   void secureText(UChar mask); | 280   void secureText(UChar mask); | 
| 280 | 281 | 
| 281   bool isText() const = | 282   bool isText() const = | 
| 282       delete;  // This will catch anyone doing an unnecessary check. | 283       delete;  // This will catch anyone doing an unnecessary check. | 
| 283 | 284 | 
| 284   LayoutRect localOverflowRectForPaintInvalidation() const override; | 285   LayoutRect localOverflowRectForPaintInvalidation() const override; | 
| 285 | 286 | 
| 286   void checkConsistency() const; | 287   void checkConsistency() const; | 
| 287 | 288 | 
| 288   // We put the bitfield first to minimize padding on 64-bit. | 289   // We put the bitfield first to minimize padding on 64-bit. | 
| 289   bool | 290 | 
| 290       m_hasBreakableChar : 1;  // Whether or not we can be broken into multiple 
     lines. | 291   // Whether or not we can be broken into multiple lines. | 
| 291   bool | 292   bool m_hasBreakableChar : 1; | 
| 292       m_hasBreak : 1;  // Whether or not we have a hard break (e.g., <pre> with 
     '\n'). | 293   // Whether or not we have a hard break (e.g., <pre> with '\n'). | 
| 293   bool | 294   bool m_hasBreak : 1; | 
| 294       m_hasTab : 1;  // Whether or not we have a variable width tab character (e
     .g., <pre> with '\t'). | 295   // Whether or not we have a variable width tab character (e.g., <pre> with '\t
     '). | 
|  | 296   bool m_hasTab : 1; | 
| 295   bool m_hasBreakableStart : 1; | 297   bool m_hasBreakableStart : 1; | 
| 296   bool m_hasBreakableEnd : 1; | 298   bool m_hasBreakableEnd : 1; | 
| 297   bool m_hasEndWhiteSpace : 1; | 299   bool m_hasEndWhiteSpace : 1; | 
| 298   // This bit indicates that the text run has already dirtied specific | 300   // This bit indicates that the text run has already dirtied specific line | 
| 299   // line boxes, and this hint will enable layoutInlineChildren to avoid | 301   // boxes, and this hint will enable layoutInlineChildren to avoid just | 
| 300   // just dirtying everything when character data is modified (e.g., appended/in
     serted | 302   // dirtying everything when character data is modified (e.g., appended/ | 
| 301   // or removed). | 303   // inserted or removed). | 
| 302   bool m_linesDirty : 1; | 304   bool m_linesDirty : 1; | 
| 303   bool m_containsReversedText : 1; | 305   bool m_containsReversedText : 1; | 
| 304   bool m_canUseSimpleFontCodePath : 1; | 306   bool m_canUseSimpleFontCodePath : 1; | 
| 305   mutable bool m_knownToHaveNoOverflowAndNoFallbackFonts : 1; | 307   mutable bool m_knownToHaveNoOverflowAndNoFallbackFonts : 1; | 
| 306 | 308 | 
| 307   float m_minWidth; | 309   float m_minWidth; | 
| 308   float m_maxWidth; | 310   float m_maxWidth; | 
| 309   float m_firstLineMinWidth; | 311   float m_firstLineMinWidth; | 
| 310   float m_lastLineLineMinWidth; | 312   float m_lastLineLineMinWidth; | 
| 311 | 313 | 
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 353 | 355 | 
| 354 inline LayoutText* Text::layoutObject() const { | 356 inline LayoutText* Text::layoutObject() const { | 
| 355   return toLayoutText(CharacterData::layoutObject()); | 357   return toLayoutText(CharacterData::layoutObject()); | 
| 356 } | 358 } | 
| 357 | 359 | 
| 358 void applyTextTransform(const ComputedStyle*, String&, UChar); | 360 void applyTextTransform(const ComputedStyle*, String&, UChar); | 
| 359 | 361 | 
| 360 }  // namespace blink | 362 }  // namespace blink | 
| 361 | 363 | 
| 362 #endif  // LayoutText_h | 364 #endif  // LayoutText_h | 
| OLD | NEW | 
|---|