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) 2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) |
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) |
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
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 2244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2255 // Don't let table cells squeeze percent-height replaced
elements | 2255 // Don't let table cells squeeze percent-height replaced
elements |
2256 // <http://bugs.webkit.org/show_bug.cgi?id=15359> | 2256 // <http://bugs.webkit.org/show_bug.cgi?id=15359> |
2257 availableHeight = max(availableHeight, intrinsicLogicalH
eight()); | 2257 availableHeight = max(availableHeight, intrinsicLogicalH
eight()); |
2258 return valueForLength(logicalHeight, availableHeight - b
orderAndPaddingLogicalHeight()); | 2258 return valueForLength(logicalHeight, availableHeight - b
orderAndPaddingLogicalHeight()); |
2259 } | 2259 } |
2260 toRenderBlock(cb)->addPercentHeightDescendant(const_cast<Ren
derBox*>(this)); | 2260 toRenderBlock(cb)->addPercentHeightDescendant(const_cast<Ren
derBox*>(this)); |
2261 cb = cb->containingBlock(); | 2261 cb = cb->containingBlock(); |
2262 } | 2262 } |
2263 } | 2263 } |
2264 availableHeight = computeContentBoxLogicalHeight(valueForLength(logi
calHeight, availableHeight)); | 2264 availableHeight = computeContentBoxLogicalHeight(valueForLength(logi
calHeight, availableHeight)); |
2265 if (cb->style()->logicalHeight().isFixed()) | 2265 if (cb->isBox() && cb->style()->logicalHeight().isFixed()) |
2266 availableHeight = max<LayoutUnit>(0, availableHeight - toRenderB
ox(cb)->scrollbarLogicalHeight()); | 2266 availableHeight = max<LayoutUnit>(0, availableHeight - toRenderB
ox(cb)->scrollbarLogicalHeight()); |
2267 return availableHeight; | 2267 return availableHeight; |
2268 } | 2268 } |
2269 case ViewportPercentageWidth: | 2269 case ViewportPercentageWidth: |
2270 case ViewportPercentageHeight: | 2270 case ViewportPercentageHeight: |
2271 case ViewportPercentageMin: | 2271 case ViewportPercentageMin: |
2272 return computeContentBoxLogicalHeight(valueForLength(logicalHeight,
0, view())); | 2272 return computeContentBoxLogicalHeight(valueForLength(logicalHeight,
0, view())); |
2273 default: | 2273 default: |
2274 return intrinsicLogicalHeight(); | 2274 return intrinsicLogicalHeight(); |
2275 } | 2275 } |
(...skipping 1730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4006 } | 4006 } |
4007 | 4007 |
4008 if (didSplitParentAnonymousBoxes) | 4008 if (didSplitParentAnonymousBoxes) |
4009 markBoxForRelayoutAfterSplit(this); | 4009 markBoxForRelayoutAfterSplit(this); |
4010 | 4010 |
4011 ASSERT(beforeChild->parent() == this); | 4011 ASSERT(beforeChild->parent() == this); |
4012 return beforeChild; | 4012 return beforeChild; |
4013 } | 4013 } |
4014 | 4014 |
4015 } // namespace WebCore | 4015 } // namespace WebCore |
OLD | NEW |