Changeset 116331 in webkit
- Timestamp:
- May 7, 2012 11:41:08 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r116328 r116331 1 2012-05-07 Pravin D <pravind.2k4@gmail.com> 2 3 Wrong positioning due to wrong width calculation wrt width:0 4 https://bugs.webkit.org/show_bug.cgi?id=50135 5 6 Reviewed by Eric Seidel. 7 8 * fast/block/block-parent-with-zero-width-child-expected.txt: Added. 9 * fast/block/block-parent-with-zero-width-child.html: Added. 10 1 11 2012-05-07 Dominik Röttsches <dominik.rottsches@linux.intel.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r116330 r116331 1 2012-05-07 Pravin D <pravind.2k4@gmail.com> 2 3 Wrong positioning due to wrong width calculation wrt width:0 4 https://bugs.webkit.org/show_bug.cgi?id=50135 5 6 Reviewed by Eric Seidel. 7 8 Test: fast/block/block-parent-with-zero-width-child.html 9 10 * rendering/RenderBlock.cpp: 11 (WebCore::RenderBlock::computePreferredLogicalWidths): 12 When width is fixed, the specified width must be taken, provided the value is positive. 13 Width=0 case was being ignored. 14 1 15 2012-05-07 Noel Gordon <noel.gordon@gmail.com> 2 16 -
trunk/Source/WebCore/rendering/RenderBlock.cpp
r116325 r116331 5161 5161 5162 5162 RenderStyle* styleToUse = style(); 5163 if (!isTableCell() && styleToUse->logicalWidth().isFixed() && styleToUse->logicalWidth().value() > 0 && style()->marqueeBehavior() != MALTERNATE)5163 if (!isTableCell() && styleToUse->logicalWidth().isFixed() && styleToUse->logicalWidth().value() >= 0 && style()->marqueeBehavior() != MALTERNATE) 5164 5164 m_minPreferredLogicalWidth = m_maxPreferredLogicalWidth = computeContentBoxLogicalWidth(styleToUse->logicalWidth().value()); 5165 5165 else {
Note: See TracChangeset
for help on using the changeset viewer.