Reviewed by Hyatt.
authorbdakin <bdakin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Apr 2006 07:54:57 +0000 (07:54 +0000)
committerbdakin <bdakin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Apr 2006 07:54:57 +0000 (07:54 +0000)
        Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8495
        REGRESSION: Sidebar on cnn.com is hosed

        * platform/mac/ImageMac.mm:
        (WebCore::Image::drawTiled): Use the size of the destination rect,
        not the oneTileRect in the no-pattern case.
        * rendering/RenderBox.cpp:
        (WebCore::RenderBox::paintBackgroundExtended): Initialize
        scaledWidth and scaledHeight to the appropriate value (was wrong in
        scroll case), adjust position at appropriate times, and take out
        no-repeat clause for now since we don't have enough test cases yet
        to be sure we won't cause massive regressions.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13995 268f45cc-cd09-0410-ab3c-d52691b4dbfc

80 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/backgrounds/repeat/noRepeatCorrectClip-expected.checksum [new file with mode: 0644]
LayoutTests/fast/backgrounds/repeat/noRepeatCorrectClip-expected.png [new file with mode: 0644]
LayoutTests/fast/backgrounds/repeat/noRepeatCorrectClip-expected.txt [new file with mode: 0644]
LayoutTests/fast/backgrounds/repeat/noRepeatCorrectClip.html [new file with mode: 0644]
LayoutTests/fast/backgrounds/repeat/resources/nav.blue.gif [new file with mode: 0644]
LayoutTests/fast/backgrounds/size/backgroundSize01-expected.checksum [moved from LayoutTests/fast/css/backgroundSize01-expected.checksum with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize01-expected.png [moved from LayoutTests/fast/css/backgroundSize01-expected.png with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize01-expected.txt [moved from LayoutTests/fast/css/backgroundSize01-expected.txt with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize01.html [moved from LayoutTests/fast/css/backgroundSize01.html with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize02-expected.checksum [moved from LayoutTests/fast/css/backgroundSize02-expected.checksum with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize02-expected.png [moved from LayoutTests/fast/css/backgroundSize02-expected.png with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize02-expected.txt [moved from LayoutTests/fast/css/backgroundSize02-expected.txt with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize02.html [moved from LayoutTests/fast/css/backgroundSize02.html with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize03-expected.checksum [moved from LayoutTests/fast/css/backgroundSize03-expected.checksum with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize03-expected.png [moved from LayoutTests/fast/css/backgroundSize03-expected.png with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize03-expected.txt [moved from LayoutTests/fast/css/backgroundSize03-expected.txt with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize03.html [moved from LayoutTests/fast/css/backgroundSize03.html with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize04-expected.checksum [moved from LayoutTests/fast/css/backgroundSize04-expected.checksum with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize04-expected.png [moved from LayoutTests/fast/css/backgroundSize04-expected.png with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize04-expected.txt [moved from LayoutTests/fast/css/backgroundSize04-expected.txt with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize04.html [moved from LayoutTests/fast/css/backgroundSize04.html with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize05-expected.checksum [moved from LayoutTests/fast/css/backgroundSize05-expected.checksum with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize05-expected.png [moved from LayoutTests/fast/css/backgroundSize05-expected.png with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize05-expected.txt [moved from LayoutTests/fast/css/backgroundSize05-expected.txt with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize05.html [moved from LayoutTests/fast/css/backgroundSize05.html with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize06-expected.checksum [moved from LayoutTests/fast/css/backgroundSize06-expected.checksum with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize06-expected.png [moved from LayoutTests/fast/css/backgroundSize06-expected.png with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize06-expected.txt [moved from LayoutTests/fast/css/backgroundSize06-expected.txt with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize06.html [moved from LayoutTests/fast/css/backgroundSize06.html with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize07-expected.checksum [moved from LayoutTests/fast/css/backgroundSize07-expected.checksum with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize07-expected.png [moved from LayoutTests/fast/css/backgroundSize07-expected.png with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize07-expected.txt [moved from LayoutTests/fast/css/backgroundSize07-expected.txt with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize07.html [moved from LayoutTests/fast/css/backgroundSize07.html with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize08-expected.checksum [moved from LayoutTests/fast/css/backgroundSize08-expected.checksum with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize08-expected.png [moved from LayoutTests/fast/css/backgroundSize08-expected.png with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize08-expected.txt [moved from LayoutTests/fast/css/backgroundSize08-expected.txt with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize08.html [moved from LayoutTests/fast/css/backgroundSize08.html with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize09-expected.checksum [moved from LayoutTests/fast/css/backgroundSize09-expected.checksum with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize09-expected.png [moved from LayoutTests/fast/css/backgroundSize09-expected.png with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize09-expected.txt [moved from LayoutTests/fast/css/backgroundSize09-expected.txt with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize09.html [moved from LayoutTests/fast/css/backgroundSize09.html with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize10-expected.checksum [moved from LayoutTests/fast/css/backgroundSize10-expected.checksum with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize10-expected.png [moved from LayoutTests/fast/css/backgroundSize10-expected.png with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize10-expected.txt [moved from LayoutTests/fast/css/backgroundSize10-expected.txt with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize10.html [moved from LayoutTests/fast/css/backgroundSize10.html with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize11-expected.checksum [moved from LayoutTests/fast/css/backgroundSize11-expected.checksum with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize11-expected.png [moved from LayoutTests/fast/css/backgroundSize11-expected.png with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize11-expected.txt [moved from LayoutTests/fast/css/backgroundSize11-expected.txt with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize11.html [moved from LayoutTests/fast/css/backgroundSize11.html with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize12-expected.checksum [moved from LayoutTests/fast/css/backgroundSize12-expected.checksum with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize12-expected.png [moved from LayoutTests/fast/css/backgroundSize12-expected.png with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize12-expected.txt [moved from LayoutTests/fast/css/backgroundSize12-expected.txt with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize12.html [moved from LayoutTests/fast/css/backgroundSize12.html with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize13-expected.checksum [new file with mode: 0644]
LayoutTests/fast/backgrounds/size/backgroundSize13-expected.png [new file with mode: 0644]
LayoutTests/fast/backgrounds/size/backgroundSize13-expected.txt [moved from LayoutTests/fast/css/backgroundSize13-expected.txt with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize13.html [moved from LayoutTests/fast/css/backgroundSize13.html with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize14-expected.checksum [new file with mode: 0644]
LayoutTests/fast/backgrounds/size/backgroundSize14-expected.png [new file with mode: 0644]
LayoutTests/fast/backgrounds/size/backgroundSize14-expected.txt [moved from LayoutTests/fast/css/backgroundSize14-expected.txt with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize14.html [moved from LayoutTests/fast/css/backgroundSize14.html with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize15-expected.checksum [new file with mode: 0644]
LayoutTests/fast/backgrounds/size/backgroundSize15-expected.png [new file with mode: 0644]
LayoutTests/fast/backgrounds/size/backgroundSize15-expected.txt [moved from LayoutTests/fast/css/backgroundSize15-expected.txt with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize15.html [moved from LayoutTests/fast/css/backgroundSize15.html with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize16-expected.checksum [moved from LayoutTests/fast/css/backgroundSize16-expected.checksum with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize16-expected.png [moved from LayoutTests/fast/css/backgroundSize16-expected.png with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize16-expected.txt [moved from LayoutTests/fast/css/backgroundSize16-expected.txt with 100% similarity]
LayoutTests/fast/backgrounds/size/backgroundSize16.html [moved from LayoutTests/fast/css/backgroundSize16.html with 100% similarity]
LayoutTests/fast/backgrounds/size/resources/bikes.bmp [moved from LayoutTests/fast/css/resources/bikes.bmp with 100% similarity]
LayoutTests/fast/css/backgroundSize13-expected.checksum [deleted file]
LayoutTests/fast/css/backgroundSize13-expected.png [deleted file]
LayoutTests/fast/css/backgroundSize14-expected.checksum [deleted file]
LayoutTests/fast/css/backgroundSize14-expected.png [deleted file]
LayoutTests/fast/css/backgroundSize15-expected.checksum [deleted file]
LayoutTests/fast/css/backgroundSize15-expected.png [deleted file]
WebCore/ChangeLog
WebCore/platform/mac/ImageMac.mm
WebCore/rendering/RenderBox.cpp

index c1a14456afbec8e59e0fc4e7d030ad0613dcd008..9d708c4793cfef39d00d677e3a6f732e28dae3ed 100644 (file)
@@ -1,3 +1,151 @@
+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: 
diff --git a/LayoutTests/fast/backgrounds/repeat/noRepeatCorrectClip-expected.checksum b/LayoutTests/fast/backgrounds/repeat/noRepeatCorrectClip-expected.checksum
new file mode 100644 (file)
index 0000000..2f9013a
--- /dev/null
@@ -0,0 +1 @@
+93a18a51ff8374c5adc8f2641bfba1f6
\ No newline at end of file
diff --git a/LayoutTests/fast/backgrounds/repeat/noRepeatCorrectClip-expected.png b/LayoutTests/fast/backgrounds/repeat/noRepeatCorrectClip-expected.png
new file mode 100644 (file)
index 0000000..1405b10
Binary files /dev/null and b/LayoutTests/fast/backgrounds/repeat/noRepeatCorrectClip-expected.png differ
diff --git a/LayoutTests/fast/backgrounds/repeat/noRepeatCorrectClip-expected.txt b/LayoutTests/fast/backgrounds/repeat/noRepeatCorrectClip-expected.txt
new file mode 100644 (file)
index 0000000..4b81038
--- /dev/null
@@ -0,0 +1,8 @@
+layer at (0,0) size 800x600
+  RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x600
+  RenderBlock {HTML} at (0,0) size 800x600
+    RenderBody {BODY} at (8,8) size 784x576
+      RenderBlock {UL} at (0,0) size 784x18
+        RenderListItem {LI} at (40,0) size 744x18
+          RenderListMarker at (-17,0) size 7x18
diff --git a/LayoutTests/fast/backgrounds/repeat/noRepeatCorrectClip.html b/LayoutTests/fast/backgrounds/repeat/noRepeatCorrectClip.html
new file mode 100644 (file)
index 0000000..004097a
--- /dev/null
@@ -0,0 +1,16 @@
+<head>
+       <style>
+            ul#nav li { 
+                background:url(http://i.a.cnn.net/cnn/.element/img/1.3/nav/nav.blue.gif) 
+                no-repeat;
+            }
+        </style>
+</head>
+
+<body>
+
+<ul id="nav">
+       <li></li>       
+</ul>
+
+</body>
diff --git a/LayoutTests/fast/backgrounds/repeat/resources/nav.blue.gif b/LayoutTests/fast/backgrounds/repeat/resources/nav.blue.gif
new file mode 100644 (file)
index 0000000..7f72d10
Binary files /dev/null and b/LayoutTests/fast/backgrounds/repeat/resources/nav.blue.gif differ
diff --git a/LayoutTests/fast/backgrounds/size/backgroundSize13-expected.checksum b/LayoutTests/fast/backgrounds/size/backgroundSize13-expected.checksum
new file mode 100644 (file)
index 0000000..7611ed1
--- /dev/null
@@ -0,0 +1 @@
+c8babed1810544a3947c7a963b1706df
\ No newline at end of file
diff --git a/LayoutTests/fast/backgrounds/size/backgroundSize13-expected.png b/LayoutTests/fast/backgrounds/size/backgroundSize13-expected.png
new file mode 100644 (file)
index 0000000..2808437
Binary files /dev/null and b/LayoutTests/fast/backgrounds/size/backgroundSize13-expected.png differ
diff --git a/LayoutTests/fast/backgrounds/size/backgroundSize14-expected.checksum b/LayoutTests/fast/backgrounds/size/backgroundSize14-expected.checksum
new file mode 100644 (file)
index 0000000..23d9146
--- /dev/null
@@ -0,0 +1 @@
+89b70e0260691933869307a23385de2d
\ No newline at end of file
diff --git a/LayoutTests/fast/backgrounds/size/backgroundSize14-expected.png b/LayoutTests/fast/backgrounds/size/backgroundSize14-expected.png
new file mode 100644 (file)
index 0000000..e790a6b
Binary files /dev/null and b/LayoutTests/fast/backgrounds/size/backgroundSize14-expected.png differ
diff --git a/LayoutTests/fast/backgrounds/size/backgroundSize15-expected.checksum b/LayoutTests/fast/backgrounds/size/backgroundSize15-expected.checksum
new file mode 100644 (file)
index 0000000..92cc3c2
--- /dev/null
@@ -0,0 +1 @@
+387985730c689b71ea30d5c7acf64953
\ No newline at end of file
diff --git a/LayoutTests/fast/backgrounds/size/backgroundSize15-expected.png b/LayoutTests/fast/backgrounds/size/backgroundSize15-expected.png
new file mode 100644 (file)
index 0000000..985acae
Binary files /dev/null and b/LayoutTests/fast/backgrounds/size/backgroundSize15-expected.png differ
diff --git a/LayoutTests/fast/css/backgroundSize13-expected.checksum b/LayoutTests/fast/css/backgroundSize13-expected.checksum
deleted file mode 100644 (file)
index b46e157..0000000
+++ /dev/null
@@ -1 +0,0 @@
-47a7ac13b200431a77631b810410fb9c
\ No newline at end of file
diff --git a/LayoutTests/fast/css/backgroundSize13-expected.png b/LayoutTests/fast/css/backgroundSize13-expected.png
deleted file mode 100644 (file)
index 98c2a01..0000000
Binary files a/LayoutTests/fast/css/backgroundSize13-expected.png and /dev/null differ
diff --git a/LayoutTests/fast/css/backgroundSize14-expected.checksum b/LayoutTests/fast/css/backgroundSize14-expected.checksum
deleted file mode 100644 (file)
index 6f615f9..0000000
+++ /dev/null
@@ -1 +0,0 @@
-86ae57c74e9df5fa2314deed94c23780
\ No newline at end of file
diff --git a/LayoutTests/fast/css/backgroundSize14-expected.png b/LayoutTests/fast/css/backgroundSize14-expected.png
deleted file mode 100644 (file)
index 956d255..0000000
Binary files a/LayoutTests/fast/css/backgroundSize14-expected.png and /dev/null differ
diff --git a/LayoutTests/fast/css/backgroundSize15-expected.checksum b/LayoutTests/fast/css/backgroundSize15-expected.checksum
deleted file mode 100644 (file)
index 8d74fae..0000000
+++ /dev/null
@@ -1 +0,0 @@
-48b1c9efafb05210f60385edb938e96f
\ No newline at end of file
diff --git a/LayoutTests/fast/css/backgroundSize15-expected.png b/LayoutTests/fast/css/backgroundSize15-expected.png
deleted file mode 100644 (file)
index 0266f0e..0000000
Binary files a/LayoutTests/fast/css/backgroundSize15-expected.png and /dev/null differ
index 68f0ae3699258f9e354fdee9bde894c7b801c7e0..710846e0f8aec2982e402f0f6dc2b0506903b73d 100644 (file)
@@ -1,3 +1,20 @@
+2006-04-21  Beth Dakin  <bdakin@apple.com>
+
+        Reviewed by Hyatt.
+
+        Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8495 
+        REGRESSION: Sidebar on cnn.com is hosed
+
+        * platform/mac/ImageMac.mm:
+        (WebCore::Image::drawTiled): Use the size of the destination rect, 
+        not the oneTileRect in the no-pattern case.
+        * rendering/RenderBox.cpp:
+        (WebCore::RenderBox::paintBackgroundExtended): Initialize 
+        scaledWidth and scaledHeight to the appropriate value (was wrong in 
+        scroll case), adjust position at appropriate times, and take out 
+        no-repeat clause for now since we don't have enough test cases yet 
+        to be sure we won't cause massive regressions. 
+
 2006-04-21  Darin Adler  <darin@apple.com>
 
         - attempt to fix Windows build after my last check-in
index 1f2fa4fb3e58022c779b6e1e4bf0791476f285fa..ac980dc6e8529c06cb7ccaa6bc8c1d65366832ba 100644 (file)
@@ -324,8 +324,8 @@ void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& destRect, const Fl
         CGRect fromRect;
         fromRect.origin.x = (destRect.x() - oneTileRect.origin.x) / scaleX;
         fromRect.origin.y = (destRect.y() - oneTileRect.origin.y) / scaleY;
-        fromRect.size.width = oneTileRect.size.width / scaleX;
-        fromRect.size.height = oneTileRect.size.height / scaleY;
+        fromRect.size.width = destRect.width() / scaleX;
+        fromRect.size.height = destRect.height() / scaleY;
 
         draw(ctxt, destRect, fromRect, CompositeSourceOver);
         return;
index 747ecf4f2b1b193fa527a256b8e545392408eff2..d3f7f95becacbc66c5912c04fabbf910a20c2295 100644 (file)
@@ -446,8 +446,8 @@ void RenderBox::paintBackgroundExtended(GraphicsContext* p, const Color& c, cons
         int sy = 0;
         int cw,ch;
         int cx,cy;
-        int scaledWidth = w;
-        int scaledHeight = h;
+        int scaledWidth, scaledHeight;
+
         
         // CSS2 chapter 14.2.1
 
@@ -469,6 +469,8 @@ void RenderBox::paintBackgroundExtended(GraphicsContext* p, const Color& c, cons
             
             int pw = w - hpab;
             int ph = h - vpab;
+            scaledWidth = pw;
+            scaledHeight = ph;
 
             int pixw = bg->imageSize().width();
             int pixh = bg->imageSize().height();
@@ -611,11 +613,11 @@ void RenderBox::paintBackgroundExtended(GraphicsContext* p, const Color& c, cons
             // 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());
             }        
@@ -624,15 +626,8 @@ void RenderBox::paintBackgroundExtended(GraphicsContext* p, const Color& c, cons
             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)