| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 void wordBoundaries(Vector<WordBoundaries>&) const; | 82 void wordBoundaries(Vector<WordBoundaries>&) const; |
| 83 String text() const; | 83 String text() const; |
| 84 bool isFirst() const; | 84 bool isFirst() const; |
| 85 bool isLast() const; | 85 bool isLast() const; |
| 86 PassRefPtr<AbstractInlineTextBox> nextOnLine() const; | 86 PassRefPtr<AbstractInlineTextBox> nextOnLine() const; |
| 87 PassRefPtr<AbstractInlineTextBox> previousOnLine() const; | 87 PassRefPtr<AbstractInlineTextBox> previousOnLine() const; |
| 88 | 88 |
| 89 private: | 89 private: |
| 90 void detach(); | 90 void detach(); |
| 91 | 91 |
| 92 // Weak ptrs; these are nulled when InlineTextBox::destroy() calls AbstractInl
ineTextBox::willDestroy. | 92 // Weak ptrs; these are nulled when InlineTextBox::destroy() calls |
| 93 // AbstractInlineTextBox::willDestroy. |
| 93 LineLayoutText m_lineLayoutItem; | 94 LineLayoutText m_lineLayoutItem; |
| 94 InlineTextBox* m_inlineTextBox; | 95 InlineTextBox* m_inlineTextBox; |
| 95 | 96 |
| 96 typedef HashMap<InlineTextBox*, RefPtr<AbstractInlineTextBox>> | 97 typedef HashMap<InlineTextBox*, RefPtr<AbstractInlineTextBox>> |
| 97 InlineToAbstractInlineTextBoxHashMap; | 98 InlineToAbstractInlineTextBoxHashMap; |
| 98 static InlineToAbstractInlineTextBoxHashMap* gAbstractInlineTextBoxMap; | 99 static InlineToAbstractInlineTextBoxHashMap* gAbstractInlineTextBoxMap; |
| 99 }; | 100 }; |
| 100 | 101 |
| 101 } // namespace blink | 102 } // namespace blink |
| 102 | 103 |
| 103 #endif // AbstractInlineTextBox_h | 104 #endif // AbstractInlineTextBox_h |
| OLD | NEW |