OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |