Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 6a70e0be368696489e2f673a9c25434f24957fd3 https://github.com/WebKit/WebKit/commit/6a70e0be368696489e2f673a9c25434f24957fd3 Author: Said Abou-Hallawa <s...@apple.com> Date: 2025-03-17 (Mon, 17 Mar 2025)
Changed paths: M LayoutTests/compositing/hdr/hdr-basic-image.html M LayoutTests/compositing/hdr/hdr-css-image.html M LayoutTests/compositing/hdr/hdr-svg-inline-image.html M LayoutTests/fast/images/hdr-basic-image.html M LayoutTests/fast/images/hdr-css-image.html M LayoutTests/fast/images/hdr-svg-inline-image.html M Source/WebCore/dom/Document.cpp M Source/WebCore/dom/Document.h M Source/WebCore/html/HTMLCanvasElement.cpp M Source/WebCore/loader/cache/CachedImage.cpp M Source/WebCore/loader/cache/CachedImage.h M Source/WebCore/platform/graphics/BitmapImage.cpp M Source/WebCore/platform/graphics/BitmapImage.h M Source/WebCore/platform/graphics/BitmapImageSource.h M Source/WebCore/platform/graphics/Image.h M Source/WebCore/platform/graphics/ImageSource.h M Source/WebCore/rendering/RenderElement.cpp M Source/WebCore/rendering/RenderImage.cpp M Source/WebCore/rendering/RenderLayer.cpp M Source/WebCore/rendering/RenderLayer.h M Source/WebCore/rendering/RenderLayerBacking.cpp M Source/WebCore/rendering/RenderLayerBacking.h M Source/WebCore/rendering/svg/legacy/LegacyRenderSVGImage.cpp M Source/WebCore/svg/graphics/SVGImage.cpp M Source/WebCore/svg/graphics/SVGImage.h M Source/WebCore/testing/Internals.cpp M Source/WebCore/testing/Internals.h M Source/WebCore/testing/Internals.idl Log Message: ----------- [HDR] Unify the names of the methods and the members of HDR content https://bugs.webkit.org/show_bug.cgi?id=289880 rdar://147184369 Reviewed by Simon Fraser. Two names are only needed for HDR content: 1. hasHDRContent: This is true if an Image, RenderElement, RenderLayer, RenderLayerBacking or Document has HDR content. 2. drawsHDRContent:: This is true if a GraphicsLayer or Document can and must draw HDR content. * LayoutTests/compositing/hdr/hdr-basic-image.html: * LayoutTests/compositing/hdr/hdr-css-image.html: * LayoutTests/compositing/hdr/hdr-svg-inline-image.html: * LayoutTests/fast/images/hdr-basic-image.html: * LayoutTests/fast/images/hdr-css-image.html: * LayoutTests/fast/images/hdr-svg-inline-image.html: * Source/WebCore/dom/Document.cpp: (WebCore::Document::drawsHDRContent const): (WebCore::Document::canDrawHDRContent const): Deleted. * Source/WebCore/dom/Document.h: (WebCore::Document::setHasHDRContent): (WebCore::Document::hasHDRContent const): (WebCore::Document::setHasPaintedHDRContent): Deleted. (WebCore::Document::hasPaintedHDRContent const): Deleted. * Source/WebCore/html/HTMLCanvasElement.cpp: (WebCore::HTMLCanvasElement::createContext2d): * Source/WebCore/loader/cache/CachedImage.cpp: (WebCore::CachedImage::hasHDRContent const): (WebCore::CachedImage::hasPaintedHDRContent const): Deleted. * Source/WebCore/loader/cache/CachedImage.h: * Source/WebCore/platform/graphics/BitmapImage.cpp: (WebCore::BitmapImage::draw): * Source/WebCore/platform/graphics/BitmapImage.h: * Source/WebCore/platform/graphics/BitmapImageSource.h: * Source/WebCore/platform/graphics/Image.h: (WebCore::Image::hasHDRContent const): (WebCore::Image::hasPaintedHDRContent const): Deleted. * Source/WebCore/platform/graphics/ImageSource.h: (WebCore::ImageSource::setHasHDRContentForTesting): (WebCore::ImageSource::hasHDRContentForTesting const): (WebCore::ImageSource::setHasPaintedHDRContentForTesting): Deleted. (WebCore::ImageSource::hasPaintedHDRContentForTesting const): Deleted. * Source/WebCore/rendering/RenderElement.cpp: (WebCore::RenderElement::imageContentChanged): * Source/WebCore/rendering/RenderImage.cpp: (WebCore::RenderImage::notifyFinished): * Source/WebCore/rendering/RenderLayer.cpp: (WebCore::RenderLayer::PaintedContentRequest::PaintedContentRequest): (WebCore::RenderLayer::calculateClipRects const): * Source/WebCore/rendering/RenderLayer.h: * Source/WebCore/rendering/RenderLayerBacking.cpp: (WebCore::PaintedContentsInfo::PaintedContentsInfo): (WebCore::PaintedContentsInfo::isPaintsContentSatisfied const): (WebCore::PaintedContentsInfo::paintsHDRContent): (WebCore::PaintedContentsInfo::isContentsTypeSatisfied const): (WebCore::PaintedContentsInfo::rendererHasHDRContent): (WebCore::PaintedContentsInfo::determinePaintsContent): (WebCore::PaintedContentsInfo::determineContentsType): (WebCore::RenderLayerBacking::updateDrawsContent): (WebCore::RenderLayerBacking::determinePaintsContent const): (WebCore::RenderLayerBacking::determineNonCompositedLayerDescendantsPaintedContent const): (WebCore::RenderLayerBacking::rendererHasHDRContent const): (WebCore::PaintedContentsInfo::isRenderElementWithHDR): Deleted. (WebCore::RenderLayerBacking::isRenderElementWithHDR const): Deleted. * Source/WebCore/rendering/RenderLayerBacking.h: * Source/WebCore/rendering/svg/legacy/LegacyRenderSVGImage.cpp: (WebCore::LegacyRenderSVGImage::notifyFinished): * Source/WebCore/svg/graphics/SVGImage.cpp: (WebCore::SVGImage::hasHDRContent const): (WebCore::SVGImage::hasPaintedHDRContent const): Deleted. * Source/WebCore/svg/graphics/SVGImage.h: * Source/WebCore/testing/Internals.cpp: (WebCore::Internals::setHasHDRContentForTesting): (WebCore::Internals::setHasPaintedHDRContentForTesting): Deleted. * Source/WebCore/testing/Internals.h: * Source/WebCore/testing/Internals.idl: Canonical link: https://commits.webkit.org/292268@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes