| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 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 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1440 } | 1440 } |
| 1441 | 1441 |
| 1442 InlineBox* InlineFlowBox::lastLeafChild() const | 1442 InlineBox* InlineFlowBox::lastLeafChild() const |
| 1443 { | 1443 { |
| 1444 InlineBox* leaf = 0; | 1444 InlineBox* leaf = 0; |
| 1445 for (InlineBox* child = lastChild(); child && !leaf; child = child->prevOnLi
ne()) | 1445 for (InlineBox* child = lastChild(); child && !leaf; child = child->prevOnLi
ne()) |
| 1446 leaf = child->isLeaf() ? child : toInlineFlowBox(child)->lastLeafChild()
; | 1446 leaf = child->isLeaf() ? child : toInlineFlowBox(child)->lastLeafChild()
; |
| 1447 return leaf; | 1447 return leaf; |
| 1448 } | 1448 } |
| 1449 | 1449 |
| 1450 RenderObject::SelectionState InlineFlowBox::selectionState() | 1450 RenderObject::SelectionState InlineFlowBox::selectionState() const |
| 1451 { | 1451 { |
| 1452 return RenderObject::SelectionNone; | 1452 return RenderObject::SelectionNone; |
| 1453 } | 1453 } |
| 1454 | 1454 |
| 1455 bool InlineFlowBox::canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsis
Width) const | 1455 bool InlineFlowBox::canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsis
Width) const |
| 1456 { | 1456 { |
| 1457 for (InlineBox *box = firstChild(); box; box = box->nextOnLine()) { | 1457 for (InlineBox *box = firstChild(); box; box = box->nextOnLine()) { |
| 1458 if (!box->canAccommodateEllipsis(ltr, blockEdge, ellipsisWidth)) | 1458 if (!box->canAccommodateEllipsis(ltr, blockEdge, ellipsisWidth)) |
| 1459 return false; | 1459 return false; |
| 1460 } | 1460 } |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1672 ASSERT(child->prevOnLine() == prev); | 1672 ASSERT(child->prevOnLine() == prev); |
| 1673 prev = child; | 1673 prev = child; |
| 1674 } | 1674 } |
| 1675 ASSERT(prev == m_lastChild); | 1675 ASSERT(prev == m_lastChild); |
| 1676 #endif | 1676 #endif |
| 1677 } | 1677 } |
| 1678 | 1678 |
| 1679 #endif | 1679 #endif |
| 1680 | 1680 |
| 1681 } // namespace blink | 1681 } // namespace blink |
| OLD | NEW |