Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: third_party/WebKit/Source/core/layout/line/AbstractInlineTextBox.h

Issue 2287433003: Get rid of remaining uses of AXObject::elementRect (Closed)
Patch Set: Rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 TopToBottom, 73 TopToBottom,
74 BottomToTop 74 BottomToTop
75 }; 75 };
76 76
77 ~AbstractInlineTextBox(); 77 ~AbstractInlineTextBox();
78 78
79 LineLayoutText getLineLayoutItem() const { return m_lineLayoutItem; } 79 LineLayoutText getLineLayoutItem() const { return m_lineLayoutItem; }
80 80
81 PassRefPtr<AbstractInlineTextBox> nextInlineTextBox() const; 81 PassRefPtr<AbstractInlineTextBox> nextInlineTextBox() const;
82 LayoutRect localBounds() const; 82 LayoutRect localBounds() const;
83 LayoutRect absoluteBounds() const;
84 unsigned len() const; 83 unsigned len() const;
85 Direction getDirection() const; 84 Direction getDirection() const;
86 void characterWidths(Vector<float>&) const; 85 void characterWidths(Vector<float>&) const;
87 void wordBoundaries(Vector<WordBoundaries>&) const; 86 void wordBoundaries(Vector<WordBoundaries>&) const;
88 String text() const; 87 String text() const;
89 bool isFirst() const; 88 bool isFirst() const;
90 bool isLast() const; 89 bool isLast() const;
91 PassRefPtr<AbstractInlineTextBox> nextOnLine() const; 90 PassRefPtr<AbstractInlineTextBox> nextOnLine() const;
92 PassRefPtr<AbstractInlineTextBox> previousOnLine() const; 91 PassRefPtr<AbstractInlineTextBox> previousOnLine() const;
93 92
94 private: 93 private:
95 void detach(); 94 void detach();
96 95
97 // Weak ptrs; these are nulled when InlineTextBox::destroy() calls AbstractI nlineTextBox::willDestroy. 96 // Weak ptrs; these are nulled when InlineTextBox::destroy() calls AbstractI nlineTextBox::willDestroy.
98 LineLayoutText m_lineLayoutItem; 97 LineLayoutText m_lineLayoutItem;
99 InlineTextBox* m_inlineTextBox; 98 InlineTextBox* m_inlineTextBox;
100 99
101 typedef HashMap<InlineTextBox*, RefPtr<AbstractInlineTextBox>> InlineToAbstr actInlineTextBoxHashMap; 100 typedef HashMap<InlineTextBox*, RefPtr<AbstractInlineTextBox>> InlineToAbstr actInlineTextBoxHashMap;
102 static InlineToAbstractInlineTextBoxHashMap* gAbstractInlineTextBoxMap; 101 static InlineToAbstractInlineTextBoxHashMap* gAbstractInlineTextBoxMap;
103 }; 102 };
104 103
105 } // namespace blink 104 } // namespace blink
106 105
107 #endif // AbstractInlineTextBox_h 106 #endif // AbstractInlineTextBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698