Changeset 44938 in webkit
- Timestamp:
- Jun 22, 2009, 9:42:00 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r44936 r44938 1 2009-06-22 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Simon Fraser. 4 5 - test for https://bugs.webkit.org/show_bug.cgi?id=23606 6 <rdar://problem/6537777> CSS gradient not repainted when image load 7 completes 8 9 * fast/repaint/background-generated.html: Added. 10 * platform/mac/fast/repaint/background-generated-expected.checksum: Added. 11 * platform/mac/fast/repaint/background-generated-expected.png: Added. 12 * platform/mac/fast/repaint/background-generated-expected.txt: Added. 13 1 14 2009-06-22 Darin Adler <darin@apple.com> 2 15 -
trunk/WebCore/ChangeLog
r44937 r44938 1 2009-06-22 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Simon Fraser. 4 5 - fix https://bugs.webkit.org/show_bug.cgi?id=23606 6 <rdar://problem/6537777> CSS gradient not repainted when image load 7 completes 8 9 Test: fast/repaint/background-generated.html 10 11 * rendering/RenderObject.cpp: 12 (WebCore::mustRepaintFillLayers): Return true if the layer does not 13 specify a size and the image uses the container size. 14 1 15 2009-06-22 David Hyatt <hyatt@apple.com> 2 16 -
trunk/WebCore/rendering/RenderObject.cpp
r44763 r44938 644 644 // Make sure we have a valid image. 645 645 StyleImage* img = layer->image(); 646 bool shouldPaintBackgroundImage = img && img->canRender(renderer->style()->effectiveZoom()); 647 648 // These are always percents or auto. 649 if (shouldPaintBackgroundImage && 650 (!layer->xPosition().isZero() || !layer->yPosition().isZero() || 651 layer->size().width().isPercent() || layer->size().height().isPercent())) 652 // The image will shift unpredictably if the size changes. 646 if (!img || !img->canRender(renderer->style()->effectiveZoom())) 647 return false; 648 649 if (!layer->xPosition().isZero() || !layer->yPosition().isZero()) 650 return true; 651 652 if (layer->isSizeSet()) { 653 if (layer->size().width().isPercent() || layer->size().height().isPercent()) 654 return true; 655 } else if (img->usesImageContainerSize()) 653 656 return true; 654 657
Note:
See TracChangeset
for help on using the changeset viewer.