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

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

Issue 23983002: Expose InlineTextBoxes in the accessibility tree. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/InlineTextBox.cpp ('k') | Source/core/rendering/RenderText.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 * (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, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
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 *
11 * This library is distributed in the hope that it will be useful, 11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details. 14 * Library General Public License for more details.
15 * 15 *
16 * You should have received a copy of the GNU Library General Public License 16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to 17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA. 19 * Boston, MA 02110-1301, USA.
20 * 20 *
21 */ 21 */
22 22
23 #ifndef RenderText_h 23 #ifndef RenderText_h
24 #define RenderText_h 24 #define RenderText_h
25 25
26 #include "core/rendering/RenderObject.h" 26 #include "core/rendering/RenderObject.h"
27 #include "wtf/Forward.h" 27 #include "wtf/Forward.h"
28 #include "wtf/PassRefPtr.h"
28 29
29 namespace WebCore { 30 namespace WebCore {
30 31
32 class AbstractInlineTextBox;
31 class InlineTextBox; 33 class InlineTextBox;
32 34
33 class RenderText : public RenderObject { 35 class RenderText : public RenderObject {
34 public: 36 public:
35 // FIXME: If the node argument is not a Text node or the string argument is 37 // FIXME: If the node argument is not a Text node or the string argument is
36 // not the content of the Text node, updating text-transform property 38 // not the content of the Text node, updating text-transform property
37 // doesn't re-transform the string. 39 // doesn't re-transform the string.
38 RenderText(Node*, PassRefPtr<StringImpl>, RenderObjectType = RenderNoneObjec tType, unsigned renderBaseObjectTypes = RenderNoneBaseObjectType); 40 RenderText(Node*, PassRefPtr<StringImpl>, RenderObjectType = RenderNoneObjec tType, unsigned renderBaseObjectTypes = RenderNoneBaseObjectType);
39 #ifndef NDEBUG 41 #ifndef NDEBUG
40 virtual ~RenderText(); 42 virtual ~RenderText();
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 137
136 void checkConsistency() const; 138 void checkConsistency() const;
137 139
138 bool isAllCollapsibleWhitespace() const; 140 bool isAllCollapsibleWhitespace() const;
139 141
140 bool canUseSimpleFontCodePath() const { return m_canUseSimpleFontCodePath; } 142 bool canUseSimpleFontCodePath() const { return m_canUseSimpleFontCodePath; }
141 bool knownToHaveNoOverflowAndNoFallbackFonts() const { return m_knownToHaveN oOverflowAndNoFallbackFonts; } 143 bool knownToHaveNoOverflowAndNoFallbackFonts() const { return m_knownToHaveN oOverflowAndNoFallbackFonts; }
142 144
143 void removeAndDestroyTextBoxes(); 145 void removeAndDestroyTextBoxes();
144 146
147 PassRefPtr<AbstractInlineTextBox> firstAbstractInlineTextBox();
148
145 protected: 149 protected:
146 virtual void computePreferredLogicalWidths(float leadWidth); 150 virtual void computePreferredLogicalWidths(float leadWidth);
147 virtual void willBeDestroyed(); 151 virtual void willBeDestroyed();
148 152
149 virtual void styleWillChange(StyleDifference, const RenderStyle*) OVERRIDE F INAL { } 153 virtual void styleWillChange(StyleDifference, const RenderStyle*) OVERRIDE F INAL { }
150 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 154 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
151 155
152 virtual void setTextInternal(PassRefPtr<StringImpl>); 156 virtual void setTextInternal(PassRefPtr<StringImpl>);
153 virtual UChar previousCharacter() const; 157 virtual UChar previousCharacter() const;
154 158
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 inline void RenderText::checkConsistency() const 243 inline void RenderText::checkConsistency() const
240 { 244 {
241 } 245 }
242 #endif 246 #endif
243 247
244 void applyTextTransform(const RenderStyle*, String&, UChar); 248 void applyTextTransform(const RenderStyle*, String&, UChar);
245 249
246 } // namespace WebCore 250 } // namespace WebCore
247 251
248 #endif // RenderText_h 252 #endif // RenderText_h
OLDNEW
« no previous file with comments | « Source/core/rendering/InlineTextBox.cpp ('k') | Source/core/rendering/RenderText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698