<?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>224050</bug_id>
          
          <creation_ts>2021-04-01 08:56:15 -0700</creation_ts>
          <short_desc>Rename RenderBox::shouldIgnoreAspectRatio</short_desc>
          <delta_ts>2021-04-30 08:56:57 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="alan">zalan</reporter>
          <assigned_to name="alan">zalan</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>changseok</cc>
    
    <cc>esprehn+autocc</cc>
    
    <cc>ews-watchlist</cc>
    
    <cc>glenn</cc>
    
    <cc>kondapallykalyan</cc>
    
    <cc>pdr</cc>
    
    <cc>rbuis</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>1746046</commentid>
    <comment_count>0</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2021-04-01 08:56:15 -0700</bug_when>
    <thetext>This function is about whether the aspect ratio value is applicable and set to a value other than auto and not whether we should ignore the aspect ratio (and we ignore the aspect ratio value for some other reasons)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746049</commentid>
    <comment_count>1</comment_count>
      <attachid>424900</attachid>
    <who name="alan">zalan</who>
    <bug_when>2021-04-01 09:00:39 -0700</bug_when>
    <thetext>Created attachment 424900
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746062</commentid>
    <comment_count>2</comment_count>
      <attachid>424900</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-04-01 09:26:21 -0700</bug_when>
    <thetext>Comment on attachment 424900
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=424900&amp;action=review

&gt; Source/WebCore/rendering/RenderBox.cpp:5098
&gt; +static inline bool hasAspectRatio(const RenderBox&amp; renderer)

This name is worse than the old one. It should be more like canUseAspectRatio() or aspectRatioApplies().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746080</commentid>
    <comment_count>3</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2021-04-01 09:59:44 -0700</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #2)
&gt; Comment on attachment 424900 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=424900&amp;action=review
&gt; 
&gt; &gt; Source/WebCore/rendering/RenderBox.cpp:5098
&gt; &gt; +static inline bool hasAspectRatio(const RenderBox&amp; renderer)
&gt; 
&gt; This name is worse than the old one. It should be more like
&gt; canUseAspectRatio() or aspectRatioApplies().
The function name certainly can be improved but it is definitely not as misleading as the initial name.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746088</commentid>
    <comment_count>4</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2021-04-01 10:15:52 -0700</bug_when>
    <thetext>(In reply to zalan from comment #3)
&gt; (In reply to Simon Fraser (smfr) from comment #2)
&gt; &gt; Comment on attachment 424900 [details]
&gt; &gt; Patch
&gt; &gt; 
&gt; &gt; View in context:
&gt; &gt; https://bugs.webkit.org/attachment.cgi?id=424900&amp;action=review
&gt; &gt; 
&gt; &gt; &gt; Source/WebCore/rendering/RenderBox.cpp:5098
&gt; &gt; &gt; +static inline bool hasAspectRatio(const RenderBox&amp; renderer)
&gt; &gt; 
&gt; &gt; This name is worse than the old one. It should be more like
&gt; &gt; canUseAspectRatio() or aspectRatioApplies().
&gt; The function name certainly can be improved but it is definitely not as
&gt; misleading as the initial name.
This was supposed to be just an extended version of RenderStyle::hasAspectRatio() taking the box type into account.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746098</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-04-01 10:54:36 -0700</bug_when>
    <thetext>(In reply to zalan from comment #4)
&gt; (In reply to zalan from comment #3)
&gt; &gt; (In reply to Simon Fraser (smfr) from comment #2)
&gt; &gt; &gt; Comment on attachment 424900 [details]
&gt; &gt; &gt; Patch
&gt; &gt; &gt; 
&gt; &gt; &gt; View in context:
&gt; &gt; &gt; https://bugs.webkit.org/attachment.cgi?id=424900&amp;action=review
&gt; &gt; &gt; 
&gt; &gt; &gt; &gt; Source/WebCore/rendering/RenderBox.cpp:5098
&gt; &gt; &gt; &gt; +static inline bool hasAspectRatio(const RenderBox&amp; renderer)
&gt; &gt; &gt; 
&gt; &gt; &gt; This name is worse than the old one. It should be more like
&gt; &gt; &gt; canUseAspectRatio() or aspectRatioApplies().
&gt; &gt; The function name certainly can be improved but it is definitely not as
&gt; &gt; misleading as the initial name.
&gt; This was supposed to be just an extended version of
&gt; RenderStyle::hasAspectRatio() taking the box type into account.

hasAspectRatio(const RenderBox&amp; renderer) sounds like it&apos;s asking &quot;does this box have aspect ratio&quot;, by which we really mean &quot;does this box have dimensions controlled by the aspect-ratio property: But aspect-ratio has all these other constraints, like non-auto dimensions. I think it&apos;s different from transform in that way, so following hasTransform() is confusing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1746224</commentid>
    <comment_count>6</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2021-04-01 13:33:55 -0700</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #5)
&gt; (In reply to zalan from comment #4)
&gt; &gt; (In reply to zalan from comment #3)
&gt; &gt; &gt; (In reply to Simon Fraser (smfr) from comment #2)
&gt; &gt; &gt; &gt; Comment on attachment 424900 [details]
&gt; &gt; &gt; &gt; Patch
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; View in context:
&gt; &gt; &gt; &gt; https://bugs.webkit.org/attachment.cgi?id=424900&amp;action=review
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; &gt; Source/WebCore/rendering/RenderBox.cpp:5098
&gt; &gt; &gt; &gt; &gt; +static inline bool hasAspectRatio(const RenderBox&amp; renderer)
&gt; &gt; &gt; &gt; 
&gt; &gt; &gt; &gt; This name is worse than the old one. It should be more like
&gt; &gt; &gt; &gt; canUseAspectRatio() or aspectRatioApplies().
&gt; &gt; &gt; The function name certainly can be improved but it is definitely not as
&gt; &gt; &gt; misleading as the initial name.
&gt; &gt; This was supposed to be just an extended version of
&gt; &gt; RenderStyle::hasAspectRatio() taking the box type into account.
&gt; 
&gt; hasAspectRatio(const RenderBox&amp; renderer) sounds like it&apos;s asking &quot;does this
&gt; box have aspect ratio&quot;, by which we really mean &quot;does this box have
&gt; dimensions controlled by the aspect-ratio property: But aspect-ratio has all
&gt; these other constraints, like non-auto dimensions. I think it&apos;s different
&gt; from transform in that way, so following hasTransform() is confusing.
I agree it&apos;s not the same and that&apos;s why I moved it out of the class (to reduce visibility/misuse) I find it difficult to come up with a meaningful/proper name.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1748310</commentid>
    <comment_count>7</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-04-08 08:57:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/76403114&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1755694</commentid>
    <comment_count>8</comment_count>
    <who name="Rob Buis">rbuis</who>
    <bug_when>2021-04-30 08:56:57 -0700</bug_when>
    <thetext>I like the idea of the patch. Maybe something like canApplyAspectRatio?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>424900</attachid>
            <date>2021-04-01 09:00:39 -0700</date>
            <delta_ts>2021-04-01 10:00:01 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-224050-20210401090039.patch</filename>
            <type>text/plain</type>
            <size>2940</size>
            <attacher name="alan">zalan</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjc1MzYxCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggZTBhMGVlMGMxZDliMTQ5
ODUwMWIzODk1ZmQzMjI3ZWFkMjA4OGI2MS4uMDU4MjhlNWE0ZmY5NzA0MmEzZGI5MGY5N2ZjYjI4
MjMwNDlhZmUwYSAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDIwIEBACisyMDIxLTA0LTAxICBaYWxh
biBCdWp0YXMgIDx6YWxhbkBhcHBsZS5jb20+CisKKyAgICAgICAgUmVuYW1lIFJlbmRlckJveDo6
c2hvdWxkSWdub3JlQXNwZWN0UmF0aW8KKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcv
c2hvd19idWcuY2dpP2lkPTIyNDA1MAorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09Q
UyEpLgorCisgICAgICAgIFRoaXMgZnVuY3Rpb24gaXMgYWJvdXQgd2hldGhlciB0aGUgYXNwZWN0
IHJhdGlvIHByb3BlcnR5IGlzIGFwcGxpY2FibGUgYW5kIGhhcyBhIG5vbi1hdXRvIHZhbHVlCisg
ICAgICAgIChhbmQgc29t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