+2006-04-21 Beth Dakin <bdakin@apple.com>
+
+ Reviewed by Hyatt.
+
+ Moved all of the background tests into background directory, and
+ added test for http://bugzilla.opendarwin.org/show_bug.cgi?id=8495
+ REGRESSION: Sidebar on cnn.com is hosed
+
+ * fast/backgrounds/repeat: Added.
+ * fast/backgrounds/repeat/noRepeatCorrectClip-expected.checksum: Added.
+ * fast/backgrounds/repeat/noRepeatCorrectClip-expected.png: Added.
+ * fast/backgrounds/repeat/noRepeatCorrectClip-expected.txt: Added.
+ * fast/backgrounds/repeat/noRepeatCorrectClip.html: Added.
+ * fast/backgrounds/repeat/resources: Added.
+ * fast/backgrounds/repeat/resources/nav.blue.gif: Added.
+ * fast/backgrounds/size: Added.
+ * fast/backgrounds/size/backgroundSize01-expected.checksum: Added.
+ * fast/backgrounds/size/backgroundSize01-expected.png: Added.
+ * fast/backgrounds/size/backgroundSize01-expected.txt: Added.
+ * fast/backgrounds/size/backgroundSize01.html: Added.
+ * fast/backgrounds/size/backgroundSize02-expected.checksum: Added.
+ * fast/backgrounds/size/backgroundSize02-expected.png: Added.
+ * fast/backgrounds/size/backgroundSize02-expected.txt: Added.
+ * fast/backgrounds/size/backgroundSize02.html: Added.
+ * fast/backgrounds/size/backgroundSize03-expected.checksum: Added.
+ * fast/backgrounds/size/backgroundSize03-expected.png: Added.
+ * fast/backgrounds/size/backgroundSize03-expected.txt: Added.
+ * fast/backgrounds/size/backgroundSize03.html: Added.
+ * fast/backgrounds/size/backgroundSize04-expected.checksum: Added.
+ * fast/backgrounds/size/backgroundSize04-expected.png: Added.
+ * fast/backgrounds/size/backgroundSize04-expected.txt: Added.
+ * fast/backgrounds/size/backgroundSize04.html: Added.
+ * fast/backgrounds/size/backgroundSize05-expected.checksum: Added.
+ * fast/backgrounds/size/backgroundSize05-expected.png: Added.
+ * fast/backgrounds/size/backgroundSize05-expected.txt: Added.
+ * fast/backgrounds/size/backgroundSize05.html: Added.
+ * fast/backgrounds/size/backgroundSize06-expected.checksum: Added.
+ * fast/backgrounds/size/backgroundSize06-expected.png: Added.
+ * fast/backgrounds/size/backgroundSize06-expected.txt: Added.
+ * fast/backgrounds/size/backgroundSize06.html: Added.
+ * fast/backgrounds/size/backgroundSize07-expected.checksum: Added.
+ * fast/backgrounds/size/backgroundSize07-expected.png: Added.
+ * fast/backgrounds/size/backgroundSize07-expected.txt: Added.
+ * fast/backgrounds/size/backgroundSize07.html: Added.
+ * fast/backgrounds/size/backgroundSize08-expected.checksum: Added.
+ * fast/backgrounds/size/backgroundSize08-expected.png: Added.
+ * fast/backgrounds/size/backgroundSize08-expected.txt: Added.
+ * fast/backgrounds/size/backgroundSize08.html: Added.
+ * fast/backgrounds/size/backgroundSize09-expected.checksum: Added.
+ * fast/backgrounds/size/backgroundSize09-expected.png: Added.
+ * fast/backgrounds/size/backgroundSize09-expected.txt: Added.
+ * fast/backgrounds/size/backgroundSize09.html: Added.
+ * fast/backgrounds/size/backgroundSize10-expected.checksum: Added.
+ * fast/backgrounds/size/backgroundSize10-expected.png: Added.
+ * fast/backgrounds/size/backgroundSize10-expected.txt: Added.
+ * fast/backgrounds/size/backgroundSize10.html: Added.
+ * fast/backgrounds/size/backgroundSize11-expected.checksum: Added.
+ * fast/backgrounds/size/backgroundSize11-expected.png: Added.
+ * fast/backgrounds/size/backgroundSize11-expected.txt: Added.
+ * fast/backgrounds/size/backgroundSize11.html: Added.
+ * fast/backgrounds/size/backgroundSize12-expected.checksum: Added.
+ * fast/backgrounds/size/backgroundSize12-expected.png: Added.
+ * fast/backgrounds/size/backgroundSize12-expected.txt: Added.
+ * fast/backgrounds/size/backgroundSize12.html: Added.
+ * fast/backgrounds/size/backgroundSize13-expected.checksum: Added.
+ * fast/backgrounds/size/backgroundSize13-expected.png: Added.
+ * fast/backgrounds/size/backgroundSize13-expected.txt: Added.
+ * fast/backgrounds/size/backgroundSize13.html: Added.
+ * fast/backgrounds/size/backgroundSize14-expected.checksum: Added.
+ * fast/backgrounds/size/backgroundSize14-expected.png: Added.
+ * fast/backgrounds/size/backgroundSize14-expected.txt: Added.
+ * fast/backgrounds/size/backgroundSize14.html: Added.
+ * fast/backgrounds/size/backgroundSize15-expected.checksum: Added.
+ * fast/backgrounds/size/backgroundSize15-expected.png: Added.
+ * fast/backgrounds/size/backgroundSize15-expected.txt: Added.
+ * fast/backgrounds/size/backgroundSize15.html: Added.
+ * fast/backgrounds/size/backgroundSize16-expected.checksum: Added.
+ * fast/backgrounds/size/backgroundSize16-expected.png: Added.
+ * fast/backgrounds/size/backgroundSize16-expected.txt: Added.
+ * fast/backgrounds/size/backgroundSize16.html: Added.
+ * fast/backgrounds/size/resources: Added.
+ * fast/backgrounds/size/resources/bikes.bmp: Added.
+ * fast/css/backgroundSize01-expected.checksum: Removed.
+ * fast/css/backgroundSize01-expected.png: Removed.
+ * fast/css/backgroundSize01-expected.txt: Removed.
+ * fast/css/backgroundSize01.html: Removed.
+ * fast/css/backgroundSize02-expected.checksum: Removed.
+ * fast/css/backgroundSize02-expected.png: Removed.
+ * fast/css/backgroundSize02-expected.txt: Removed.
+ * fast/css/backgroundSize02.html: Removed.
+ * fast/css/backgroundSize03-expected.checksum: Removed.
+ * fast/css/backgroundSize03-expected.png: Removed.
+ * fast/css/backgroundSize03-expected.txt: Removed.
+ * fast/css/backgroundSize03.html: Removed.
+ * fast/css/backgroundSize04-expected.checksum: Removed.
+ * fast/css/backgroundSize04-expected.png: Removed.
+ * fast/css/backgroundSize04-expected.txt: Removed.
+ * fast/css/backgroundSize04.html: Removed.
+ * fast/css/backgroundSize05-expected.checksum: Removed.
+ * fast/css/backgroundSize05-expected.png: Removed.
+ * fast/css/backgroundSize05-expected.txt: Removed.
+ * fast/css/backgroundSize05.html: Removed.
+ * fast/css/backgroundSize06-expected.checksum: Removed.
+ * fast/css/backgroundSize06-expected.png: Removed.
+ * fast/css/backgroundSize06-expected.txt: Removed.
+ * fast/css/backgroundSize06.html: Removed.
+ * fast/css/backgroundSize07-expected.checksum: Removed.
+ * fast/css/backgroundSize07-expected.png: Removed.
+ * fast/css/backgroundSize07-expected.txt: Removed.
+ * fast/css/backgroundSize07.html: Removed.
+ * fast/css/backgroundSize08-expected.checksum: Removed.
+ * fast/css/backgroundSize08-expected.png: Removed.
+ * fast/css/backgroundSize08-expected.txt: Removed.
+ * fast/css/backgroundSize08.html: Removed.
+ * fast/css/backgroundSize09-expected.checksum: Removed.
+ * fast/css/backgroundSize09-expected.png: Removed.
+ * fast/css/backgroundSize09-expected.txt: Removed.
+ * fast/css/backgroundSize09.html: Removed.
+ * fast/css/backgroundSize10-expected.checksum: Removed.
+ * fast/css/backgroundSize10-expected.png: Removed.
+ * fast/css/backgroundSize10-expected.txt: Removed.
+ * fast/css/backgroundSize10.html: Removed.
+ * fast/css/backgroundSize11-expected.checksum: Removed.
+ * fast/css/backgroundSize11-expected.png: Removed.
+ * fast/css/backgroundSize11-expected.txt: Removed.
+ * fast/css/backgroundSize11.html: Removed.
+ * fast/css/backgroundSize12-expected.checksum: Removed.
+ * fast/css/backgroundSize12-expected.png: Removed.
+ * fast/css/backgroundSize12-expected.txt: Removed.
+ * fast/css/backgroundSize12.html: Removed.
+ * fast/css/backgroundSize13-expected.checksum: Removed.
+ * fast/css/backgroundSize13-expected.png: Removed.
+ * fast/css/backgroundSize13-expected.txt: Removed.
+ * fast/css/backgroundSize13.html: Removed.
+ * fast/css/backgroundSize14-expected.checksum: Removed.
+ * fast/css/backgroundSize14-expected.png: Removed.
+ * fast/css/backgroundSize14-expected.txt: Removed.
+ * fast/css/backgroundSize14.html: Removed.
+ * fast/css/backgroundSize15-expected.checksum: Removed.
+ * fast/css/backgroundSize15-expected.png: Removed.
+ * fast/css/backgroundSize15-expected.txt: Removed.
+ * fast/css/backgroundSize15.html: Removed.
+ * fast/css/backgroundSize16-expected.checksum: Removed.
+ * fast/css/backgroundSize16-expected.png: Removed.
+ * fast/css/backgroundSize16-expected.txt: Removed.
+ * fast/css/backgroundSize16.html: Removed.
+ * fast/css/resources/bikes.bmp: Removed.
+
2006-04-20 Adele Peterson <adele@apple.com>
Updated test results for:
int sy = 0;
int cw,ch;
int cx,cy;
- int scaledWidth = w;
- int scaledHeight = h;
+ int scaledWidth, scaledHeight;
+
// CSS2 chapter 14.2.1
int pw = w - hpab;
int ph = h - vpab;
+ scaledWidth = pw;
+ scaledHeight = ph;
int pixw = bg->imageSize().width();
int pixh = bg->imageSize().height();
// If we are only repeating in one direction, we need to adjust the size and position of our
// container to take our new scale into account.
EBackgroundRepeat bgr = bgLayer->backgroundRepeat();
- if ((bgr == REPEAT_X || bgr == NO_REPEAT) && scaledHeight < ch) {
+ if ((bgr == REPEAT_X || bgr == NO_REPEAT) && scaledHeight != ch) {
ch = scaledHeight;
cy -= bgLayer->backgroundYPosition().calcMinValue(scaledHeight - bg->imageSize().height());
}
- if ((bgr == REPEAT_Y || bgr == NO_REPEAT) && scaledWidth < cw) {
+ if ((bgr == REPEAT_Y || bgr == NO_REPEAT) && scaledWidth != cw) {
cw = scaledWidth;
cx -= bgLayer->backgroundXPosition().calcMinValue(scaledWidth - bg->imageSize().width());
}
scaledHeight = bg->imageSize().height();
}
- if (cw > 0 && ch > 0) {
- if (bgLayer->backgroundRepeat() == NO_REPEAT) {
- IntSize imageSize = bg->imageSize();
- int originX = cx + int(fmodf(fmodf(-sx, imageSize.width()) - imageSize.width(), imageSize.width()));
- int originY = cy + int(fmodf(fmodf(-sy, imageSize.height()) - imageSize.height(), imageSize.height()));
- p->drawImage(bg->image(), IntRect(cx, cy, cw, ch), IntRect(IntPoint(originX, originY), imageSize));
- } else
- p->drawTiledImage(bg->image(), IntRect(cx, cy, cw, ch), IntPoint(sx, sy), IntSize(scaledWidth, scaledHeight));
- }
+ if (cw > 0 && ch > 0)
+ p->drawTiledImage(bg->image(), IntRect(cx, cy, cw, ch), IntPoint(sx, sy), IntSize(scaledWidth, scaledHeight));
}
if (bgLayer->backgroundClip() != BGBORDER)