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

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

Issue 566973002: Constify the rendering/ selection code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/InlineBox.cpp ('k') | Source/core/rendering/InlineFlowBox.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) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 void flipLinesInBlockDirection(LayoutUnit lineTop, LayoutUnit lineBottom); 194 void flipLinesInBlockDirection(LayoutUnit lineTop, LayoutUnit lineBottom);
195 bool requiresIdeographicBaseline(const GlyphOverflowAndFallbackFontsMap&) co nst; 195 bool requiresIdeographicBaseline(const GlyphOverflowAndFallbackFontsMap&) co nst;
196 196
197 LayoutUnit computeOverAnnotationAdjustment(LayoutUnit allowedPosition) const ; 197 LayoutUnit computeOverAnnotationAdjustment(LayoutUnit allowedPosition) const ;
198 LayoutUnit computeUnderAnnotationAdjustment(LayoutUnit allowedPosition) cons t; 198 LayoutUnit computeUnderAnnotationAdjustment(LayoutUnit allowedPosition) cons t;
199 199
200 void computeOverflow(LayoutUnit lineTop, LayoutUnit lineBottom, GlyphOverflo wAndFallbackFontsMap&); 200 void computeOverflow(LayoutUnit lineTop, LayoutUnit lineBottom, GlyphOverflo wAndFallbackFontsMap&);
201 201
202 void removeChild(InlineBox* child, MarkLineBoxes); 202 void removeChild(InlineBox* child, MarkLineBoxes);
203 203
204 virtual RenderObject::SelectionState selectionState() OVERRIDE; 204 virtual RenderObject::SelectionState selectionState() const OVERRIDE;
205 205
206 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWid th) const OVERRIDE FINAL; 206 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWid th) const OVERRIDE FINAL;
207 virtual float placeEllipsisBox(bool ltr, float blockLeftEdge, float blockRig htEdge, float ellipsisWidth, float &truncatedWidth, bool&) OVERRIDE; 207 virtual float placeEllipsisBox(bool ltr, float blockLeftEdge, float blockRig htEdge, float ellipsisWidth, float &truncatedWidth, bool&) OVERRIDE;
208 208
209 bool hasTextChildren() const { return m_hasTextChildren; } 209 bool hasTextChildren() const { return m_hasTextChildren; }
210 bool hasTextDescendants() const { return m_hasTextDescendants; } 210 bool hasTextDescendants() const { return m_hasTextDescendants; }
211 void setHasTextChildren() { m_hasTextChildren = true; setHasTextDescendants( ); } 211 void setHasTextChildren() { m_hasTextChildren = true; setHasTextDescendants( ); }
212 void setHasTextDescendants() { m_hasTextDescendants = true; } 212 void setHasTextDescendants() { m_hasTextDescendants = true; }
213 213
214 void checkConsistency() const; 214 void checkConsistency() const;
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 } 376 }
377 377
378 } // namespace blink 378 } // namespace blink
379 379
380 #ifndef NDEBUG 380 #ifndef NDEBUG
381 // Outside the WebCore namespace for ease of invocation from gdb. 381 // Outside the WebCore namespace for ease of invocation from gdb.
382 void showTree(const blink::InlineFlowBox*); 382 void showTree(const blink::InlineFlowBox*);
383 #endif 383 #endif
384 384
385 #endif // InlineFlowBox_h 385 #endif // InlineFlowBox_h
OLDNEW
« no previous file with comments | « Source/core/rendering/InlineBox.cpp ('k') | Source/core/rendering/InlineFlowBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698