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

Side by Side Diff: Source/WebCore/rendering/RenderBox.cpp

Issue 10883044: Merge 125472 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « LayoutTests/fast/replaced/render-inline-cast-to-render-box-crash-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) 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
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
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
OLDNEW
« no previous file with comments | « LayoutTests/fast/replaced/render-inline-cast-to-render-box-crash-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698