Changeset 159893 in webkit


Ignore:
Timestamp:
Nov 30, 2013 7:52:23 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r159865.
http://trac.webkit.org/changeset/159865
https://bugs.webkit.org/show_bug.cgi?id=125037

the position of mouse events are wrong at MiniBrowser/efl
(Requested by ryuan on #webkit).

  • UIProcess/API/efl/EwkView.cpp:

(EwkView::displayTimerFired):
(EwkView::createGLSurface):
(EwkView::handleEvasObjectCalculate):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r159891 r159893  
     12013-11-30  Commit Queue  <commit-queue@webkit.org>
     2
     3        Unreviewed, rolling out r159865.
     4        http://trac.webkit.org/changeset/159865
     5        https://bugs.webkit.org/show_bug.cgi?id=125037
     6
     7        the position of mouse events are wrong at MiniBrowser/efl
     8        (Requested by ryuan on #webkit).
     9
     10        * UIProcess/API/efl/EwkView.cpp:
     11        (EwkView::displayTimerFired):
     12        (EwkView::createGLSurface):
     13        (EwkView::handleEvasObjectCalculate):
     14
    1152013-11-30  Sam Weinig  <sam@webkit.org>
    216
  • trunk/Source/WebKit2/UIProcess/API/efl/EwkView.cpp

    r159865 r159893  
    579579#endif
    580580    // sd->image is tied to a native surface, which is in the parent's coordinates.
    581     evas_object_image_data_update_add(sd->image, 0, 0, sd->view.w, sd->view.h);
     581    evas_object_image_data_update_add(sd->image, sd->view.x, sd->view.y, sd->view.w, sd->view.h);
    582582}
    583583
     
    819819    };
    820820
    821     Ewk_View_Smart_Data* sd = smartData();
    822     IntSize viewSize(sd->view.w, sd->view.h);
    823 
    824821    // Recreate to current size: Replaces if non-null, and frees existing surface after (OwnPtr).
    825     m_evasGLSurface = EvasGLSurface::create(m_evasGL.get(), &evasGLConfig, viewSize);
     822    m_evasGLSurface = EvasGLSurface::create(m_evasGL.get(), &evasGLConfig, deviceSize());
    826823    if (!m_evasGLSurface)
    827824        return false;
     
    835832    Evas_GL_API* gl = evas_gl_api_get(m_evasGL.get());
    836833
    837     gl->glViewport(0, 0, viewSize.width(), viewSize.height());
     834    WKPoint boundsEnd = WKViewUserViewportToScene(wkView(), WKPointMake(deviceSize().width(), deviceSize().height()));
     835    gl->glViewport(0, 0, boundsEnd.x, boundsEnd.y);
    838836    gl->glClearColor(1.0, 1.0, 1.0, 0);
    839837    gl->glClear(GL_COLOR_BUFFER_BIT);
     
    11971195        smartData->view.y = y;
    11981196        evas_object_move(smartData->image, x, y);
     1197        WKViewSetUserViewportTranslation(self->wkView(), x, y);
    11991198    }
    12001199
Note: See TracChangeset for help on using the changeset viewer.