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

Side by Side Diff: Source/core/rendering/InlineBox.cpp

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.h ('k') | Source/core/rendering/InlineFlowBox.h » ('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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 } 275 }
276 276
277 InlineBox* InlineBox::prevLeafChildIgnoringLineBreak() const 277 InlineBox* InlineBox::prevLeafChildIgnoringLineBreak() const
278 { 278 {
279 InlineBox* leaf = prevLeafChild(); 279 InlineBox* leaf = prevLeafChild();
280 if (leaf && leaf->isLineBreak()) 280 if (leaf && leaf->isLineBreak())
281 return 0; 281 return 0;
282 return leaf; 282 return leaf;
283 } 283 }
284 284
285 RenderObject::SelectionState InlineBox::selectionState() 285 RenderObject::SelectionState InlineBox::selectionState() const
286 { 286 {
287 return renderer().selectionState(); 287 return renderer().selectionState();
288 } 288 }
289 289
290 bool InlineBox::canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWidt h) const 290 bool InlineBox::canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWidt h) const
291 { 291 {
292 // Non-replaced elements can always accommodate an ellipsis. 292 // Non-replaced elements can always accommodate an ellipsis.
293 if (!renderer().isReplaced()) 293 if (!renderer().isReplaced())
294 return true; 294 return true;
295 295
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 b->showTreeForThis(); 361 b->showTreeForThis();
362 } 362 }
363 363
364 void showLineTree(const blink::InlineBox* b) 364 void showLineTree(const blink::InlineBox* b)
365 { 365 {
366 if (b) 366 if (b)
367 b->showLineTreeForThis(); 367 b->showLineTreeForThis();
368 } 368 }
369 369
370 #endif 370 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/InlineBox.h ('k') | Source/core/rendering/InlineFlowBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698