| 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 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1076 } | 1076 } | 
| 1077 | 1077 | 
| 1078 InlineBox* InlineFlowBox::lastLeafChild() const | 1078 InlineBox* InlineFlowBox::lastLeafChild() const | 
| 1079 { | 1079 { | 
| 1080     InlineBox* leaf = nullptr; | 1080     InlineBox* leaf = nullptr; | 
| 1081     for (InlineBox* child = lastChild(); child && !leaf; child = child->prevOnLi
      ne()) | 1081     for (InlineBox* child = lastChild(); child && !leaf; child = child->prevOnLi
      ne()) | 
| 1082         leaf = child->isLeaf() ? child : toInlineFlowBox(child)->lastLeafChild()
      ; | 1082         leaf = child->isLeaf() ? child : toInlineFlowBox(child)->lastLeafChild()
      ; | 
| 1083     return leaf; | 1083     return leaf; | 
| 1084 } | 1084 } | 
| 1085 | 1085 | 
| 1086 LayoutObject::SelectionState InlineFlowBox::selectionState() const | 1086 SelectionState InlineFlowBox::selectionState() const | 
| 1087 { | 1087 { | 
| 1088     return LayoutObject::SelectionNone; | 1088     return SelectionNone; | 
| 1089 } | 1089 } | 
| 1090 | 1090 | 
| 1091 bool InlineFlowBox::canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsis
      Width) const | 1091 bool InlineFlowBox::canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsis
      Width) const | 
| 1092 { | 1092 { | 
| 1093     for (InlineBox* box = firstChild(); box; box = box->nextOnLine()) { | 1093     for (InlineBox* box = firstChild(); box; box = box->nextOnLine()) { | 
| 1094         if (!box->canAccommodateEllipsis(ltr, blockEdge, ellipsisWidth)) | 1094         if (!box->canAccommodateEllipsis(ltr, blockEdge, ellipsisWidth)) | 
| 1095             return false; | 1095             return false; | 
| 1096     } | 1096     } | 
| 1097     return true; | 1097     return true; | 
| 1098 } | 1098 } | 
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1308         ASSERT(child->prevOnLine() == prev); | 1308         ASSERT(child->prevOnLine() == prev); | 
| 1309         prev = child; | 1309         prev = child; | 
| 1310     } | 1310     } | 
| 1311     ASSERT(prev == m_lastChild); | 1311     ASSERT(prev == m_lastChild); | 
| 1312 #endif | 1312 #endif | 
| 1313 } | 1313 } | 
| 1314 | 1314 | 
| 1315 #endif | 1315 #endif | 
| 1316 | 1316 | 
| 1317 } // namespace blink | 1317 } // namespace blink | 
| OLD | NEW | 
|---|