<?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>140849</bug_id>
          
          <creation_ts>2015-01-23 16:53:40 -0800</creation_ts>
          <short_desc>[Win] Cursor copy constructor does not initialize scale factor</short_desc>
          <delta_ts>2015-01-23 22:01:59 -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>Tools / Tests</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brent Fulgham">bfulgham</reporter>
          <assigned_to name="Brent Fulgham">bfulgham</assigned_to>
          <cc>bfulgham</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1063817</commentid>
    <comment_count>0</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-01-23 16:53:40 -0800</bug_when>
    <thetext>The following layout test is failing on [insert platform]

fast/events/mouse-cursor-image-set.html

Probable cause:

Based on the failure, it looks like the scale factor is not getting properly initialized or reported to JS:

--- /home/buildbot/slave/windows-release-tests/build/OpenSource/layout-test-results/fast/events/mouse-cursor-image-set-expected.txt
+++ /home/buildbot/slave/windows-release-tests/build/OpenSource/layout-test-results/fast/events/mouse-cursor-image-set-actual.txt
@@ -9,72 +9,72 @@
 Checking cursors with device pixel ratio of 1
 ----------------------------------------------
 TEST CASE: 25x25 image at 1x
-Cursor Info: type=Custom hotSpot=0,0 image=25x25
+Cursor Info: type=Custom hotSpot=0,0 image=25x25 scale=8.7643683e-34
 
 TEST CASE: 25x25 image at 2x
-Cursor Info: type=Custom hotSpot=0,0 image=25x25 scale=2
+Cursor Info: type=Custom hotSpot=0,0 image=25x25 scale=2.2420775e-44
 
 TEST CASE: 25x25 image at 1x, 30x30 image at 2x
-Cursor Info: type=Custom hotSpot=0,0 image=25x25
+Cursor Info: type=Custom hotSpot=0,0 image=25x25 scale=2.2420775e-44
 
[... etc. ...]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1063868</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-01-23 20:40:01 -0800</bug_when>
    <thetext>The following tests fail due to this bug:

fast/events/mouse-cursor-change.html
fast/events/mouse-cursor-image-set.html
fast/events/mouse-cursor-multiframecur.html
fast/events/mouse-cursor-no-mousemove.html
fast/events/mouse-cursor.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1063872</commentid>
    <comment_count>2</comment_count>
      <attachid>245275</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-01-23 21:21:47 -0800</bug_when>
    <thetext>Created attachment 245275
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1063873</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-01-23 21:26:42 -0800</bug_when>
    <thetext>Committed r179056: &lt;http://trac.webkit.org/changeset/179056&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1063876</commentid>
    <comment_count>4</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-01-23 22:01:59 -0800</bug_when>
    <thetext>Note: A build fix was needed for Mac:

Committed r179057: &lt;https://trac.webkit.org/changeset/179057&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>245275</attachid>
            <date>2015-01-23 21:21:47 -0800</date>
            <delta_ts>2015-01-23 21:24:34 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-140849-20150123212852.patch</filename>
            <type>text/plain</type>
            <size>2057</size>
            <attacher name="Brent Fulgham">bfulgham</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE3OTA1NSkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDIxIEBACisyMDE1LTAxLTIzICBCcmVudCBG
dWxnaGFtICA8YmZ1bGdoYW1AYXBwbGUuY29tPgorCisgICAgICAgIFtXaW5dIEN1cnNvciBjb3B5
IGNvbnN0cnVjdG9yIGRvZXMgbm90IGluaXRpYWxpemUgc2NhbGUgZmFjdG9yCisgICAgICAgIGh0
dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xNDA4NDkKKworICAgICAgICBS
ZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBGb3VuZCBieSBmYXN0L2V2ZW50
cy9tb3VzZS1jdXJzb3ItaW1hZ2Utc2V0Lmh0bWwKKworICAgICAgICBNYWtlIHN1cmUgdGhlIHNj
YWxlIGZhY3RvciBpcyBjYXB0dXJlZCBkdXJpbmcgY29weSBjb25zdHJ1Y3Rpb24uIEFsc28gbWFr
ZSBzdXJlCisgICAgICAgIGl0IGlzIHByb3Blcmx5IGluaXRpYWxpemVkIGluIHRoZSBkZWZhdWx0
IGNvbnN0cnVjdG9yLCBzaW5jZSBpdCBpdCB1c2VkIGluIHRoZQorICAgICAgICBXaW5kb3d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AgICAgICB7CiAgICAgICAgIH0KSW5kZXg6IFNvdXJjZS9XZWJD
b3JlL3BsYXRmb3JtL3dpbi9DdXJzb3JXaW4uY3BwCj09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFNvdXJjZS9XZWJD
b3JlL3BsYXRmb3JtL3dpbi9DdXJzb3JXaW4uY3BwCShyZXZpc2lvbiAxNzkwMzUpCisrKyBTb3Vy
Y2UvV2ViQ29yZS9wbGF0Zm9ybS93aW4vQ3Vyc29yV2luLmNwcAkod29ya2luZyBjb3B5KQpAQCAt
MjcyLDYgKzI3Miw5IEBAIEN1cnNvcjo6Q3Vyc29yKGNvbnN0IEN1cnNvciYgb3RoZXIpCiAgICAg
OiBtX3R5cGUob3RoZXIubV90eXBlKQogICAgICwgbV9pbWFnZShvdGhlci5tX2ltYWdlKQogICAg
ICwgbV9ob3RTcG90KG90aGVyLm1faG90U3BvdCkKKyNpZiBFTkFCTEUoTU9VU0VfQ1VSU09SX1ND
QUxFKQorICAgICwgbV9pbWFnZVNjYWxlRmFjdG9yKG90aGVyLm1faW1hZ2VTY2FsZUZhY3RvcikK
KyNlbmRpZgogICAgICwgbV9wbGF0Zm9ybUN1cnNvcihvdGhlci5tX3BsYXRmb3JtQ3Vyc29yKQog
ewogfQo=
</data>
<flag name="review"
          id="270221"
          type_id="1"
          status="+"
          setter="koivisto"
    />
          </attachment>
      

    </bug>

</bugzilla>