Changeset 54865 in webkit


Ignore:
Timestamp:
Feb 16, 2010 7:54:23 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-02-16 Yael Aharon <yael.aharon@nokia.com>

Reviewed by Nikolas Zimmermann.

SVG not rendered as background-image from data URI
https://bugs.webkit.org/show_bug.cgi?id=33630

  • platform/mac/svg/css/background-image-svg-expected.checksum: Added.
  • platform/mac/svg/css/background-image-svg-expected.png: Added.
  • platform/qt/svg/css/background-image-svg-expected.checksum: Added.
  • platform/qt/svg/css/background-image-svg-expected.png: Added.
  • svg/css/background-image-svg.html: Added.
  • svg/css/background-image-svg-expected.txt: Added.

2010-02-16 Yael Aharon <yael.aharon@nokia.com>

Reviewed by Nikolas Zimmermann.

SVG not rendered as background-image from data URI
https://bugs.webkit.org/show_bug.cgi?id=33630

When the background image is an SVG image, and it is smaller than the area
it is supposed to fill, we were using renderSubTreeToImage to draw it.
That call was not going through all the drawing phases, and so the SVG itself
would not be drawn.

Test: svg/css/background-image-svg.html

  • svg/graphics/SVGImage.cpp: (WebCore::SVGImage::nativeImageForCurrentFrame):
Location:
trunk
Files:
6 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r54863 r54865  
     12010-02-16  Yael Aharon  <yael.aharon@nokia.com>
     2
     3        Reviewed by Nikolas Zimmermann.
     4
     5        SVG not rendered as background-image from data URI
     6        https://bugs.webkit.org/show_bug.cgi?id=33630
     7
     8        * platform/mac/svg/css/background-image-svg-expected.checksum: Added.
     9        * platform/mac/svg/css/background-image-svg-expected.png: Added.
     10        * platform/qt/svg/css/background-image-svg-expected.checksum: Added.
     11        * platform/qt/svg/css/background-image-svg-expected.png: Added.
     12        * svg/css/background-image-svg.html: Added.
     13        * svg/css/background-image-svg-expected.txt: Added.
     14
    1152010-02-16  Nikolas Zimmermann  <nzimmermann@rim.com>
    216
  • trunk/WebCore/ChangeLog

    r54864 r54865  
     12010-02-16  Yael Aharon  <yael.aharon@nokia.com>
     2
     3        Reviewed by Nikolas Zimmermann.
     4
     5        SVG not rendered as background-image from data URI
     6        https://bugs.webkit.org/show_bug.cgi?id=33630
     7
     8        When the background image is an SVG image, and it is smaller than the area
     9        it is supposed to fill, we were using renderSubTreeToImage to draw it.
     10        That call was not going through all the drawing phases, and so the SVG itself
     11        would not be drawn.
     12
     13        Test: svg/css/background-image-svg.html
     14
     15        * svg/graphics/SVGImage.cpp:
     16        (WebCore::SVGImage::nativeImageForCurrentFrame):
     17
    1182010-02-16  Bryan Yeung  <bryeung@chromium.org>
    219
  • trunk/WebCore/svg/graphics/SVGImage.cpp

    r53343 r54865  
    216216        if (!m_frameCache) // failed to allocate image
    217217            return 0;
    218         renderSubtreeToImage(m_frameCache.get(), m_page->mainFrame()->contentRenderer());
     218        draw(m_frameCache->context(), rect(), rect(), DeviceColorSpace, CompositeSourceOver);
    219219    }
    220220    return m_frameCache->image()->nativeImageForCurrentFrame();
Note: See TracChangeset for help on using the changeset viewer.