Changeset 102191 in webkit
- Timestamp:
- Dec 6, 2011, 4:41:42 PM (15 years ago)
- Location:
- branches/safari-534.53-branch
- Files:
-
- 8 edited
- 6 copied
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/borders/border-image-massive-scale.html (copied) (copied from trunk/LayoutTests/fast/borders/border-image-massive-scale.html )
-
LayoutTests/fast/borders/border-image-scaled-gradient.html (copied) (copied from trunk/LayoutTests/fast/borders/border-image-scaled-gradient.html )
-
LayoutTests/platform/mac/fast/borders/border-image-massive-scale-expected.png (copied) (copied from trunk/LayoutTests/platform/mac/fast/borders/border-image-massive-scale-expected.png )
-
LayoutTests/platform/mac/fast/borders/border-image-massive-scale-expected.txt (copied) (copied from trunk/LayoutTests/platform/mac/fast/borders/border-image-massive-scale-expected.txt )
-
LayoutTests/platform/mac/fast/borders/border-image-outset-expected.png (modified) ( previous)
-
LayoutTests/platform/mac/fast/borders/border-image-outset-in-shorthand-expected.png (modified) ( previous)
-
LayoutTests/platform/mac/fast/borders/border-image-outset-split-inline-expected.png (modified) ( previous)
-
LayoutTests/platform/mac/fast/borders/border-image-outset-split-inline-vertical-lr-expected.png (modified) ( previous)
-
LayoutTests/platform/mac/fast/borders/border-image-scaled-gradient-expected.png (copied) (copied from trunk/LayoutTests/platform/mac/fast/borders/border-image-scaled-gradient-expected.png )
-
LayoutTests/platform/mac/fast/borders/border-image-scaled-gradient-expected.txt (copied) (copied from trunk/LayoutTests/platform/mac/fast/borders/border-image-scaled-gradient-expected.txt )
-
LayoutTests/platform/mac/fast/borders/border-image-side-reduction-expected.png (modified) ( previous)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/graphics/Image.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-534.53-branch/LayoutTests/ChangeLog
r102189 r102191 1 2011-12-06 Lucas Forschler <lforschler@apple.com> 2 3 Merge 95129 4 5 2011-09-14 David Hyatt <hyatt@apple.com> 6 7 https://bugs.webkit.org/show_bug.cgi?id=52736 8 9 Tiles were not being properly centered within border image sides for the "repeat" 10 keyword. This patch fixes the buggy math behind the pattern tiling to actually get 11 the initial phases correct. 12 13 Reviewed by Sam Weinig. 14 15 * fast/borders/border-image-massive-scale.html: Added. 16 * fast/borders/border-image-scaled-gradient.html: Added. 17 * platform/mac/fast/borders/border-image-massive-scale-expected.png: Added. 18 * platform/mac/fast/borders/border-image-massive-scale-expected.txt: Added. 19 * platform/mac/fast/borders/border-image-outset-expected.png: 20 * platform/mac/fast/borders/border-image-outset-in-shorthand-expected.png: 21 * platform/mac/fast/borders/border-image-outset-split-inline-expected.png: 22 * platform/mac/fast/borders/border-image-outset-split-inline-vertical-lr-expected.png: 23 * platform/mac/fast/borders/border-image-scaled-gradient-expected.png: Added. 24 * platform/mac/fast/borders/border-image-scaled-gradient-expected.txt: Added. 25 * platform/mac/fast/borders/border-image-side-reduction-expected.png: 26 1 27 2011-12-06 Lucas Forschler <lforschler@apple.com> 2 28 -
branches/safari-534.53-branch/Source/WebCore/ChangeLog
r102189 r102191 1 2011-12-06 Lucas Forschler <lforschler@apple.com> 2 3 Merge 95129 4 5 2011-09-14 David Hyatt <hyatt@apple.com> 6 7 https://bugs.webkit.org/show_bug.cgi?id=52736 8 9 Tiles were not being properly centered within border image sides for the "repeat" 10 keyword. This patch fixes the buggy math behind the pattern tiling to actually get 11 the initial phases correct. 12 13 Reviewed by Sam Weinig. 14 15 Added new tests in fast/borders and updated broken existing tests. 16 17 * platform/graphics/Image.cpp: 18 (WebCore::Image::drawTiled): 19 1 20 2011-12-06 Lucas Forschler <lforschler@apple.com> 2 21 -
branches/safari-534.53-branch/Source/WebCore/platform/graphics/Image.cpp
r102189 r102191 153 153 float hPhase = tileScaleFactor.width() * srcRect.x(); 154 154 float vPhase = tileScaleFactor.height() * srcRect.y(); 155 float scaledTileWidth = tileScaleFactor.width() * srcRect.width(); 156 float scaledTileHeight = tileScaleFactor.height() * srcRect.height(); 155 157 if (hRule == Image::RepeatTile) 156 hPhase -= fmodf(dstRect.width(), tileScaleFactor.width() * srcRect.width()) / 2.0f;158 hPhase -= (dstRect.width() - scaledTileWidth) / 2; 157 159 if (vRule == Image::RepeatTile) 158 vPhase -= fmodf(dstRect.height(), tileScaleFactor.height() * srcRect.height()) / 2.0f;160 vPhase -= (dstRect.height() - scaledTileHeight) / 2; 159 161 FloatPoint patternPhase(dstRect.x() - hPhase, dstRect.y() - vPhase); 160 162
Note:
See TracChangeset
for help on using the changeset viewer.