| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. |
| 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 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 1280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1291 | 1291 |
| 1292 if (isHTMLMarqueeElement(node()) && toHTMLMarqueeElement(node())->isHorizont
al()) | 1292 if (isHTMLMarqueeElement(node()) && toHTMLMarqueeElement(node())->isHorizont
al()) |
| 1293 minLogicalWidth = LayoutUnit(); | 1293 minLogicalWidth = LayoutUnit(); |
| 1294 | 1294 |
| 1295 if (isTableCell()) { | 1295 if (isTableCell()) { |
| 1296 Length tableCellWidth = toLayoutTableCell(this)->styleOrColLogicalWidth(
); | 1296 Length tableCellWidth = toLayoutTableCell(this)->styleOrColLogicalWidth(
); |
| 1297 if (tableCellWidth.isFixed() && tableCellWidth.value() > 0) | 1297 if (tableCellWidth.isFixed() && tableCellWidth.value() > 0) |
| 1298 maxLogicalWidth = std::max(minLogicalWidth, adjustContentBoxLogicalW
idthForBoxSizing(LayoutUnit(tableCellWidth.value()))); | 1298 maxLogicalWidth = std::max(minLogicalWidth, adjustContentBoxLogicalW
idthForBoxSizing(LayoutUnit(tableCellWidth.value()))); |
| 1299 } | 1299 } |
| 1300 | 1300 |
| 1301 int scrollbarWidth = intrinsicScrollbarLogicalWidth(); | 1301 int scrollbarWidth = scrollbarLogicalWidth(); |
| 1302 maxLogicalWidth += scrollbarWidth; | 1302 maxLogicalWidth += scrollbarWidth; |
| 1303 minLogicalWidth += scrollbarWidth; | 1303 minLogicalWidth += scrollbarWidth; |
| 1304 } | 1304 } |
| 1305 | 1305 |
| 1306 void LayoutBlock::computePreferredLogicalWidths() | 1306 void LayoutBlock::computePreferredLogicalWidths() |
| 1307 { | 1307 { |
| 1308 ASSERT(preferredLogicalWidthsDirty()); | 1308 ASSERT(preferredLogicalWidthsDirty()); |
| 1309 | 1309 |
| 1310 m_minPreferredLogicalWidth = LayoutUnit(); | 1310 m_minPreferredLogicalWidth = LayoutUnit(); |
| 1311 m_maxPreferredLogicalWidth = LayoutUnit(); | 1311 m_maxPreferredLogicalWidth = LayoutUnit(); |
| (...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1915 for (TrackedLayoutBoxListHashSet::const_iterator it = positionedDescenda
ntSet->begin(); it != end; ++it) { | 1915 for (TrackedLayoutBoxListHashSet::const_iterator it = positionedDescenda
ntSet->begin(); it != end; ++it) { |
| 1916 LayoutBox* currBox = *it; | 1916 LayoutBox* currBox = *it; |
| 1917 ASSERT(!currBox->needsLayout()); | 1917 ASSERT(!currBox->needsLayout()); |
| 1918 } | 1918 } |
| 1919 } | 1919 } |
| 1920 } | 1920 } |
| 1921 | 1921 |
| 1922 #endif | 1922 #endif |
| 1923 | 1923 |
| 1924 } // namespace blink | 1924 } // namespace blink |
| OLD | NEW |