Changeset 170646 in webkit
- Timestamp:
- Jul 1, 2014, 10:25:10 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/backgrounds/background-image-size-double-rounding-expected.html (added)
-
LayoutTests/fast/backgrounds/background-image-size-double-rounding.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/rendering/RenderBoxModelObject.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r170619 r170646 1 2014-07-01 Zalan Bujtas <zalan@apple.com> 2 3 Subpixel rendering: Pixel crack in breadcrumbs at devforums.apple.com. 4 https://bugs.webkit.org/show_bug.cgi?id=134491 5 6 Reviewed by Simon Fraser. 7 8 Do not early round geometry values, while computing background image position. It changes the final 9 subpixel values and that could lead to wrong snap positions. 10 pixelSnapBackgroundImageGeometryForPainting() takes care of geometry snapping. 11 12 * fast/backgrounds/background-image-size-double-rounding-expected.html: Added. 13 * fast/backgrounds/background-image-size-double-rounding.html: Added. 14 1 15 2014-06-30 Myles C. Maxfield <mmaxfield@apple.com> 2 16 -
trunk/Source/WebCore/ChangeLog
r170642 r170646 1 2014-07-01 Zalan Bujtas <zalan@apple.com> 2 3 Subpixel rendering: Pixel crack in breadcrumbs at devforums.apple.com. 4 https://bugs.webkit.org/show_bug.cgi?id=134491 5 6 Reviewed by Simon Fraser. 7 8 Do not early round geometry values, while computing background image position. It changes the final 9 subpixel values and that could lead to wrong snap positions. 10 pixelSnapBackgroundImageGeometryForPainting() takes care of geometry snapping. 11 12 Test: fast/backgrounds/background-image-size-double-rounding.html 13 14 * rendering/RenderBoxModelObject.cpp: 15 (WebCore::RenderBoxModelObject::calculateBackgroundImageGeometry): 16 1 17 2014-07-01 Pratik Solanki <psolanki@apple.com> 2 18 -
trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp
r169534 r170646 1150 1150 LayoutUnit availableHeight = positioningAreaSize.height() - geometry.tileSize().height(); 1151 1151 1152 LayoutUnit computedXPosition = minimumValueForLength(fillLayer->xPosition(), availableWidth, true);1152 LayoutUnit computedXPosition = minimumValueForLength(fillLayer->xPosition(), availableWidth, false); 1153 1153 if (backgroundRepeatX == RoundFill && positioningAreaSize.width() > 0 && fillTileSize.width() > 0) { 1154 1154 int numTiles = std::max(1, roundToInt(positioningAreaSize.width() / fillTileSize.width())); … … 1162 1162 } 1163 1163 1164 LayoutUnit computedYPosition = minimumValueForLength(fillLayer->yPosition(), availableHeight, true);1164 LayoutUnit computedYPosition = minimumValueForLength(fillLayer->yPosition(), availableHeight, false); 1165 1165 if (backgroundRepeatY == RoundFill && positioningAreaSize.height() > 0 && fillTileSize.height() > 0) { 1166 1166 int numTiles = std::max(1, roundToInt(positioningAreaSize.height() / fillTileSize.height())); … … 1182 1182 1183 1183 if (space >= 0) { 1184 computedXPosition = minimumValueForLength(Length(), availableWidth, true);1184 computedXPosition = minimumValueForLength(Length(), availableWidth, false); 1185 1185 geometry.setSpaceSize(LayoutSize(space, 0)); 1186 1186 geometry.setPhaseX(actualWidth ? actualWidth - fmodf((computedXPosition + left), actualWidth) : 0); … … 1202 1202 1203 1203 if (space >= 0) { 1204 computedYPosition = minimumValueForLength(Length(), availableHeight, true);1204 computedYPosition = minimumValueForLength(Length(), availableHeight, false); 1205 1205 geometry.setSpaceSize(LayoutSize(geometry.spaceSize().width(), space)); 1206 1206 geometry.setPhaseY(actualHeight ? actualHeight - fmodf((computedYPosition + top), actualHeight) : 0);
Note:
See TracChangeset
for help on using the changeset viewer.