<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>288419</bug_id>
          
          <creation_ts>2025-02-24 15:36:03 -0800</creation_ts>
          <short_desc>[HDR] Scan the render layer tree for HDR content only if the document has at least one HDR image or canvas</short_desc>
          <delta_ts>2025-02-26 17:10:09 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Images</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>282299</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Said Abou-Hallawa">sabouhallawa</reporter>
          <assigned_to name="Said Abou-Hallawa">sabouhallawa</assigned_to>
          <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2097572</commentid>
    <comment_count>0</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2025-02-24 15:36:03 -0800</bug_when>
    <thetext>Scanning the renderer of a render layer and its descendants for HDR contents is costly. To optimize the PLT, the traversal for HDR content can be disabled until an HDR image is loaded or an HDR canvas context is created. A flag can be kept on the Page to tell whether the page hasPaintedHDRContent() or not. This flag can be used by Page::canDrawHDRContent() which is consulted for before starting the traversal for HDR content.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2097574</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-02-24 15:37:04 -0800</bug_when>
    <thetext>&lt;rdar://problem/145515241&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2097580</commentid>
    <comment_count>2</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2025-02-24 15:42:19 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/41246</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2098534</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-02-26 17:10:08 -0800</bug_when>
    <thetext>Committed 291179@main (c392d3b6bf92): &lt;https://commits.webkit.org/291179@main&gt;

Reviewed commits have been landed. Closing PR #41246 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>