[Webkit-unassigned] [Bug 116683] New: [WK2][EFL] WKViewUserViewportToContents() function doesn't do what it says

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 23 11:06:59 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=116683

           Summary: [WK2][EFL] WKViewUserViewportToContents() function
                    doesn't do what it says
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit2
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: marcelo.lira at openbossa.org


One would expect WKViewUserViewportToContents to convert WebView coordinates to page contents coordinates, but currently it doesn't consider the page scale factor.

Examples of what should be the results of WKViewUserViewportToContents:

1. The viewport shows a page on position (0,0) and the scale factor is 0.0.
   viewport (10,10) -> contents(10,10)
2. Using WKViewSetContentPosition we scroll the page under the viewport to show the contents in position (100,100).
   viewport(10,10) -> contents(110,110)
3. Using WKViewSetContentScaleFactor we set the page scale to 2.0.
   viewport(10,10) -> contents(105,105)

Elsewhere, EwkView::createGLSurface() uses WKViewUserViewportToContents, but it doesn't expect these scroll and scaling operations to go into the calculations. Just the translation of the WKView in relation to the GL surface where it is drawn. As it is now WKViewUserViewportToContents works for EwkView, but it shouldn't.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list