Changeset 159865 in webkit
- Timestamp:
- Nov 29, 2013 12:37:31 AM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r159864 r159865 1 2013-11-29 Hunseop Jeong <hs85.jeong@samsung.com> 2 3 [EFL] viewport must be same with the size of webview 4 https://bugs.webkit.org/show_bug.cgi?id=124965 5 6 Reviewed by Gyuyoung Kim. 7 8 Currently, size of the viewport is larger than size of webview. 9 Changed the size of viewport with size of webview, because viewport is translated by wrong calculation. 10 11 * UIProcess/API/efl/EwkView.cpp: 12 (EwkView::displayTimerFired): Changed to use the (0,0). 13 (EwkView::createGLSurface): Modified to use the viewSize instead of the boundsEnd. 14 (EwkView::handleEvasObjectCalculate): Removed the WKViewSetUserViewportTranslation. 15 1 16 2013-11-28 Eunmi Lee <eunmi15.lee@samsung.com> 2 17 -
trunk/Source/WebKit2/UIProcess/API/efl/EwkView.cpp
r159863 r159865 579 579 #endif 580 580 // sd->image is tied to a native surface, which is in the parent's coordinates. 581 evas_object_image_data_update_add(sd->image, sd->view.x, sd->view.y, sd->view.w, sd->view.h);581 evas_object_image_data_update_add(sd->image, 0, 0, sd->view.w, sd->view.h); 582 582 } 583 583 … … 819 819 }; 820 820 821 Ewk_View_Smart_Data* sd = smartData(); 822 IntSize viewSize(sd->view.w, sd->view.h); 823 821 824 // Recreate to current size: Replaces if non-null, and frees existing surface after (OwnPtr). 822 m_evasGLSurface = EvasGLSurface::create(m_evasGL.get(), &evasGLConfig, deviceSize());825 m_evasGLSurface = EvasGLSurface::create(m_evasGL.get(), &evasGLConfig, viewSize); 823 826 if (!m_evasGLSurface) 824 827 return false; … … 832 835 Evas_GL_API* gl = evas_gl_api_get(m_evasGL.get()); 833 836 834 WKPoint boundsEnd = WKViewUserViewportToScene(wkView(), WKPointMake(deviceSize().width(), deviceSize().height())); 835 gl->glViewport(0, 0, boundsEnd.x, boundsEnd.y); 837 gl->glViewport(0, 0, viewSize.width(), viewSize.height()); 836 838 gl->glClearColor(1.0, 1.0, 1.0, 0); 837 839 gl->glClear(GL_COLOR_BUFFER_BIT); … … 1195 1197 smartData->view.y = y; 1196 1198 evas_object_move(smartData->image, x, y); 1197 WKViewSetUserViewportTranslation(self->wkView(), x, y);1198 1199 } 1199 1200
Note: See TracChangeset
for help on using the changeset viewer.