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

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

Issue 17471008: Rework compositor touch hit testing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: CR feedback - accumulate LayoutRects instead of IntRects, disable when page isn't composited. Also… Created 7 years, 5 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 | « Source/core/rendering/RenderObject.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 *
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 protected: 146 protected:
147 virtual void computePreferredLogicalWidths(float leadWidth); 147 virtual void computePreferredLogicalWidths(float leadWidth);
148 virtual void willBeDestroyed(); 148 virtual void willBeDestroyed();
149 149
150 virtual void styleWillChange(StyleDifference, const RenderStyle*) OVERRIDE F INAL { } 150 virtual void styleWillChange(StyleDifference, const RenderStyle*) OVERRIDE F INAL { }
151 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 151 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
152 152
153 virtual void setTextInternal(PassRefPtr<StringImpl>); 153 virtual void setTextInternal(PassRefPtr<StringImpl>);
154 virtual UChar previousCharacter() const; 154 virtual UChar previousCharacter() const;
155
156 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentLayer, const LayoutPoint& layerOffset) const OVERRIDE;
155 157
156 virtual InlineTextBox* createTextBox(); // Subclassed by SVG. 158 virtual InlineTextBox* createTextBox(); // Subclassed by SVG.
157 159
158 private: 160 private:
159 void computePreferredLogicalWidths(float leadWidth, HashSet<const SimpleFont Data*>& fallbackFonts, GlyphOverflow&); 161 void computePreferredLogicalWidths(float leadWidth, HashSet<const SimpleFont Data*>& fallbackFonts, GlyphOverflow&);
160 162
161 bool computeCanUseSimpleFontCodePath() const; 163 bool computeCanUseSimpleFontCodePath() const;
162 164
163 // Make length() private so that callers that have a RenderText* 165 // Make length() private so that callers that have a RenderText*
164 // will use the more efficient textLength() instead, while 166 // will use the more efficient textLength() instead, while
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 inline void RenderText::checkConsistency() const 240 inline void RenderText::checkConsistency() const
239 { 241 {
240 } 242 }
241 #endif 243 #endif
242 244
243 void applyTextTransform(const RenderStyle*, String&, UChar); 245 void applyTextTransform(const RenderStyle*, String&, UChar);
244 246
245 } // namespace WebCore 247 } // namespace WebCore
246 248
247 #endif // RenderText_h 249 #endif // RenderText_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderObject.cpp ('k') | Source/core/rendering/RenderText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698