Changeset 64901 in webkit


Ignore:
Timestamp:
Aug 7, 2010 2:25:48 AM (14 years ago)
Author:
Nikolas Zimmermann
Message:

2010-08-07 Nikolas Zimmermann <nzimmermann@rim.com>

Reviewed by Daniel Bates.

Pattern fill with image not rendered after reload
https://bugs.webkit.org/show_bug.cgi?id=41596

Fixed by a one-liner. Instead of just invalidating it's own resources, images also have to update
resources in the ancestor chain, if imageChanged() has been called (for example, a slow loading image)

Test: http/tests/misc/slow-loading-image-in-pattern.html

  • rendering/RenderSVGImage.cpp: (WebCore::RenderSVGImage::imageChanged):

2010-08-07 Nikolas Zimmermann <nzimmermann@rim.com>

Reviewed by Daniel Bates.

Pattern fill with image not rendered after reload
https://bugs.webkit.org/show_bug.cgi?id=41596

Added test verifying that resources are properly updated, if an image child element has changed.

  • http/tests/misc/slow-loading-image-in-pattern.html: Added.
  • platform/mac/http/tests/misc/slow-loading-image-in-pattern-expected.checksum: Added.
  • platform/mac/http/tests/misc/slow-loading-image-in-pattern-expected.png: Added.
  • platform/mac/http/tests/misc/slow-loading-image-in-pattern-expected.txt: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r64900 r64901  
     12010-08-07  Nikolas Zimmermann  <nzimmermann@rim.com>
     2
     3        Reviewed by Daniel Bates.
     4
     5        Pattern fill with image not rendered after reload
     6        https://bugs.webkit.org/show_bug.cgi?id=41596
     7
     8        Added test verifying that resources are properly updated, if an image child element has changed.
     9
     10        * http/tests/misc/slow-loading-image-in-pattern.html: Added.
     11        * platform/mac/http/tests/misc/slow-loading-image-in-pattern-expected.checksum: Added.
     12        * platform/mac/http/tests/misc/slow-loading-image-in-pattern-expected.png: Added.
     13        * platform/mac/http/tests/misc/slow-loading-image-in-pattern-expected.txt: Added.
     14
    1152010-08-07  Kent Tamura  <tkent@chromium.org>
    216
  • trunk/WebCore/ChangeLog

    r64898 r64901  
     12010-08-07  Nikolas Zimmermann  <nzimmermann@rim.com>
     2
     3        Reviewed by Daniel Bates.
     4
     5        Pattern fill with image not rendered after reload
     6        https://bugs.webkit.org/show_bug.cgi?id=41596
     7
     8        Fixed by a one-liner. Instead of just invalidating it's own resources, images also have to update
     9        resources in the ancestor chain, if imageChanged() has been called (for example, a slow loading image)
     10
     11        Test: http/tests/misc/slow-loading-image-in-pattern.html
     12
     13        * rendering/RenderSVGImage.cpp:
     14        (WebCore::RenderSVGImage::imageChanged):
     15
    1162010-08-06  Dirk Schulze  <krit@webkit.org>
    217
  • trunk/WebCore/rendering/RenderSVGImage.cpp

    r64275 r64901  
    180180        resources->invalidateClient(this);
    181181
     182    // Eventually notify parent resources, that we've changed.
     183    RenderSVGResource::markForLayoutAndParentResourceInvalidation(this, false);
     184
    182185    repaint();
    183186}
Note: See TracChangeset for help on using the changeset viewer.