Changeset 31426 in webkit
- Timestamp:
- Mar 28, 2008 8:07:21 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r31413 r31426 1 2008-03-28 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Dave Hyatt. 4 5 - pixel test for a percentage background position regression from r31389 6 7 * fast/backgrounds/background-position-1.html: Added. 8 * platform/mac/fast/backgrounds/background-position-1-expected.checksum: Added. 9 * platform/mac/fast/backgrounds/background-position-1-expected.png: Added. 10 * platform/mac/fast/backgrounds/background-position-1-expected.txt: Added. 11 1 12 2008-03-28 Stephanie Lewis <slewis@apple.com> 2 13 -
trunk/WebCore/ChangeLog
r31424 r31426 1 2008-03-28 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Dave Hyatt. 4 5 - fix a percentage background position regression from r31389 6 7 Test: fast/backgrounds/background-position-1.html 8 9 * rendering/Length.h: 10 (WebCore::Length::calcValue): Divide by 100. 11 (WebCore::Length::calcMinValue): Ditto. 12 1 13 2008-03-28 David Hyatt <hyatt@apple.com> 2 14 -
trunk/WebCore/rendering/Length.h
r31392 r31426 112 112 case Percent: 113 113 if (roundPercentages) 114 return static_cast<int>(round(maxValue * percent() ));114 return static_cast<int>(round(maxValue * percent() / 100.0)); 115 115 return maxValue * rawValue() / (100 * percentScaleFactor); 116 116 case Auto: … … 128 128 case Percent: 129 129 if (roundPercentages) 130 return static_cast<int>(round(maxValue * percent() ));130 return static_cast<int>(round(maxValue * percent() / 100.0)); 131 131 return maxValue * rawValue() / (100 * percentScaleFactor); 132 132 case Auto:
Note: See TracChangeset
for help on using the changeset viewer.