<?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>96804</bug_id>
          
          <creation_ts>2012-09-14 10:17:33 -0700</creation_ts>
          <short_desc>Make computeLogicalHeight virtual and updateLogicalHeight non-virtual.</short_desc>
          <delta_ts>2022-09-16 11:59:19 -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>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>
          <dependson>97049</dependson>
    
    <dependson>97263</dependson>
    
    <dependson>97475</dependson>
    
    <dependson>97486</dependson>
    
    <dependson>98677</dependson>
    
    <dependson>99348</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tony Chang">tony</reporter>
          <assigned_to name="Rob Buis">rbuis</assigned_to>
          <cc>changseok</cc>
    
    <cc>donggwan.kim</cc>
    
    <cc>esprehn+autocc</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>glenn</cc>
    
    <cc>hyatt</cc>
    
    <cc>kondapallykalyan</cc>
    
    <cc>leviw</cc>
    
    <cc>mstensho</cc>
    
    <cc>ntim</cc>
    
    <cc>pdr</cc>
    
    <cc>rbuis</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>720894</commentid>
    <comment_count>0</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2012-09-14 10:17:33 -0700</bug_when>
    <thetext>In bug 94982, the code for computeLogicalHeight was made const and put int a non-virtual function.  This got rid of some hacks where we would store the old height, call computeLogicalHeight, then restore the old height.

However, in the new code, it&apos;s hard to use computeLogicalHeight because it&apos;s not virtual so if you call it on a pointer and your pointer overrides updateLogicalHeight (e.g., it&apos;s an iframe), it&apos;ll do the wrong thing.  See RenderBlock::computeBlockPreferredLogicalWidths for an example of where we would like to use childBox-&gt;computeLogicalHeight(..), but it crashes because sometimes childBox is a RenderView, which overrides updateLogicalHeight().

I think long term, we want to make computeLogicalHeight virtual and move code from the subclass updateLogicalHeight into it and then make updateLogicalHeight non-virtual.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>742388</commentid>
    <comment_count>1</comment_count>
    <who name="Tony Chang">tony</who>
    <bug_when>2012-10-15 13:57:28 -0700</bug_when>
    <thetext>computeLogicalHeight is now virtual, however, I can&apos;t make updateLogicalHeight virtual because of RenderMultiColumnSet, which sets a member variable during updateLogicalHeight.

It looks like that variable is the same as logicalHeight right now, but the comments suggest that there is a future use for it.  I&apos;d like to remove RenderMultiColumnSet::m_computedColumnHeight.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>785202</commentid>
    <comment_count>2</comment_count>
    <who name="Dave Hyatt">hyatt</who>
    <bug_when>2012-12-06 13:37:25 -0800</bug_when>
    <thetext>Yeah, you&apos;re not going to be able to remove this. It&apos;s going to be needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>892175</commentid>
    <comment_count>3</comment_count>
    <who name="Morten Stenshorne">mstensho</who>
    <bug_when>2013-05-22 01:39:28 -0700</bug_when>
    <thetext>FYI: the RenderMultiColumnSet::updateLogicalHeight() override is going away with the fix for https://bugs.webkit.org/show_bug.cgi?id=116033 , but in the meantime (after this bug was reported) RenderRegion::updateLogicalHeight() has appeared.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1898697</commentid>
    <comment_count>4</comment_count>
      <attachid>462358</attachid>
    <who name="Rob Buis">rbuis</who>
    <bug_when>2022-09-15 07:31:00 -0700</bug_when>
    <thetext>Created attachment 462358
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1899018</commentid>
    <comment_count>5</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-09-16 10:51:34 -0700</bug_when>
    <thetext>r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1899042</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-09-16 11:58:03 -0700</bug_when>
    <thetext>Committed 254564@main (c096c71bf576): &lt;https://commits.webkit.org/254564@main&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 462358.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1899043</commentid>
    <comment_count>7</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-09-16 11:59:19 -0700</bug_when>
    <thetext>&lt;rdar://problem/100036927&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>462358</attachid>
            <date>2022-09-15 07:31:00 -0700</date>
            <delta_ts>2022-09-16 11:58:04 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-96804-20220915153058.patch</filename>
            <type>text/plain</type>
            <size>1107</size>
            <attacher name="Rob Buis">rbuis</attacher>
            
              <data encoding="base64">RnJvbSA5NWNjNWVkMGZiNTk2MzMwOTEzMjg4NzAyMTEyYTdkZmFiYjE3MmUzIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBSb2IgQnVpcyA8cmJ1aXNAaWdhbGlhLmNvbT4KRGF0ZTogVGh1
LCAxNSBTZXAgMjAyMiAxNToyOTowMiArMDEwMApTdWJqZWN0OiBbUEFUQ0hdIE1ha2UgY29tcHV0
ZUxvZ2ljYWxIZWlnaHQgdmlydH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