Title: [121314] trunk
- Revision
- 121314
- Author
- [email protected]
- Date
- 2012-06-26 20:02:48 -0700 (Tue, 26 Jun 2012)
Log Message
REGRESSION(r107836): box shadow not drawn for opaque images with an opaque background
https://bugs.webkit.org/show_bug.cgi?id=89958
Patch by Douglas Stockwell <[email protected]> on 2012-06-26
Reviewed by Simon Fraser.
Source/WebCore:
Don't attempt to draw the box shadow as part of the background if the background is
obscured.
Test: fast/box-shadow/image-box-shadow.html
* rendering/RenderImage.cpp:
(WebCore::RenderImage::boxShadowShouldBeAppliedToBackground):
(WebCore):
* rendering/RenderImage.h:
(RenderImage):
LayoutTests:
* fast/box-shadow/image-box-shadow-expected.html: Added.
* fast/box-shadow/image-box-shadow.html: Added.
* fast/box-shadow/resources/green-alpha.png: Added.
* fast/box-shadow/resources/green.jpg: Added.
* fast/box-shadow/resources/green.png: Added.
Modified Paths
Added Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (121313 => 121314)
--- trunk/LayoutTests/ChangeLog 2012-06-27 02:20:21 UTC (rev 121313)
+++ trunk/LayoutTests/ChangeLog 2012-06-27 03:02:48 UTC (rev 121314)
@@ -1,3 +1,16 @@
+2012-06-26 Douglas Stockwell <[email protected]>
+
+ REGRESSION(r107836): box shadow not drawn for opaque images with an opaque background
+ https://bugs.webkit.org/show_bug.cgi?id=89958
+
+ Reviewed by Simon Fraser.
+
+ * fast/box-shadow/image-box-shadow-expected.html: Added.
+ * fast/box-shadow/image-box-shadow.html: Added.
+ * fast/box-shadow/resources/green-alpha.png: Added.
+ * fast/box-shadow/resources/green.jpg: Added.
+ * fast/box-shadow/resources/green.png: Added.
+
2012-06-26 Kulanthaivel Palanichamy <[email protected]>
Unexpected element sizes when mixing inline-table with box-sizing
Added: trunk/LayoutTests/fast/box-shadow/image-box-shadow-expected.html (0 => 121314)
--- trunk/LayoutTests/fast/box-shadow/image-box-shadow-expected.html (rev 0)
+++ trunk/LayoutTests/fast/box-shadow/image-box-shadow-expected.html 2012-06-27 03:02:48 UTC (rev 121314)
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<style>
+img {
+ width: 50px;
+ height: 25px;
+ margin-bottom: 25px;
+}
+div {
+ display: inline-block;
+ background: rgb(0,256,0);
+ height: 50px;
+}
+</style>
+<div><img src=""
+<div><img src=""
+<div><img src=""
Added: trunk/LayoutTests/fast/box-shadow/image-box-shadow.html (0 => 121314)
--- trunk/LayoutTests/fast/box-shadow/image-box-shadow.html (rev 0)
+++ trunk/LayoutTests/fast/box-shadow/image-box-shadow.html 2012-06-27 03:02:48 UTC (rev 121314)
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<style>
+img {
+ background: rgb(0,256,0);
+ width: 50px;
+ height: 25px;
+ margin-bottom: 25px;
+ box-shadow: 0px 25px rgb(0,256,0);
+}
+div {
+ display: inline-block;
+ background: red;
+ height: 50px;
+}
+</style>
+<div><img src=""
+<div><img src=""
+<div><img src=""
Added: trunk/LayoutTests/fast/box-shadow/resources/green-alpha.png (0 => 121314)
--- trunk/LayoutTests/fast/box-shadow/resources/green-alpha.png (rev 0)
+++ trunk/LayoutTests/fast/box-shadow/resources/green-alpha.png 2012-06-27 03:02:48 UTC (rev 121314)
@@ -0,0 +1,5 @@
+\x89PNG
+
+
+IHDR ĉ
+IDAT[cd\xF8\xCFP \x86\x80\xA2"` IEND\xAEB`\x82
\ No newline at end of file
Added: trunk/LayoutTests/fast/box-shadow/resources/green.jpg (0 => 121314)
--- trunk/LayoutTests/fast/box-shadow/resources/green.jpg (rev 0)
+++ trunk/LayoutTests/fast/box-shadow/resources/green.jpg 2012-06-27 03:02:48 UTC (rev 121314)
@@ -0,0 +1,12 @@
+\xFF\xD8\xFF\xE0 JFIF \xFF\xDB C
+
+
+
+
+
+
+\xFF\xDB C \xFF\xC0 "