Title: [132751] trunk/Source/WebKit2
Revision
132751
Author
[email protected]
Date
2012-10-28 05:31:04 -0700 (Sun, 28 Oct 2012)

Log Message

[EFL][WK2][AC] Viewport size does not change when the window size changes
https://bugs.webkit.org/show_bug.cgi?id=100573

Patch by Yael Aharon <[email protected]> on 2012-10-28
Reviewed by Kenneth Rohde Christiansen.

The viewport size is set when we create the window the first time
and does not change automatically afterwards. When we change the window size,
we need to explicitly change the viewport size as well.

* UIProcess/API/efl/EwkViewImpl.cpp:
(EwkViewImpl::createGLSurface):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (132750 => 132751)


--- trunk/Source/WebKit2/ChangeLog	2012-10-28 12:17:45 UTC (rev 132750)
+++ trunk/Source/WebKit2/ChangeLog	2012-10-28 12:31:04 UTC (rev 132751)
@@ -1,3 +1,17 @@
+2012-10-28  Yael Aharon  <[email protected]>
+
+        [EFL][WK2][AC] Viewport size does not change when the window size changes
+        https://bugs.webkit.org/show_bug.cgi?id=100573
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        The viewport size is set when we create the window the first time
+        and does not change automatically afterwards. When we change the window size,
+        we need to explicitly change the viewport size as well.
+
+        * UIProcess/API/efl/EwkViewImpl.cpp:
+        (EwkViewImpl::createGLSurface):
+
 2012-10-27  Noam Rosenthal  <[email protected]>
 
         Unreviewed build fix for breakage to minimal bot caused by r132742.

Modified: trunk/Source/WebKit2/UIProcess/API/efl/EwkViewImpl.cpp (132750 => 132751)


--- trunk/Source/WebKit2/UIProcess/API/efl/EwkViewImpl.cpp	2012-10-28 12:17:45 UTC (rev 132750)
+++ trunk/Source/WebKit2/UIProcess/API/efl/EwkViewImpl.cpp	2012-10-28 12:31:04 UTC (rev 132751)
@@ -737,6 +737,11 @@
     evas_gl_native_surface_get(m_evasGl, m_evasGlSurface, &nativeSurface);
     evas_object_image_native_surface_set(sd->image, &nativeSurface);
 
+    evas_gl_make_current(m_evasGl, m_evasGlSurface, m_evasGlContext);
+
+    Evas_GL_API* gl = evas_gl_api_get(evasGl());
+    gl->glViewport(0, 0, viewSize.width() + sd->view.x, viewSize.height() + sd->view.y);
+
     return true;
 }
 
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to