Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: da92319fd54b5cf9dcbe546135204314df8ea4f8
      
https://github.com/WebKit/WebKit/commit/da92319fd54b5cf9dcbe546135204314df8ea4f8
  Author: Said Abou-Hallawa <[email protected]>
  Date:   2024-04-22 (Mon, 22 Apr 2024)

  Changed paths:
    M Source/WebCore/html/HTMLImageElement.cpp
    M Source/WebCore/loader/cache/CachedImage.cpp
    M Source/WebCore/loader/cache/CachedImage.h

  Log Message:
  -----------
  Make CachedImage calculate allowsOrientationOverride when loading the image 
is complete
https://bugs.webkit.org/show_bug.cgi?id=272690
rdar://126495895

Reviewed by Cameron McCormack.

Cache the value of allowsOrientationOverride when the image is loaded and reuse
the cached value instead of recalculating it every time it is needed.

* Source/WebCore/html/HTMLImageElement.cpp:
(WebCore::HTMLImageElement::allowsOrientationOverride const):
* Source/WebCore/loader/cache/CachedImage.cpp:
(WebCore::CachedImage::CachedImage):
(WebCore::CachedImage::clearImage):
(WebCore::CachedImage::finishLoading):
* Source/WebCore/loader/cache/CachedImage.h:

Canonical link: https://commits.webkit.org/277830@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to