Bug 142784

Summary: [WinCairo] Video position is incorrect when located inside a frame.
Product: WebKit Reporter: peavo
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, bfulgham, ossy, peavo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch bfulgham: review+

peavo
Reported 2015-03-17 09:04:51 PDT
We need to take the enclosing frame's position into account, when finding the video position.
Attachments
Patch (2.22 KB, patch)
2015-03-17 09:08 PDT, peavo
bfulgham: review+
peavo
Comment 1 2015-03-17 09:08:29 PDT
Brent Fulgham
Comment 2 2015-03-17 09:17:05 PDT
Comment on attachment 248850 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=248850&action=review This looks good to me. Could you please use "positionInWIndow" instead of "posInWindow" when you land it? > Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:207 > + IntPoint posInWindow(m_lastPaintRect.location()); I think this should be called "positionInWIndow".
peavo
Comment 3 2015-03-17 09:22:10 PDT
(In reply to comment #2) > Comment on attachment 248850 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=248850&action=review > > This looks good to me. Could you please use "positionInWIndow" instead of > "posInWindow" when you land it? > > > Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:207 > > + IntPoint posInWindow(m_lastPaintRect.location()); > > I think this should be called "positionInWIndow". Thanks :) Will do.
Brent Fulgham
Comment 4 2015-03-17 09:25:46 PDT
Comment on attachment 248850 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=248850&action=review >>> Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:207 >>> + IntPoint posInWindow(m_lastPaintRect.location()); >> >> I think this should be called "positionInWIndow". > > Thanks :) Will do. Of course, I meant "positionInWindow", not "positionInWIndow" ;-)
peavo
Comment 5 2015-03-17 09:36:15 PDT
(In reply to comment #4) > Comment on attachment 248850 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=248850&action=review > > >>> Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:207 > >>> + IntPoint posInWindow(m_lastPaintRect.location()); > >> > >> I think this should be called "positionInWIndow". > > > > Thanks :) Will do. > > Of course, I meant "positionInWindow", not "positionInWIndow" ;-) Exactly ;)
peavo
Comment 6 2015-03-17 14:35:22 PDT
Csaba Osztrogonác
Comment 7 2015-03-18 01:55:14 PDT
(In reply to comment #6) > Committed r181665: <http://trac.webkit.org/changeset/181665> This WinCairo fix broke the WinCairo build, it is so funny. :)) ..\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(215): error C2664: 'WebCore::IntPoint WebCore::Widget::convertToContainingWindow(const WebCore::IntPoint &) const' : cannot convert argument 1 from 'WebCore::FloatPoint' to 'const WebCore::IntRect &' [C:\cygwin\home\webkitbot\win-cairo-release\build\Source\WebCore\WebCore.vcxproj\WebCore.vcxproj] Reason: cannot convert from 'WebCore::FloatPoint' to 'const WebCore::IntRect' 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 'c' used [C:\cygwin\home\webkitbot\win-cairo-release\build\Source\WebCore\WebCore.vcxproj\WebCore.vcxproj]
peavo
Comment 8 2015-03-18 09:18:40 PDT
(In reply to comment #7) > (In reply to comment #6) > > Committed r181665: <http://trac.webkit.org/changeset/181665> > > This WinCairo fix broke the WinCairo build, it is so funny. :)) > > ..\platform\graphics\win\MediaPlayerPrivateMediaFoundation.cpp(215): error > C2664: 'WebCore::IntPoint WebCore::Widget::convertToContainingWindow(const > WebCore::IntPoint &) const' : cannot convert argument 1 from > 'WebCore::FloatPoint' to 'const WebCore::IntRect &' > [C:\cygwin\home\webkitbot\win-cairo-release\build\Source\WebCore\WebCore. > vcxproj\WebCore.vcxproj] > Reason: cannot convert from 'WebCore::FloatPoint' to 'const > WebCore::IntRect' > 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 'c' used > [C:\cygwin\home\webkitbot\win-cairo-release\build\Source\WebCore\WebCore. > vcxproj\WebCore.vcxproj] Sorry for this, committed fix in <http://trac.webkit.org/changeset/181694>
Note You need to log in before you can comment on or make changes to this bug.