<?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>80564</bug_id>
          
          <creation_ts>2012-03-07 20:19:59 -0800</creation_ts>
          <short_desc>Do not refer to resutlsButtonElement and cancelButtonElement to compute paddings of search popups</short_desc>
          <delta_ts>2012-03-08 08:41:47 -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>Forms</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>80479</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Kent Tamura">tkent</reporter>
          <assigned_to name="Kent Tamura">tkent</assigned_to>
          <cc>dglazkov</cc>
    
    <cc>haraken</cc>
    
    <cc>morrita</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>573537</commentid>
    <comment_count>0</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2012-03-07 20:19:59 -0800</bug_when>
    <thetext>Do not refer to resutlsButtonElement and cancelButtonElement to compute paddings of search popups</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>573539</commentid>
    <comment_count>1</comment_count>
      <attachid>130757</attachid>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2012-03-07 20:27:14 -0800</bug_when>
    <thetext>Created attachment 130757
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>573546</commentid>
    <comment_count>2</comment_count>
      <attachid>130757</attachid>
    <who name="Kentaro Hara">haraken</who>
    <bug_when>2012-03-07 20:33:01 -0800</bug_when>
    <thetext>Comment on attachment 130757
Patch

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

The change looks OK, but I&apos;ll delegate the review to another reviewer since I am not familiar with the rendering text.

&gt; Source/WebCore/ChangeLog:11
&gt; +        No behavior change.

Isn&apos;t there any existing test that _can_ be affected by this change, if the change were wrong? I wanted to see &quot;Test: xxx.html (No change behavior)&quot;, to confirm that the change is correct.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>573547</commentid>
    <comment_count>3</comment_count>
      <attachid>130757</attachid>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2012-03-07 20:36:02 -0800</bug_when>
    <thetext>Comment on attachment 130757
Patch

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

&gt;&gt; Source/WebCore/ChangeLog:11
&gt;&gt; +        No behavior change.
&gt; 
&gt; Isn&apos;t there any existing test that _can_ be affected by this change, if the change were wrong? I wanted to see &quot;Test: xxx.html (No change behavior)&quot;, to confirm that the change is correct.

Unfortunately, none.  We can&apos;t check the appearance of search popup menus because DRT can&apos;t capture them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>573548</commentid>
    <comment_count>4</comment_count>
      <attachid>130757</attachid>
    <who name="Hajime Morrita">morrita</who>
    <bug_when>2012-03-07 20:41:43 -0800</bug_when>
    <thetext>Comment on attachment 130757
Patch

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

&gt;&gt;&gt; Source/WebCore/ChangeLog:11
&gt;&gt;&gt; +        No behavior change.
&gt;&gt; 
&gt;&gt; Isn&apos;t there any existing test that _can_ be affected by this change, if the change were wrong? I wanted to see &quot;Test: xxx.html (No change behavior)&quot;, to confirm that the change is correct.
&gt; 
&gt; Unfortunately, none.  We can&apos;t check the appearance of search popup menus because DRT can&apos;t capture them.

We could grab the shadow tree using internals.shadowRoot() and dump its RenderTree using internals.elementRenderTreeAsText()
You can make a reference DOM tree and compare the render-tree of the shadow tree and the referende DOM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>573550</commentid>
    <comment_count>5</comment_count>
      <attachid>130757</attachid>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2012-03-07 20:47:07 -0800</bug_when>
    <thetext>Comment on attachment 130757
Patch

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

&gt;&gt;&gt;&gt; Source/WebCore/ChangeLog:11
&gt;&gt;&gt;&gt; +        No behavior change.
&gt;&gt;&gt; 
&gt;&gt;&gt; Isn&apos;t there any existing test that _can_ be affected by this change, if the change were wrong? I wanted to see &quot;Test: xxx.html (No change behavior)&quot;, to confirm that the change is correct.
&gt;&gt; 
&gt;&gt; Unfortunately, none.  We can&apos;t check the appearance of search popup menus because DRT can&apos;t capture them.
&gt; 
&gt; We could grab the shadow tree using internals.shadowRoot() and dump its RenderTree using internals.elementRenderTreeAsText()
&gt; You can make a reference DOM tree and compare the render-tree of the shadow tree and the referende DOM.

It is not related to this patch.
This patch doesn&apos;t change any renderer metrics or any DOM values.  RenderTextControlSingleLine::clientInsetRight() and clientInsetLeft() are passed to platform-specific popup-menu implementation via ChromeClient::createSearchPopupMenu(). DRT doesn&apos;t have a way to get these values.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>573567</commentid>
    <comment_count>6</comment_count>
      <attachid>130757</attachid>
    <who name="Hajime Morrita">morrita</who>
    <bug_when>2012-03-07 21:22:58 -0800</bug_when>
    <thetext>Comment on attachment 130757
Patch

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

&gt;&gt;&gt;&gt;&gt; Source/WebCore/ChangeLog:11
&gt;&gt;&gt;&gt;&gt; +        No behavior change.
&gt;&gt;&gt;&gt; 
&gt;&gt;&gt;&gt; Isn&apos;t there any existing test that _can_ be affected by this change, if the change were wrong? I wanted to see &quot;Test: xxx.html (No change behavior)&quot;, to confirm that the change is correct.
&gt;&gt;&gt; 
&gt;&gt;&gt; Unfortunately, none.  We can&apos;t check the appearance of search popup menus because DRT can&apos;t capture them.
&gt;&gt; 
&gt;&gt; We could grab the shadow tree using internals.shadowRoot() and dump its RenderTree using internals.elementRenderTreeAsText()
&gt;&gt; You can make a reference DOM tree and compare the render-tree of the shadow tree and the referende DOM.
&gt; 
&gt; It is not related to this patch.
&gt; This patch doesn&apos;t change any renderer metrics or any DOM values.  RenderTextControlSingleLine::clientInsetRight() and clientInsetLeft() are passed to platform-specific popup-menu implementation via ChromeClient::createSearchPopupMenu(). DRT doesn&apos;t have a way to get these values.

Ah, got it. It would be nice if we have a mock for ChromeClient. But it&apos;s a different story...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>573576</commentid>
    <comment_count>7</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2012-03-07 21:31:46 -0800</bug_when>
    <thetext>Committed r110145: &lt;http://trac.webkit.org/changeset/110145&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>573858</commentid>
    <comment_count>8</comment_count>
    <who name="Dimitri Glazkov (Google)">dglazkov</who>
    <bug_when>2012-03-08 08:41:47 -0800</bug_when>
    <thetext>This is cool.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>130757</attachid>
            <date>2012-03-07 20:27:14 -0800</date>
            <delta_ts>2012-03-07 21:22:58 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-80564-20120308132712.patch</filename>
            <type>text/plain</type>
            <size>3029</size>
            <attacher name="Kent Tamura">tkent</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTEwMTM0CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggZmU5MTVlYzg0OTE3MzEx
M2Fl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uZGVyQm94KCkgOiAwKQotICAgICAgICBwYWRkaW5nICs9IGNhbmNlbFJlbmRlcmVy
LT53aWR0aCgpICsgY2FuY2VsUmVuZGVyZXItPm1hcmdpbkxlZnQoKSArIGNhbmNlbFJlbmRlcmVy
LT5wYWRkaW5nTGVmdCgpICsgY2FuY2VsUmVuZGVyZXItPm1hcmdpblJpZ2h0KCkgKyBjYW5jZWxS
ZW5kZXJlci0+cGFkZGluZ1JpZ2h0KCk7Ci0KKyAgICBpZiAoUmVuZGVyQm94KiBjb250YWluZXJC
b3ggPSBjb250YWluZXJFbGVtZW50KCkgPyBjb250YWluZXJFbGVtZW50KCktPnJlbmRlckJveCgp
IDogMCkgeworICAgICAgICBpZiAoUmVuZGVyQm94KiBpbm5lckJsb2NrQm94ID0gaW5uZXJCbG9j
a0VsZW1lbnQoKSA/IGlubmVyQmxvY2tFbGVtZW50KCktPnJlbmRlckJveCgpIDogMCkKKyAgICAg
ICAgICAgIHBhZGRpbmcgKz0gY29udGFpbmVyQm94LT53aWR0aCgpIC0gKGlubmVyQmxvY2tCb3gt
PngoKSArIGlubmVyQmxvY2tCb3gtPndpZHRoKCkpOworICAgIH0KICAgICByZXR1cm4gcGFkZGlu
ZzsKIH0KIAo=
</data>
<flag name="review"
          id="133850"
          type_id="1"
          status="+"
          setter="morrita"
    />
          </attachment>
      

    </bug>

</bugzilla>