<?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>147868</bug_id>
          
          <creation_ts>2015-08-10 22:57:43 -0700</creation_ts>
          <short_desc>Selects should scale when rendering while zoomed</short_desc>
          <delta_ts>2015-11-04 17:48:42 -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>WebKit Misc.</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Wenson Hsieh">wenson_hsieh</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>dino</cc>
    
    <cc>esprehn+autocc</cc>
    
    <cc>glenn</cc>
    
    <cc>jonlee</cc>
    
    <cc>kondapallykalyan</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1116496</commentid>
    <comment_count>0</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2015-08-10 22:57:43 -0700</bug_when>
    <thetext>When either the page scale or zoom factor is adjusted, selects should scale accordingly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1116530</commentid>
    <comment_count>1</comment_count>
      <attachid>258715</attachid>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2015-08-11 07:26:32 -0700</bug_when>
    <thetext>Created attachment 258715
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1116611</commentid>
    <comment_count>2</comment_count>
      <attachid>258715</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2015-08-11 11:44:11 -0700</bug_when>
    <thetext>Comment on attachment 258715
Patch

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

&gt; Source/WebCore/rendering/RenderThemeMac.mm:951
&gt; +    float pageScaleFactor = renderer.document().page() ? renderer.document().page()-&gt;pageScaleFactor() : 1.0f;
&gt; +    float deviceScaleFactor = renderer.document().page() ? renderer.document().page()-&gt;deviceScaleFactor() : 1.0f;

Can you elaborate on a case where this function is called and renderer.document().page() returns nullptr? I mean both the old code and new code assume renderer.document().page() is non-null after drawing the cell (well, the new code actually never calls renderer.document().page()-&gt;focusController().setFocusedElementNeedsRepaint() after drawing the cell per my remark below).

1.0f =&gt; 1.0 (by &lt;http://www.webkit.org/coding/coding-style.html#float-suffixes&gt; since it is unnecessary to explicitly force floating point given the context).

&gt; Source/WebCore/rendering/RenderThemeMac.mm:954
&gt; +    if (ThemeMac::drawCellOrFocusRingWithViewIntoContext(popupButton, paintInfo.context, inflatedRect, view, true, shouldDrawFocusRing, shouldUseImageBuffer, deviceScaleFactor) &amp;&amp; shouldDrawFocusRing)

I do not understand the purpose of the conjunct shouldDrawButtonCell. I mean, the condition of this if-statement will always evaluate to false because drawCellFocusRing(), called by ThemeMac::drawCellOrFocusRingWithViewIntoContext(), is hardcoded to return false (why?). Regardless, it should ThemeMac::drawCellOrFocusRingWithViewIntoContext() that tells the caller whether to the repaint

On another note, it is unclear from looking at this line what is the purpose of the fifth argument to drawCellOrFocusRingWithViewIntoContext() without looking at its prototype. I suggest we define a local variable called shouldDrawButtonCell defined to be true and pass this variable as the fifth argument.

&gt; Source/WebCore/rendering/RenderThemeMac.mm:955
&gt; +        renderer.document().page()-&gt;focusController().setFocusedElementNeedsRepaint();

We repeatedly make use of the value of renderer.document().page(). Although the compiler is likely smart enough, I suggest that we cache the return value of renderer.document().page() in a local variable and make us of this local variable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1116616</commentid>
    <comment_count>3</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2015-08-11 11:49:22 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; [...]
&gt; Regardless, it should ThemeMac::drawCellOrFocusRingWithViewIntoContext() that tells the caller whether to the repaint

I meant to write:

It is the responsibility of ThemeMac::drawCellOrFocusRingWithViewIntoContext() to tell the caller to repaint, if necessary, from looking at the implementation of this function.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1116618</commentid>
    <comment_count>4</comment_count>
      <attachid>258715</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2015-08-11 11:50:36 -0700</bug_when>
    <thetext>Comment on attachment 258715
Patch

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

&gt; Source/WebCore/ChangeLog:3
&gt; +        Selects should scale when rendering while zoomed.

Nit: Please remove the period at the end of this line so as to match the title of the Bugzilla bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1116620</commentid>
    <comment_count>5</comment_count>
      <attachid>258715</attachid>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2015-08-11 11:54:01 -0700</bug_when>
    <thetext>Comment on attachment 258715
Patch

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

&gt;&gt; Source/WebCore/ChangeLog:3
&gt;&gt; +        Selects should scale when rendering while zoomed.
&gt; 
&gt; Nit: Please remove the period at the end of this line so as to match the title of the Bugzilla bug.

Oops -- nice catch!

&gt;&gt; Source/WebCore/rendering/RenderThemeMac.mm:951
&gt;&gt; +    float deviceScaleFactor = renderer.document().page() ? renderer.document().page()-&gt;deviceScaleFactor() : 1.0f;
&gt; 
&gt; Can you elaborate on a case where this function is called and renderer.document().page() returns nullptr? I mean both the old code and new code assume renderer.document().page() is non-null after drawing the cell (well, the new code actually never calls renderer.document().page()-&gt;focusController().setFocusedElementNeedsRepaint() after drawing the cell per my remark below).
&gt; 
&gt; 1.0f =&gt; 1.0 (by &lt;http://www.webkit.org/coding/coding-style.html#float-suffixes&gt; since it is unnecessary to explicitly force floating point given the context).

Good point. We assume the page is non-null here, so I&apos;m just being unnecessarily cautious. I&apos;ll take out these null checks.

&gt;&gt; Source/WebCore/rendering/RenderThemeMac.mm:954
&gt;&gt; +    if (ThemeMac::drawCellOrFocusRingWithViewIntoContext(popupButton, paintInfo.context, inflatedRect, view, true, shouldDrawFocusRing, shouldUseImageBuffer, deviceScaleFactor) &amp;&amp; shouldDrawFocusRing)
&gt; 
&gt; I do not understand the purpose of the conjunct shouldDrawButtonCell. I mean, the condition of this if-statement will always evaluate to false because drawCellFocusRing(), called by ThemeMac::drawCellOrFocusRingWithViewIntoContext(), is hardcoded to return false (why?). Regardless, it should ThemeMac::drawCellOrFocusRingWithViewIntoContext() that tells the caller whether to the repaint
&gt; 
&gt; On another note, it is unclear from looking at this line what is the purpose of the fifth argument to drawCellOrFocusRingWithViewIntoContext() without looking at its prototype. I suggest we define a local variable called shouldDrawButtonCell defined to be true and pass this variable as the fifth argument.

Even though the if statement will always return false in this situation, when we implement animated focus rings in the future, we&apos;ll be able to just tweak drawCellOrFocusRingWithViewIntoContext to return true if a repaint is required, and this code should handle animations correctly. We had the same situation in the old button rendering code from before I started the refactoring, so I decided to maintain this behavior.

&gt;&gt; Source/WebCore/rendering/RenderThemeMac.mm:955
&gt;&gt; +        renderer.document().page()-&gt;focusController().setFocusedElementNeedsRepaint();
&gt; 
&gt; We repeatedly make use of the value of renderer.document().page(). Although the compiler is likely smart enough, I suggest that we cache the return value of renderer.document().page() in a local variable and make us of this local variable.

Good point. Will do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1117259</commentid>
    <comment_count>6</comment_count>
      <attachid>258894</attachid>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2015-08-13 10:15:08 -0700</bug_when>
    <thetext>Created attachment 258894
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1117310</commentid>
    <comment_count>7</comment_count>
      <attachid>258894</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2015-08-13 12:09:58 -0700</bug_when>
    <thetext>Comment on attachment 258894
Patch

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

&gt; Source/WebCore/rendering/RenderThemeMac.mm:950
&gt; +    Page *page = renderer.document().page();

Nit: The * should be on the left.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1117318</commentid>
    <comment_count>8</comment_count>
      <attachid>258894</attachid>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2015-08-13 12:22:12 -0700</bug_when>
    <thetext>Comment on attachment 258894
Patch

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

&gt;&gt; Source/WebCore/rendering/RenderThemeMac.mm:950
&gt;&gt; +    Page *page = renderer.document().page();
&gt; 
&gt; Nit: The * should be on the left.

Got it. Should I also change the NSView *view above to match this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1117358</commentid>
    <comment_count>9</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2015-08-13 13:30:56 -0700</bug_when>
    <thetext>Committed r188399: &lt;http://trac.webkit.org/changeset/188399&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1139509</commentid>
    <comment_count>10</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-11-04 17:48:42 -0800</bug_when>
    <thetext>&lt;rdar://problem/23405529&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>258715</attachid>
            <date>2015-08-11 07:26:32 -0700</date>
            <delta_ts>2015-08-13 10:15:04 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-147868-20150811072616.patch</filename>
            <type>text/plain</type>
            <size>2520</size>
            <attacher name="Wenson Hsieh">wenson_hsieh</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTg4MjQyCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggMzBmZmQ2OGQxZTIzOTkx
YjRlODhhMzhiNjM5MWVmNWY2NmEyNGNjNy4uNjU1MzBmZmFkOTM5M2VhM2E5ODE1OTBmODA2MzJk
YmVkNzJhNWRlMyAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1IEBACisyMDE1LTA4LTExICBXZW5z
b24gSHNpZWggIDx3ZW5zb25faHNpZWhAYXBwbGUuY29tPgorCisgICAgICAgIFNlbGVjdHMgc2hv
dWxkIHNjYWxlIHdoZW4gcmVuZGVyaW5nIHdoaWxlIHpvb21lZC4KKyAgICAgICAgaHR0cHM6Ly9i
dWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE0Nzg2OAorCisgICAgICAgIFdoZW4gcmVu
ZGVyaW5nIHpvb21lZCA8c2VsZWN0PiBlbGVtZW50cywgZHJhdyB0byBhbiBpbWFnZSBidWZmZXIg
aW5zdGVhZCBvZiBkcmF3aW5nIGRpcmVjdGx5CisgICAgICAgIGludG8gdGhlIGNvbnRleHQuIFRo
aXMgYWxsb3dzIHVzIHRvIHNjYWxlIHRoZSBpbWFnZSBidWZmZXIgdXAgYmVmb3JlIHJlbmRlcmlu
Zy4KKworICAgICAgICAqIHJlbmRlcmluZy9SZW5kZXJUaGVtZU1hYy5tbToKKyAgICAgICAgKFdl
YkNvcmU6OlJlbmRlclRoZW1lTWFjOjpwYWludE1lbnVMaXN0KTogVXNlI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LCB0cnVlLCBzaG91bGREcmF3Rm9jdXNSaW5nLCBzaG91bGRVc2VJbWFn
ZUJ1ZmZlciwgZGV2aWNlU2NhbGVGYWN0b3IpICYmIHNob3VsZERyYXdGb2N1c1JpbmcpCisgICAg
ICAgIHJlbmRlcmVyLmRvY3VtZW50KCkucGFnZSgpLT5mb2N1c0NvbnRyb2xsZXIoKS5zZXRGb2N1
c2VkRWxlbWVudE5lZWRzUmVwYWludCgpOwogCiAgICAgW3BvcHVwQnV0dG9uIHNldENvbnRyb2xW
aWV3Om5pbF07CiAK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>258894</attachid>
            <date>2015-08-13 10:15:08 -0700</date>
            <delta_ts>2015-08-13 12:09:58 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-147868-20150813101451.patch</filename>
            <type>text/plain</type>
            <size>2458</size>
            <attacher name="Wenson Hsieh">wenson_hsieh</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTg4MjU4CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggZTg5NzY0NjQ4Nzc4OWU2
N2I0MDYyMTkzMzlkYzBlMDM4MWZlMDIxMC4uODFlMWY4NmEyMDk2MDY4N2JjODdjM2M4NmRhNGNm
YTYzMzg0NjdkZiAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1IEBACisyMDE1LTA4LTExICBXZW5z
b24gSHNpZWggIDx3ZW5zb25faHNpZWhAYXBwbGUuY29tPgorCisgICAgICAgIFNlbGVjdHMgc2hv
dWxkIHNjYWxlIHdoZW4gcmVuZGVyaW5nIHdoaWxlIHpvb21lZAorICAgICAgICBodHRwczovL2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mF3Rm9jdXNSaW5nID0gaXNGb2N1c2Vk
KHJlbmRlcmVyKSAmJiByZW5kZXJlci5zdHlsZSgpLm91dGxpbmVTdHlsZUlzQXV0bygpOworICAg
IGJvb2wgc2hvdWxkVXNlSW1hZ2VCdWZmZXIgPSB6b29tTGV2ZWwgIT0gMS4wZiB8fCBwYWdlU2Nh
bGVGYWN0b3IgIT0gMS4wZjsKKyAgICBib29sIHNob3VsZERyYXdDZWxsID0gdHJ1ZTsKKyAgICBp
ZiAoVGhlbWVNYWM6OmRyYXdDZWxsT3JGb2N1c1JpbmdXaXRoVmlld0ludG9Db250ZXh0KHBvcHVw
QnV0dG9uLCBwYWludEluZm8uY29udGV4dCwgaW5mbGF0ZWRSZWN0LCB2aWV3LCBzaG91bGREcmF3
Q2VsbCwgc2hvdWxkRHJhd0ZvY3VzUmluZywgc2hvdWxkVXNlSW1hZ2VCdWZmZXIsIGRldmljZVNj
YWxlRmFjdG9yKSkKKyAgICAgICAgcGFnZS0+Zm9jdXNDb250cm9sbGVyKCkuc2V0Rm9jdXNlZEVs
ZW1lbnROZWVkc1JlcGFpbnQoKTsKIAogICAgIFtwb3B1cEJ1dHRvbiBzZXRDb250cm9sVmlldzpu
aWxdOwogCg==
</data>
<flag name="review"
          id="284083"
          type_id="1"
          status="+"
          setter="dbates"
    />
          </attachment>
      

    </bug>

</bugzilla>