OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the layout object implementation for KHTML. | 2 * This file is part of the layout object implementation for KHTML. |
3 * | 3 * |
4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 4 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
5 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 5 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
6 * Copyright (C) 2003 Apple Computer, Inc. | 6 * Copyright (C) 2003 Apple Computer, Inc. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1177 lastVisibleLine->x() + lastVisibleLine->logicalWidth(), | 1177 lastVisibleLine->x() + lastVisibleLine->logicalWidth(), |
1178 LayoutUnit(totalWidth))) | 1178 LayoutUnit(totalWidth))) |
1179 continue; | 1179 continue; |
1180 | 1180 |
1181 // Let the truncation code kick in. | 1181 // Let the truncation code kick in. |
1182 // FIXME: the text alignment should be recomputed after the width changes | 1182 // FIXME: the text alignment should be recomputed after the width changes |
1183 // due to truncation. | 1183 // due to truncation. |
1184 LayoutUnit blockLeftEdge = destBlock.logicalLeftOffsetForLine( | 1184 LayoutUnit blockLeftEdge = destBlock.logicalLeftOffsetForLine( |
1185 lastVisibleLine->y(), DoNotIndentText); | 1185 lastVisibleLine->y(), DoNotIndentText); |
1186 lastVisibleLine->placeEllipsis(ellipsisStr, leftToRight, blockLeftEdge, | 1186 lastVisibleLine->placeEllipsis(ellipsisStr, leftToRight, blockLeftEdge, |
1187 blockRightEdge, LayoutUnit(totalWidth)); | 1187 blockRightEdge, LayoutUnit(totalWidth), |
| 1188 LayoutUnit(), false); |
1188 destBlock.setHasMarkupTruncation(true); | 1189 destBlock.setHasMarkupTruncation(true); |
1189 } | 1190 } |
1190 } | 1191 } |
1191 | 1192 |
1192 void LayoutDeprecatedFlexibleBox::clearLineClamp() { | 1193 void LayoutDeprecatedFlexibleBox::clearLineClamp() { |
1193 FlexBoxIterator iterator(this); | 1194 FlexBoxIterator iterator(this); |
1194 for (LayoutBox* child = iterator.first(); child; child = iterator.next()) { | 1195 for (LayoutBox* child = iterator.first(); child; child = iterator.next()) { |
1195 if (childDoesNotAffectWidthOrFlexing(child)) | 1196 if (childDoesNotAffectWidthOrFlexing(child)) |
1196 continue; | 1197 continue; |
1197 | 1198 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1265 if (minHeight.isFixed() || minHeight.isAuto()) { | 1266 if (minHeight.isFixed() || minHeight.isAuto()) { |
1266 LayoutUnit minHeight(child->style()->minHeight().value()); | 1267 LayoutUnit minHeight(child->style()->minHeight().value()); |
1267 LayoutUnit height = contentHeightForChild(child); | 1268 LayoutUnit height = contentHeightForChild(child); |
1268 LayoutUnit allowedShrinkage = (minHeight - height).clampPositiveToZero(); | 1269 LayoutUnit allowedShrinkage = (minHeight - height).clampPositiveToZero(); |
1269 return allowedShrinkage; | 1270 return allowedShrinkage; |
1270 } | 1271 } |
1271 return LayoutUnit(); | 1272 return LayoutUnit(); |
1272 } | 1273 } |
1273 | 1274 |
1274 } // namespace blink | 1275 } // namespace blink |
OLD | NEW |