Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBlock.cpp

Issue 1980103002: Include auto vertical scrollbar in intrinsicScrollbarLogicalWidth. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Restore list box height calculation, fix scrollbar width factor Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 1271
1272 if (isHTMLMarqueeElement(node()) && toHTMLMarqueeElement(node())->isHorizont al()) 1272 if (isHTMLMarqueeElement(node()) && toHTMLMarqueeElement(node())->isHorizont al())
1273 minLogicalWidth = LayoutUnit(); 1273 minLogicalWidth = LayoutUnit();
1274 1274
1275 if (isTableCell()) { 1275 if (isTableCell()) {
1276 Length tableCellWidth = toLayoutTableCell(this)->styleOrColLogicalWidth( ); 1276 Length tableCellWidth = toLayoutTableCell(this)->styleOrColLogicalWidth( );
1277 if (tableCellWidth.isFixed() && tableCellWidth.value() > 0) 1277 if (tableCellWidth.isFixed() && tableCellWidth.value() > 0)
1278 maxLogicalWidth = std::max(minLogicalWidth, adjustContentBoxLogicalW idthForBoxSizing(LayoutUnit(tableCellWidth.value()))); 1278 maxLogicalWidth = std::max(minLogicalWidth, adjustContentBoxLogicalW idthForBoxSizing(LayoutUnit(tableCellWidth.value())));
1279 } 1279 }
1280 1280
1281 int scrollbarWidth = intrinsicScrollbarLogicalWidth(); 1281 int scrollbarWidth = scrollbarLogicalWidth();
1282 maxLogicalWidth += scrollbarWidth; 1282 maxLogicalWidth += scrollbarWidth;
1283 minLogicalWidth += scrollbarWidth; 1283 minLogicalWidth += scrollbarWidth;
1284 } 1284 }
1285 1285
1286 void LayoutBlock::computePreferredLogicalWidths() 1286 void LayoutBlock::computePreferredLogicalWidths()
1287 { 1287 {
1288 ASSERT(preferredLogicalWidthsDirty()); 1288 ASSERT(preferredLogicalWidthsDirty());
1289 1289
1290 m_minPreferredLogicalWidth = LayoutUnit(); 1290 m_minPreferredLogicalWidth = LayoutUnit();
1291 m_maxPreferredLogicalWidth = LayoutUnit(); 1291 m_maxPreferredLogicalWidth = LayoutUnit();
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
1895 for (TrackedLayoutBoxListHashSet::const_iterator it = positionedDescenda ntSet->begin(); it != end; ++it) { 1895 for (TrackedLayoutBoxListHashSet::const_iterator it = positionedDescenda ntSet->begin(); it != end; ++it) {
1896 LayoutBox* currBox = *it; 1896 LayoutBox* currBox = *it;
1897 ASSERT(!currBox->needsLayout()); 1897 ASSERT(!currBox->needsLayout());
1898 } 1898 }
1899 } 1899 }
1900 } 1900 }
1901 1901
1902 #endif 1902 #endif
1903 1903
1904 } // namespace blink 1904 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698