| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 LeftToRight, | 68 LeftToRight, |
| 69 RightToLeft, | 69 RightToLeft, |
| 70 TopToBottom, | 70 TopToBottom, |
| 71 BottomToTop | 71 BottomToTop |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 RenderText* renderText() const { return m_renderText; } | 74 RenderText* renderText() const { return m_renderText; } |
| 75 | 75 |
| 76 PassRefPtr<AbstractInlineTextBox> nextInlineTextBox() const; | 76 PassRefPtr<AbstractInlineTextBox> nextInlineTextBox() const; |
| 77 LayoutRect bounds() const; | 77 LayoutRect bounds() const; |
| 78 unsigned start() const; | |
| 79 unsigned len() const; | 78 unsigned len() const; |
| 80 Direction direction() const; | 79 Direction direction() const; |
| 81 void characterWidths(Vector<float>&) const; | 80 void characterWidths(Vector<float>&) const; |
| 82 void wordBoundaries(Vector<WordBoundaries>&) const; | 81 void wordBoundaries(Vector<WordBoundaries>&) const; |
| 83 String text() const; | 82 String text() const; |
| 84 | 83 |
| 85 private: | 84 private: |
| 86 void detach(); | 85 void detach(); |
| 87 | 86 |
| 88 // Weak ptrs; these are nulled when InlineTextBox::destroy() calls AbstractI
nlineTextBox::willDestroy. | 87 // Weak ptrs; these are nulled when InlineTextBox::destroy() calls AbstractI
nlineTextBox::willDestroy. |
| 89 RenderText* m_renderText; | 88 RenderText* m_renderText; |
| 90 InlineTextBox* m_inlineTextBox; | 89 InlineTextBox* m_inlineTextBox; |
| 91 | 90 |
| 92 typedef HashMap<InlineTextBox*, RefPtr<AbstractInlineTextBox> > InlineToAbst
ractInlineTextBoxHashMap; | 91 typedef HashMap<InlineTextBox*, RefPtr<AbstractInlineTextBox> > InlineToAbst
ractInlineTextBoxHashMap; |
| 93 static InlineToAbstractInlineTextBoxHashMap* gAbstractInlineTextBoxMap; | 92 static InlineToAbstractInlineTextBoxHashMap* gAbstractInlineTextBoxMap; |
| 94 }; | 93 }; |
| 95 | 94 |
| 96 } // namespace blink | 95 } // namespace blink |
| 97 | 96 |
| 98 #endif // AbstractInlineTextBox_h | 97 #endif // AbstractInlineTextBox_h |
| OLD | NEW |