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

Side by Side Diff: Source/core/rendering/InlineBox.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/EllipsisBox.h ('k') | Source/core/rendering/InlineBox.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, 2009, 2010, 2011 Apple Inc. All r ights reserved. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All r ights 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 int caretLeftmostOffset() const { return isLeftToRightDirection() ? caretMin Offset() : caretMaxOffset(); } 255 int caretLeftmostOffset() const { return isLeftToRightDirection() ? caretMin Offset() : caretMaxOffset(); }
256 int caretRightmostOffset() const { return isLeftToRightDirection() ? caretMa xOffset() : caretMinOffset(); } 256 int caretRightmostOffset() const { return isLeftToRightDirection() ? caretMa xOffset() : caretMinOffset(); }
257 257
258 virtual void clearTruncation() { } 258 virtual void clearTruncation() { }
259 259
260 bool isDirty() const { return m_bitfields.dirty(); } 260 bool isDirty() const { return m_bitfields.dirty(); }
261 virtual void markDirty() { m_bitfields.setDirty(true); } 261 virtual void markDirty() { m_bitfields.setDirty(true); }
262 262
263 virtual void dirtyLineBoxes(); 263 virtual void dirtyLineBoxes();
264 264
265 virtual RenderObject::SelectionState selectionState(); 265 virtual RenderObject::SelectionState selectionState() const;
266 266
267 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWid th) const; 267 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWid th) const;
268 // visibleLeftEdge, visibleRightEdge are in the parent's coordinate system. 268 // visibleLeftEdge, visibleRightEdge are in the parent's coordinate system.
269 virtual float placeEllipsisBox(bool ltr, float visibleLeftEdge, float visibl eRightEdge, float ellipsisWidth, float &truncatedWidth, bool&); 269 virtual float placeEllipsisBox(bool ltr, float visibleLeftEdge, float visibl eRightEdge, float ellipsisWidth, float &truncatedWidth, bool&);
270 270
271 #if ENABLE(ASSERT) 271 #if ENABLE(ASSERT)
272 void setHasBadParent(); 272 void setHasBadParent();
273 #endif 273 #endif
274 274
275 int expansion() const { return m_bitfields.expansion(); } 275 int expansion() const { return m_bitfields.expansion(); }
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 435
436 } // namespace blink 436 } // namespace blink
437 437
438 #ifndef NDEBUG 438 #ifndef NDEBUG
439 // Outside the WebCore namespace for ease of invocation from gdb. 439 // Outside the WebCore namespace for ease of invocation from gdb.
440 void showTree(const blink::InlineBox*); 440 void showTree(const blink::InlineBox*);
441 void showLineTree(const blink::InlineBox*); 441 void showLineTree(const blink::InlineBox*);
442 #endif 442 #endif
443 443
444 #endif // InlineBox_h 444 #endif // InlineBox_h
OLDNEW
« no previous file with comments | « Source/core/rendering/EllipsisBox.h ('k') | Source/core/rendering/InlineBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698