<?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>50982</bug_id>
          
          <creation_ts>2010-12-13 15:02:34 -0800</creation_ts>
          <short_desc>ViewportArguments.h uses an enum to intialize a bool</short_desc>
          <delta_ts>2010-12-23 20:32:10 -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>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</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>51551</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Evan Martin">evan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>kenneth</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>321459</commentid>
    <comment_count>0</comment_count>
    <who name="Evan Martin">evan</who>
    <bug_when>2010-12-13 15:02:34 -0800</bug_when>
    <thetext>r69316 changed userScalable from a float to a bool.
However, userScalable is initialized from an enum in the constructor, and the enum value is ValueAuto (-1).  This produces a compiler warning and probably isn&apos;t doing what we want.

third_party/WebKit/WebCore/dom/ViewportArguments.h(78) : warning C4305: &apos;initializing&apos; : truncation from &apos;&apos; to &apos;bool&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>326212</commentid>
    <comment_count>1</comment_count>
      <attachid>77358</attachid>
    <who name="Evan Martin">evan</who>
    <bug_when>2010-12-23 12:25:33 -0800</bug_when>
    <thetext>Created attachment 77358
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>326214</commentid>
    <comment_count>2</comment_count>
    <who name="Evan Martin">evan</who>
    <bug_when>2010-12-23 12:26:58 -0800</bug_when>
    <thetext>I don&apos;t really know what I&apos;m doing so please review carefully.  But I figure -1 is also true so this should be the same thing(?).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>326221</commentid>
    <comment_count>3</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2010-12-23 12:37:22 -0800</bug_when>
    <thetext>Well ValueAuto means that it is unset and thus will use the default (which might depend on some of the other values). I guess the most right thing is to make userScalable a float and convert it to true or false in the compute* method. For instance if I set min-scale = 1.0 and max-scale = 1.0, it is basically not scalable, but I guess the iPhone might still consider it scalable, as it affects more than just the scale change. From docs: Setting user-scalable to no also prevents a webpage from scrolling when entering text in an input field.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>326252</commentid>
    <comment_count>4</comment_count>
    <who name="Evan Martin">evan</who>
    <bug_when>2010-12-23 13:16:58 -0800</bug_when>
    <thetext>Kenneth, what do you think of the patch I uploaded?  It at least doesn&apos;t change the current behavior of the code.  I&apos;m reluctant to try to change the semantics of userScalable since I don&apos;t really understand what it means or how it&apos;s used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>326305</commentid>
    <comment_count>5</comment_count>
    <who name="Kenneth Rohde Christiansen">kenneth</who>
    <bug_when>2010-12-23 15:09:34 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; Kenneth, what do you think of the patch I uploaded?  It at least doesn&apos;t change the current behavior of the code.  I&apos;m reluctant to try to change the semantics of userScalable since I don&apos;t really understand what it means or how it&apos;s used.

It is fine, as you said it should give the correct behavior. Thanks for doing this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>326452</commentid>
    <comment_count>6</comment_count>
      <attachid>77358</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-12-23 20:32:04 -0800</bug_when>
    <thetext>Comment on attachment 77358
Patch

Clearing flags on attachment: 77358

Committed r74610: &lt;http://trac.webkit.org/changeset/74610&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>326453</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-12-23 20:32:10 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>77358</attachid>
            <date>2010-12-23 12:25:33 -0800</date>
            <delta_ts>2010-12-23 20:32:04 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-50982-20101223122530.patch</filename>
            <type>text/plain</type>
            <size>1180</size>
            <attacher name="Evan Martin">evan</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
NTBiZGE4NGYyYjUwMDc5ODNlNjZmNGY1ODUxYzYzNGJlZTc1ZTlmZS4uMGNlNjQ3ODU4OWI2ZTBi
ODZmMGYxOTI2MWYyNjQ1MjNmN2NjYWY3YiAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cK
KysrIGIvV2ViQ29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNiBAQAorMjAxMC0xMi0yMyAgRXZh
biBNYXJ0aW4gIDxldmFuQGNocm9taXVtLm9yZz4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JP
RFkgKE9PUFMhKS4KKworICAgICAgICBWaWV3cG9ydEFyZ3VtZW50cy5oIHVzZXMgYW4gZW51bSB0
byBpbnRpYWxpemUgYSBib29sCisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3df
YnVnLmNnaT9pZD01MDk4MgorCisgICAgICAgIEluaXRpYWxpemUgdXNlclNjYWxhYmxlIHRvIHRy
dWUsIHJhdGhlciB0aGFuIC0xLgorICAgICAgICBObyB0ZXN0czsgZml4ZXMgYSBjb21waWxlciB3
YXJuaW5nLgorCisgICAgICAgICogZG9tL1ZpZXdwb3J0QXJndW1lbnRzLmg6CisgICAgICAgIChX
ZWJDb3JlOjpWaWV3cG9ydEFyZ3VtZW50czo6Vmlld3BvcnRBcmd1bWVudHMpOgorCiAyMDEwLTEy
LTIyICBNYXR0aGV3IERlbGFuZXkgIDxtZGVsYW5leUBhcHBsZS5jb20+CiAKICAgICAgICAgUmV2
aWV3ZWQgYnkgU2ltb24gRnJhc2VyLgpkaWZmIC0tZ2l0IGEvV2ViQ29yZS9kb20vVmlld3BvcnRB
cmd1bWVudHMuaCBiL1dlYkNvcmUvZG9tL1ZpZXdwb3J0QXJndW1lbnRzLmgKaW5kZXggYTMxZTAw
OWRjNGVmNmQ3MjViMWEwZTlmMTIwYWI5NjNiZmYzNTdlNC4uNGY2NzhmMzNjOTExOTA1MDUwM2Yw
NGZhZTA5NDBkMWNlYTZlYWRlMSAxMDA2NDQKLS0tIGEvV2ViQ29yZS9kb20vVmlld3BvcnRBcmd1
bWVudHMuaAorKysgYi9XZWJDb3JlL2RvbS9WaWV3cG9ydEFyZ3VtZW50cy5oCkBAIC03NCw3ICs3
NCw3IEBAIHN0cnVjdCBWaWV3cG9ydEFyZ3VtZW50cyB7CiAgICAgICAgICwgd2lkdGgoVmFsdWVB
dXRvKQogICAgICAgICAsIGhlaWdodChWYWx1ZUF1dG8pCiAgICAgICAgICwgdGFyZ2V0RGVuc2l0
eURwaShWYWx1ZUF1dG8pCi0gICAgICAgICwgdXNlclNjYWxhYmxlKFZhbHVlQXV0bykKKyAgICAg
ICAgLCB1c2VyU2NhbGFibGUodHJ1ZSkKICAgICB7CiAgICAgfQogCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>