⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 287286 in webkit


Ignore:
Timestamp:
Dec 20, 2021, 4:24:53 PM (5 years ago)
Author:
commit-queue@webkit.org
Message:

Don't include SVGImageForContainers in allCachedSVGImages
​https://bugs.webkit.org/show_bug.cgi?id=234364

Patch by Matt Woodrow <Matt Woodrow> on 2021-12-20
Reviewed by Dean Jackson.

  • loader/cache/CachedImage.cpp:

(WebCore::CachedImage::image const):
(WebCore::CachedImage::hasSVGImage const):
(WebCore::CachedImage::image): Deleted.

  • loader/cache/CachedImage.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r287281 r287286  
     12021-12-20  Matt Woodrow  <mattwoodrow@apple.com>
     2
     3        Don't include SVGImageForContainers in allCachedSVGImages
     4        https://bugs.webkit.org/show_bug.cgi?id=234364
     5
     6        Reviewed by Dean Jackson.
     7
     8        * loader/cache/CachedImage.cpp:
     9        (WebCore::CachedImage::image const):
     10        (WebCore::CachedImage::hasSVGImage const):
     11        (WebCore::CachedImage::image): Deleted.
     12        * loader/cache/CachedImage.h:
     13
    1142021-12-20  Wenson Hsieh  <wenson_hsieh@apple.com>
    215
  • trunk/Source/WebCore/loader/cache/CachedImage.cpp

    r287021 r287286  
    236236}
    237237
    238 Image* CachedImage::image()
     238Image* CachedImage::image() const
    239239{
    240240    if (errorOccurred() && m_shouldPaintBrokenImage) {
    … …  
    273273bool CachedImage::hasSVGImage() const
    274274{
    275     return m_image && m_image->drawsSVGImage();
     275    return image() && image()->isSVGImage();
    276276}
    277277
  • trunk/Source/WebCore/loader/cache/CachedImage.h

    r287021 r287286  
    5454    virtual ~CachedImage();
    5555
    56     WEBCORE_EXPORT Image* image(); // Returns the nullImage() if the image is not available yet.
     56    WEBCORE_EXPORT Image* image() const; // Returns the nullImage() if the image is not available yet.
    5757    WEBCORE_EXPORT Image* imageForRenderer(const RenderObject*); // Returns the nullImage() if the image is not available yet.
    5858    bool hasImage() const { return m_image.get(); }
Note: See TracChangeset for help on using the changeset viewer.