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

Changeset 287631 in webkit


Ignore:
Timestamp:
Jan 5, 2022, 10:21:18 AM (5 years ago)
Author:
Russell Epstein
Message:

Cherry-pick r287286. rdar://problem/87124952

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:

git-svn-id: ​https://svn.webkit.org/repository/webkit/trunk@287286 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-612-branch/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-612-branch/Source/WebCore/ChangeLog

    r287630 r287631  
     12022-01-05  Russell Epstein  <repstein@apple.com>
     2
     3        Cherry-pick r287286. rdar://problem/87124952
     4
     5    Don't include SVGImageForContainers in allCachedSVGImages
     6    https://bugs.webkit.org/show_bug.cgi?id=234364
     7   
     8    Patch by Matt Woodrow <mattwoodrow@apple.com> on 2021-12-20
     9    Reviewed by Dean Jackson.
     10   
     11    * loader/cache/CachedImage.cpp:
     12    (WebCore::CachedImage::image const):
     13    (WebCore::CachedImage::hasSVGImage const):
     14    (WebCore::CachedImage::image): Deleted.
     15    * loader/cache/CachedImage.h:
     16   
     17    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@287286 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     18
     19    2021-12-20  Matt Woodrow  <mattwoodrow@apple.com>
     20
     21            Don't include SVGImageForContainers in allCachedSVGImages
     22            https://bugs.webkit.org/show_bug.cgi?id=234364
     23
     24            Reviewed by Dean Jackson.
     25
     26            * loader/cache/CachedImage.cpp:
     27            (WebCore::CachedImage::image const):
     28            (WebCore::CachedImage::hasSVGImage const):
     29            (WebCore::CachedImage::image): Deleted.
     30            * loader/cache/CachedImage.h:
     31
    1322022-01-05  Russell Epstein  <repstein@apple.com>
    233
  • branches/safari-612-branch/Source/WebCore/loader/cache/CachedImage.cpp

    r279793 r287631  
    235235}
    236236
    237 Image* CachedImage::image()
     237Image* CachedImage::image() const
    238238{
    239239    if (errorOccurred() && m_shouldPaintBrokenImage) {
    … …  
    272272bool CachedImage::hasSVGImage() const
    273273{
    274     return m_image && m_image->drawsSVGImage();
     274    return image() && image()->isSVGImage();
    275275}
    276276
  • branches/safari-612-branch/Source/WebCore/loader/cache/CachedImage.h

    r278849 r287631  
    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.