<?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>86770</bug_id>
          
          <creation_ts>2012-05-17 13:08:37 -0700</creation_ts>
          <short_desc>Move logic of checking whether a frame needs to be flattened to RenderFrameBase.</short_desc>
          <delta_ts>2025-07-01 16:04:08 -0700</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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="alan">zalan</reporter>
          <assigned_to name="alan">zalan</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>kenneth</cc>
    
    <cc>koivisto</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>626894</commentid>
    <comment_count>0</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2012-05-17 13:08:37 -0700</bug_when>
    <thetext>So that flattening checking code can somewhat be shared between frameset and iframe. That would eliminate the need of early return and mimicking non-flattening layout case in RenderFrameBase::layoutWithFlattening(), which can get (and is) out of sync in case of iframe layouting.
See below.

RenderFrameBase::layoutWithFlattening(...)
{
...
    if (!width() || !height() || !childRoot) {
        updateWidgetPosition();
        if (childFrameView)
            childFrameView-&gt;layout();
        setNeedsLayout(false);
        return;
...
}

vs.

RenderIFrame::layout() 
{
...
    RenderPart::layout();

    m_overflow.clear();
    addVisualEffectOverflow();
    updateLayerTransform();
    setNeedsLayout(false);
...
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2127129</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-07-01 14:54:04 -0700</bug_when>
    <thetext>https://github.com/WebKit/WebKit/commit/37224f042c178a094cc2287dee595345bc89f687 &lt;- Frame Flattening code is gone, should we close this? @Alan</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>