<?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>142784</bug_id>
          
          <creation_ts>2015-03-17 09:04:51 -0700</creation_ts>
          <short_desc>[WinCairo] Video position is incorrect when located inside a frame.</short_desc>
          <delta_ts>2015-03-18 09:18:40 -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>WebCore 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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>peavo</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bfulgham</cc>
    
    <cc>ossy</cc>
    
    <cc>peavo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1077890</commentid>
    <comment_count>0</comment_count>
    <who name="">peavo</who>
    <bug_when>2015-03-17 09:04:51 -0700</bug_when>
    <thetext>We need to take the enclosing frame&apos;s position into account, when finding the video position.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1077891</commentid>
    <comment_count>1</comment_count>
      <attachid>248850</attachid>
    <who name="">peavo</who>
    <bug_when>2015-03-17 09:08:29 -0700</bug_when>
    <thetext>Created attachment 248850
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1077896</commentid>
    <comment_count>2</comment_count>
      <attachid>248850</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-03-17 09:17:05 -0700</bug_when>
    <thetext>Comment on attachment 248850
Patch

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

This looks good to me. Could you please use &quot;positionInWIndow&quot; instead of &quot;posInWindow&quot; when you land it?

&gt; Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:207
&gt; +    IntPoint posInWindow(m_lastPaintRect.location());

I think this should be called &quot;positionInWIndow&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1077897</commentid>
    <comment_count>3</comment_count>
    <who name="">peavo</who>
    <bug_when>2015-03-17 09:22:10 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Comment on attachment 248850 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=248850&amp;action=review
&gt; 
&gt; This looks good to me. Could you please use &quot;positionInWIndow&quot; instead of
&gt; &quot;posInWindow&quot; when you land it?
&gt; 
&gt; &gt; Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:207
&gt; &gt; +    IntPoint posInWindow(m_lastPaintRect.location());
&gt; 
&gt; I think this should be called &quot;positionInWIndow&quot;.

Thanks :) Will do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1077899</commentid>
    <comment_count>4</comment_count>
      <attachid>248850</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2015-03-17 09:25:46 -0700</bug_when>
    <thetext>Comment on attachment 248850
Patch

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

&gt;&gt;&gt; Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:207
&gt;&gt;&gt; +    IntPoint posInWindow(m_lastPaintRect.location());
&gt;&gt; 
&gt;&gt; I think this should be called &quot;positionInWIndow&quot;.
&gt; 
&gt; Thanks :) Will do.

Of course, I meant &quot;positionInWindow&quot;, not &quot;positionInWIndow&quot; ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1077902</commentid>
    <comment_count>5</comment_count>
    <who name="">peavo</who>
    <bug_when>2015-03-17 09:36:15 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Comment on attachment 248850 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=248850&amp;action=review
&gt; 
&gt; &gt;&gt;&gt; Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:207
&gt; &gt;&gt;&gt; +    IntPoint posInWindow(m_lastPaintRect.location());
&gt; &gt;&gt; 
&gt; &gt;&gt; I think this should be called &quot;positionInWIndow&quot;.
&gt; &gt; 
&gt; &gt; Thanks :) Will do.
&gt; 
&gt; Of course, I meant &quot;positionInWindow&quot;, not &quot;positionInWIndow&quot; ;-)

Exactly ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1077975</commentid>
    <comment_count>6</comment_count>
    <who name="">peavo</who>
    <bug_when>2015-03-17 14:35:22 -0700</bug_when>
    <thetext>Committed r181665: &lt;http://trac.webkit.org/changeset/181665&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1078148</commentid>
    <comment_count>7</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2015-03-18 01:55:14 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; Committed r181665: &lt;http://trac.webkit.org/changeset/181665&gt;

This WinCairo fix broke the WinCairo build, it is so funny. :))

..\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(215): error C2664: &apos;WebCore::IntPoint WebCore::Widget::convertToContainingWindow(const WebCore::IntPoint &amp;) const&apos; : cannot convert argument 1 from &apos;WebCore::FloatPoint&apos; to &apos;const WebCore::IntRect &amp;&apos; [C:\cygwin\home\webkitbot\win-cairo-release\build\Source\WebCore\WebCore.vcxproj\WebCore.vcxproj]
          Reason: cannot convert from &apos;WebCore::FloatPoint&apos; to &apos;const WebCore::IntRect&apos;
          No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
c:\cygwin\home\webkitbot\win-cairo-release\build\source\webcore\html\htmlelement.cpp(492): warning C4701: potentially uninitialized local variable &apos;c&apos; used [C:\cygwin\home\webkitbot\win-cairo-release\build\Source\WebCore\WebCore.vcxproj\WebCore.vcxproj]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1078224</commentid>
    <comment_count>8</comment_count>
    <who name="">peavo</who>
    <bug_when>2015-03-18 09:18:40 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; Committed r181665: &lt;http://trac.webkit.org/changeset/181665&gt;
&gt; 
&gt; This WinCairo fix broke the WinCairo build, it is so funny. :))
&gt; 
&gt; ..\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(215): error
&gt; C2664: &apos;WebCore::IntPoint WebCore::Widget::convertToContainingWindow(const
&gt; WebCore::IntPoint &amp;) const&apos; : cannot convert argument 1 from
&gt; &apos;WebCore::FloatPoint&apos; to &apos;const WebCore::IntRect &amp;&apos;
&gt; [C:\cygwin\home\webkitbot\win-cairo-release\build\Source\WebCore\WebCore.
&gt; vcxproj\WebCore.vcxproj]
&gt;           Reason: cannot convert from &apos;WebCore::FloatPoint&apos; to &apos;const
&gt; WebCore::IntRect&apos;
&gt;           No user-defined-conversion operator available that can perform
&gt; this conversion, or the operator cannot be called
&gt; c:\cygwin\home\webkitbot\win-cairo-
&gt; release\build\source\webcore\html\htmlelement.cpp(492): warning C4701:
&gt; potentially uninitialized local variable &apos;c&apos; used
&gt; [C:\cygwin\home\webkitbot\win-cairo-release\build\Source\WebCore\WebCore.
&gt; vcxproj\WebCore.vcxproj]

Sorry for this, committed fix in &lt;http://trac.webkit.org/changeset/181694&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>248850</attachid>
            <date>2015-03-17 09:08:29 -0700</date>
            <delta_ts>2015-03-17 09:17:05 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-142784-20150317170750.patch</filename>
            <type>text/plain</type>
            <size>2274</size>
            <attacher>peavo</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE4MTY1MCkKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDE1IEBACisyMDE1LTAzLTE3ICBQZXIgQXJu
ZSBWb2xsYW4gIDxwZWF2b0BvdXRsb29rLmNvbT4KKworICAgICAgICBbV2luQ2Fpcm9dIFZpZGVv
IHBvc2l0aW9uIGlzIGluY29ycmVjdCB3aGVuIGxvY2F0ZWQgaW5zaWRlIGEgZnJhbWUuCisgICAg
ICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9pZD0xNDI3ODQKKworICAg
ICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBXZSBuZWVkIHRvIHRh
a2UgdGhlIGVuY2xvc2luZyBmcmFtZSdzIHBvc2l0aW9uIGludG8gYWNjb3VudCwgd2hlbiBmaW5k
aW5nIHRoZSB2aWRlbyBwb3NpdGlvbi4KKworICAgICAgICAqIHBsYXRmb3JtL2dyYXBoaWNzL3dp
bi9NZWRpYVBsYXllclByaXZhdGVNZWRpYUZvdW5kYXRpb24uY3BwOgorICAgICAgICAoV2ViQ29y
ZTo6TWVkaWFQbGF5ZXJQcml2YXRlTWVkaWFGb3VuZGF0aW9uOjpzZXRTaXplKToKKwogMjAxNS0w
My0xNyAgQ2hyaXMgRHVtZXogIDxjZHVtZXpAYXBwbGUuY29tPgogCi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mZzZXQgPSB2aWV3LT5zY3JvbGxPZmZzZXRGb3JGaXhlZFBvc2l0aW9uKCk7CisgICAg
ICAgIHBvc0luV2luZG93ID0gdmlldy0+Y29udmVydFRvQ29udGFpbmluZ1dpbmRvdyhtX2xhc3RQ
YWludFJlY3QubG9jYXRpb24oKSk7CisgICAgfQogCi0gICAgaW50IHhQb3MgPSAtc2Nyb2xsT2Zm
c2V0LndpZHRoKCkudG9JbnQoKSArIG1fbGFzdFBhaW50UmVjdC54KCk7Ci0gICAgaW50IHlQb3Mg
PSAtc2Nyb2xsT2Zmc2V0LmhlaWdodCgpLnRvSW50KCkgKyBtX2xhc3RQYWludFJlY3QueSgpOwor
ICAgIHBvc0luV2luZG93Lm1vdmUoLXNjcm9sbE9mZnNldC53aWR0aCgpLnRvSW50KCksIC1zY3Jv
bGxPZmZzZXQuaGVpZ2h0KCkudG9JbnQoKSk7CiAKICAgICBpZiAobV9od25kVmlkZW8gJiYgIW1f
bGFzdFBhaW50UmVjdC5pc0VtcHR5KCkpCi0gICAgICAgIDo6TW92ZVdpbmRvdyhtX2h3bmRWaWRl
bywgeFBvcywgeVBvcywgbV9zaXplLndpZHRoKCksIG1fc2l6ZS5oZWlnaHQoKSwgRkFMU0UpOwor
ICAgICAgICA6Ok1vdmVXaW5kb3cobV9od25kVmlkZW8sIHBvc0luV2luZG93LngoKSwgcG9zSW5X
aW5kb3cueSgpLCBtX3NpemUud2lkdGgoKSwgbV9zaXplLmhlaWdodCgpLCBGQUxTRSk7CiAKICAg
ICBSRUNUIHJjID0geyAwLCAwLCBtX3NpemUud2lkdGgoKSwgbV9zaXplLmhlaWdodCgpIH07CiAg
ICAgbV92aWRlb0Rpc3BsYXktPlNldFZpZGVvUG9zaXRpb24obnVsbHB0ciwgJnJjKTsK
</data>
<flag name="review"
          id="273710"
          type_id="1"
          status="+"
          setter="bfulgham"
    />
          </attachment>
      

    </bug>

</bugzilla>