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

Side by Side Diff: Source/core/rendering/AbstractInlineTextBox.h

Issue 620753006: Rendering API cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 6 years, 2 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
« no previous file with comments | « no previous file | Source/core/rendering/AbstractInlineTextBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/AbstractInlineTextBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698