<?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>265170</bug_id>
          
          <creation_ts>2023-11-20 17:56:10 -0800</creation_ts>
          <short_desc>[view-transitions] Implement &quot;capture the image&quot; algorithm</short_desc>
          <delta_ts>2024-02-21 00:26:19 -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>Layout and Rendering</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=269749</see_also>
          <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>
          <dependson>269743</dependson>
          <blocked>259055</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Nguyen (:ntim)">ntim</reporter>
          <assigned_to name="Matt Woodrow">mattwoodrow</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>fujii</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1994029</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2023-11-20 17:56:10 -0800</bug_when>
    <thetext>https://drafts.csswg.org/css-view-transitions-1/#capture-old-state-algorithm
https://drafts.csswg.org/css-view-transitions-1/#capture-new-state-algorithm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1994030</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2023-11-20 17:57:43 -0800</bug_when>
    <thetext>https://drafts.csswg.org/css-view-transitions-1/#capture-the-image</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1994034</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-11-20 17:59:36 -0800</bug_when>
    <thetext>&lt;rdar://problem/118667021&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1996425</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2023-12-02 02:26:07 -0800</bug_when>
    <thetext>It would probably make sense to implement the &quot;snapshot containing block&quot; too:

https://drafts.csswg.org/css-view-transitions/#snapshot-containing-block-concept</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2014261</commentid>
    <comment_count>4</comment_count>
    <who name="Matt Woodrow">mattwoodrow</who>
    <bug_when>2024-02-15 18:17:04 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/24570</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2015001</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-02-18 19:08:19 -0800</bug_when>
    <thetext>Committed 274957@main (115f0206bb9c): &lt;https://commits.webkit.org/274957@main&gt;

Reviewed commits have been landed. Closing PR #24570 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2015017</commentid>
    <comment_count>6</comment_count>
    <who name="Fujii Hironori">fujii</who>
    <bug_when>2024-02-18 22:12:54 -0800</bug_when>
    <thetext>This change introduced a new assertion failure.

ASSERTION FAILED: fixedPositionContainerLayer
rendering/RenderLayer.cpp(2391) : const WebCore::RenderLayer *WebCore::accumulateOffsetTowardsAncestor(const WebCore::RenderLayer *, const WebCore::RenderLayer *, WebCore::LayoutPoint &amp;, RenderLayer::ColumnOffsetAdjustment)
1   0x1042ed058 WTFCrash
2   0x2df82a9c0 WebCore::NetworkResourcesData::ResourceData::hasContent() const
3   0x2e10075dc WebCore::accumulateOffsetTowardsAncestor(WebCore::RenderLayer const*, WebCore::RenderLayer const*, WebCore::LayoutPoint&amp;, WebCore::RenderLayer::ColumnOffsetAdjustment)
4   0x2e10072ac WebCore::RenderLayer::convertToLayerCoords(WebCore::RenderLayer const*, WebCore::LayoutPoint const&amp;, WebCore::RenderLayer::ColumnOffsetAdjustment) const
5   0x2e10019ec WebCore::RenderLayer::offsetFromAncestor(WebCore::RenderLayer const*, WebCore::RenderLayer::ColumnOffsetAdjustment) const
6   0x2e10533f0 WebCore::RenderLayerCompositor::repaintInCompositedAncestor(WebCore::RenderLayer&amp;, WebCore::LayoutRect const&amp;)
7   0x2e106776c WebCore::RenderLayerCompositor::layerWillBeRemoved(WebCore::RenderLayer&amp;, WebCore::RenderLayer&amp;)
8   0x2e0ffddf0 WebCore::RenderLayer::removeChild(WebCore::RenderLayer&amp;)
9   0x2e0f737dc WebCore::RenderElement::removeLayers()
10  0x2e0f76b3c WebCore::RenderElement::willBeRemovedFromTree(WebCore::RenderObject::IsInternalMove)
11  0x2e1073f80 WebCore::RenderLayerModelObject::willBeRemovedFromTree(WebCore::RenderObject::IsInternalMove)
12  0x2e0ef869c WebCore::RenderBox::willBeRemovedFromTree(WebCore::RenderObject::IsInternalMove)
13  0x2e14310a8 WebCore::RenderTreeBuilder::detachFromRenderElement(WebCore::RenderElement&amp;, WebCore::RenderObject&amp;, WebCore::RenderTreeBuilder::WillBeDestroyed)
14  0x2e14306c4 WebCore::RenderTreeBuilder::Block::detach(WebCore::RenderBlock&amp;, WebCore::RenderObject&amp;, WebCore::RenderTreeBuilder::CanCollapseAnonymousBlock)
15  0x2e143058c WebCore::RenderTreeBuilder::Block::detach(WebCore::RenderBlockFlow&amp;, WebCore::RenderObject&amp;, WebCore::RenderTreeBuilder::CanCollapseAnonymousBlock)
16  0x2e142da04 WebCore::RenderTreeBuilder::detach(WebCore::RenderElement&amp;, WebCore::RenderObject&amp;, WebCore::RenderTreeBuilder::CanCollapseAnonymousBlock)
17  0x2e142d680 WebCore::RenderTreeBuilder::destroy(WebCore::RenderObject&amp;, WebCore::RenderTreeBuilder::CanCollapseAnonymousBlock)
18  0x2e142d75c WebCore::RenderTreeBuilder::destroy(WebCore::RenderObject&amp;, WebCore::RenderTreeBuilder::CanCollapseAnonymousBlock)
19  0x2e145cd84 WebCore::RenderTreeUpdater::ViewTransition::updatePseudoElementTree(WebCore::RenderElement&amp;)::$_11::operator()() const
20  0x2e1459bb4 WebCore::RenderTreeUpdater::ViewTransition::updatePseudoElementTree(WebCore::RenderElement&amp;)
21  0x2e1459318 WebCore::RenderTreeUpdater::updateAfterDescendants(WebCore::Element&amp;, WebCore::Style::ElementUpdate const*)
22  0x2e1459224 WebCore::RenderTreeUpdater::popParent()
23  0x2e1458640 WebCore::RenderTreeUpdater::popParentsToDepth(unsigned int)
24  0x2e1457f34 WebCore::RenderTreeUpdater::updateRenderTree(WebCore::ContainerNode&amp;)
25  0x2e145770c WebCore::RenderTreeUpdater::commit(std::__1::unique_ptr&lt;WebCore::Style::Update, std::__1::default_delete&lt;WebCore::Style::Update&gt; &gt;)
26  0x2dec1aac0 WebCore::Document::updateRenderTree(std::__1::unique_ptr&lt;WebCore::Style::Update, std::__1::default_delete&lt;WebCore::Style::Update&gt; &gt;)
27  0x2dec1b198 WebCore::Document::resolveStyle(WebCore::Document::ResolveStyleType)
28  0x2dec1bde8 WebCore::Document::updateStyleIfNeeded()
29  0x2de77d4c0 WebCore::ComputedStyleExtractor::updateStyleIfNeededForProperty(WebCore::Element&amp;, WebCore::CSSPropertyID)
30  0x2de77cfcc WebCore::ComputedStyleExtractor::propertyValue(WebCore::CSSPropertyID, WebCore::ComputedStyleExtractor::UpdateLayout, WebCore::ComputedStyleExtractor::PropertyValueType) const
31  0x2de7c700c std::__1::optional&lt;WebCore::CSSProperty&gt; WebCore::ComputedStyleExtractor::copyProperties(std::__1::span&lt;WebCore::CSSPropertyID const, 18446744073709551615ul&gt;) const::$_17::operator()&lt;WebCore::CSSPropertyID const&gt;(WebCore::CSSPropertyID const&amp;) const
com.apple.WebKit.WebContent.Development terminated (pid 39702) for reason: crash

https://build.webkit.org/results/Apple-Monterey-Debug-AppleSilicon-WK2-Tests/274957@main%20(8215)/results.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2015233</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2024-02-19 13:06:17 -0800</bug_when>
    <thetext>Re-opened since this is blocked by bug 269743</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2015648</commentid>
    <comment_count>8</comment_count>
    <who name="Matt Woodrow">mattwoodrow</who>
    <bug_when>2024-02-20 17:22:49 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/24850</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2015699</commentid>
    <comment_count>9</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-02-21 00:26:17 -0800</bug_when>
    <thetext>Committed 275087@main (1360173f7d2b): &lt;https://commits.webkit.org/275087@main&gt;

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

    </bug>

</bugzilla>