Changeset 170078 in webkit
- Timestamp:
- Jun 17, 2014, 3:27:16 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r170072 r170078 1 2014-06-17 Carlos Alberto Lopez Perez <clopez@igalia.com> 2 3 [GTK] Fix the handling of resize events after r169505. 4 https://bugs.webkit.org/show_bug.cgi?id=133517 5 6 Reviewed by Martin Robinson. 7 8 * platform/gtk/TestExpectations: Remove the expectations for the 9 tests that now pass. 10 * platform/gtk/fast/dom/rtl-scroll-to-leftmost-and-resize-expected.txt: 11 Rebaseline results. 12 1 13 2014-06-17 Myles C. Maxfield <mmaxfield@apple.com> 2 14 -
trunk/LayoutTests/platform/gtk/TestExpectations
r170068 r170078 809 809 webkit.org/b/132282 fast/inline-block/14498-positionForCoordinates.html [ Failure Pass ] 810 810 811 #fast/dom/Window812 webkit.org/b/132255 fast/dom/Window/window-resize-and-move-sub-frame.html [ Timeout Pass ]813 webkit.org/b/132255 fast/dom/Window/window-resize-contents.html [ Timeout Pass ]814 815 811 #Fast overflow 816 812 webkit.org/b/132258 fast/overflow/hit-test-overflow-controls.html [ Failure ImageOnlyFailure Pass ] … … 852 848 webkit.org/b/133000 js/slow-stress/call-spread.html [ Pass Timeout ] 853 849 webkit.org/b/133001 fast/workers/worker-context-gc.html [ Pass Timeout ] 854 855 webkit.org/b/133807 fast/dynamic/window-resize-scrollbars-test.html [ Failure Timeout ]856 850 857 851 webkit.org/b/133865 media/W3C/video/networkState/networkState_during_progress.html [ Failure Pass ] … … 1018 1012 1019 1013 webkit.org/b/133151 js/cached-window-properties.html [ Timeout Pass ] 1020 1021 webkit.org/b/133517 css3/viewport-percentage-lengths/viewport-percentage-lengths-anonymous-block.html [ Timeout ]1022 webkit.org/b/133517 css3/viewport-percentage-lengths/viewport-percentage-lengths-percent-size-child.html [ Timeout ]1023 webkit.org/b/133517 css3/viewport-percentage-lengths/viewport-percentage-lengths-relative-font-size.html [ Timeout ]1024 webkit.org/b/133517 css3/viewport-percentage-lengths/viewport-percentage-lengths-resize.html [ Timeout ]1025 1014 1026 1015 webkit.org/b/133808 media/video-trackmenu-selection.html [ Timeout ] … … 1205 1194 Bug(GTK) editing/selection/inactive-selection.html [ Failure ] 1206 1195 Bug(GTK) fast/css/disabled-author-styles.html [ Failure ] 1207 Bug(GTK) fast/dom/rtl-scroll-to-leftmost-and-resize.html [ Failure ]1208 1196 Bug(GTK) fast/dom/Window/window-postmessage-clone.html [ Failure Timeout ] 1209 1197 Bug(GTK) fast/events/backspace-navigates-back.html [ Failure ] … … 1330 1318 1331 1319 # Probably failing because resizing is asynchronous. 1332 webkit.org/b/53959 fast/dom/Window/window-resize-and-move-arguments.html [ Failure Timeout ]1333 1320 webkit.org/b/53959 fast/dom/Window/window-resize.html [ Failure Timeout ] 1334 1321 … … 1587 1574 1588 1575 webkit.org/b/80129 fast/frames/flattening/frameset-flattening-advanced.html [ Failure ] 1589 webkit.org/b/131793 fast/frames/frame-programmatic-noresize.html [ Failure Pass ]1590 webkit.org/b/131794 fast/frames/frame-with-noresize-can-be-resized-after-removal-of-noresize.html [ Failure Pass ]1591 webkit.org/b/131794 fast/frames/frame-with-noresize-can-be-resized-after-setting-noResize-to-false.html [ Failure Pass ]1592 1576 1593 1577 webkit.org/b/89663 editing/deleting/delete-3800834-fix.html [ Failure ] -
trunk/LayoutTests/platform/gtk/fast/dom/rtl-scroll-to-leftmost-and-resize-expected.txt
r170068 r170078 1 layer at (0,0) size 335x40182 RenderView at (0,0) size 335x5853 layer at (0,0) size 335x40184 RenderBlock {HTML} at (0,0) size 335x40185 RenderBody {BODY} at (8,8) size 319x40026 RenderBlock {DIV} at (- 683,0) size 1002x4002 [border: (1px solid #FF0000)]7 RenderText {#text} at (-491,1) size 1492x1 91 layer at (0,0) size 235x4018 2 RenderView at (0,0) size 235x585 3 layer at (0,0) size 235x4018 4 RenderBlock {HTML} at (0,0) size 235x4018 5 RenderBody {BODY} at (8,8) size 219x4002 6 RenderBlock {DIV} at (-783,0) size 1002x4002 [border: (1px solid #FF0000)] 7 RenderText {#text} at (-491,1) size 1492x17 8 8 text run at (-491,1) width 1492: "BEGINddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddEND" 9 9 scrolled to -716,0 -
trunk/Tools/ChangeLog
r170073 r170078 1 2014-06-17 Carlos Alberto Lopez Perez <clopez@igalia.com> 2 3 [GTK] Fix the handling of resize events after r169505. 4 https://bugs.webkit.org/show_bug.cgi?id=133517 5 6 Reviewed by Martin Robinson. 7 8 * Scripts/webkitpy/port/xvfbdriver.py: 9 (XvfbDriver._start): Set the resolution of Xvfb to XGA (1024x768). 10 The tests css3/viewport-percentage-lengths/viewport-percentage-lengths-*.html 11 need at least 900x640 pixels to pass. 12 * Scripts/webkitpy/port/xvfbdriver_unittest.py: 13 (XvfbDriverTest.test_start_no_pixel_tests): Update resolution. 14 (XvfbDriverTest.test_start_pixel_tests): Update resolution. 15 (XvfbDriverTest.test_start_arbitrary_worker_number): Update resolution. 16 (XvfbDriverTest.test_start_next_worker): Update resolution. 17 * WebKitTestRunner/gtk/PlatformWebViewGtk.cpp: 18 (WTR::PlatformWebView::PlatformWebView): gtk_widget_size_allocate should 19 be requested over the main widget instead of the window. 20 (WTR::PlatformWebView::resizeTo): Changed this to call setWindowFrame like 21 the Mac port. 22 (WTR::PlatformWebView::windowFrame): Remove legacy ifdef for GTK2. 23 (WTR::PlatformWebView::setWindowFrame): Set the size and position 24 of the Window and the web view. 25 1 26 2014-06-17 Matthew Mirman <mmirman@apple.com> 2 27 -
trunk/Tools/Scripts/webkitpy/port/xvfbdriver.py
r170068 r170078 85 85 environment['LD_LIBRARY_PATH'] = '%s:%s' % (llvmpipe_libgl_path, os.environ.get('LD_LIBRARY_PATH', '')) 86 86 87 run_xvfb = ["Xvfb", ":%d" % display_id, "-screen", "0", " 800x600x%s" % self._xvfb_screen_depth(), "-nolisten", "tcp"]87 run_xvfb = ["Xvfb", ":%d" % display_id, "-screen", "0", "1024x768x%s" % self._xvfb_screen_depth(), "-nolisten", "tcp"] 88 88 with open(os.devnull, 'w') as devnull: 89 89 self._xvfb_process = self._port.host.executive.popen(run_xvfb, stderr=devnull) -
trunk/Tools/Scripts/webkitpy/port/xvfbdriver_unittest.py
r156640 r170078 68 68 def test_start_no_pixel_tests(self): 69 69 driver = self.make_driver() 70 expected_logs = "MOCK run_command: ['ps', '-eo', 'comm,command'], cwd=None\nMOCK popen: ['Xvfb', ':0', '-screen', '0', ' 800x600x24', '-nolisten', 'tcp']\n"70 expected_logs = "MOCK run_command: ['ps', '-eo', 'comm,command'], cwd=None\nMOCK popen: ['Xvfb', ':0', '-screen', '0', '1024x768x24', '-nolisten', 'tcp']\n" 71 71 self.assertDriverStartSuccessful(driver, expected_logs=expected_logs, expected_display=":0") 72 72 self.cleanup_driver(driver) … … 74 74 def test_start_pixel_tests(self): 75 75 driver = self.make_driver() 76 expected_logs = "MOCK run_command: ['ps', '-eo', 'comm,command'], cwd=None\nMOCK popen: ['Xvfb', ':0', '-screen', '0', ' 800x600x24', '-nolisten', 'tcp']\n"76 expected_logs = "MOCK run_command: ['ps', '-eo', 'comm,command'], cwd=None\nMOCK popen: ['Xvfb', ':0', '-screen', '0', '1024x768x24', '-nolisten', 'tcp']\n" 77 77 self.assertDriverStartSuccessful(driver, expected_logs=expected_logs, expected_display=":0", pixel_tests=True) 78 78 self.cleanup_driver(driver) … … 80 80 def test_start_arbitrary_worker_number(self): 81 81 driver = self.make_driver(worker_number=17) 82 expected_logs = "MOCK run_command: ['ps', '-eo', 'comm,command'], cwd=None\nMOCK popen: ['Xvfb', ':0', '-screen', '0', ' 800x600x24', '-nolisten', 'tcp']\n"82 expected_logs = "MOCK run_command: ['ps', '-eo', 'comm,command'], cwd=None\nMOCK popen: ['Xvfb', ':0', '-screen', '0', '1024x768x24', '-nolisten', 'tcp']\n" 83 83 self.assertDriverStartSuccessful(driver, expected_logs=expected_logs, expected_display=":0", pixel_tests=True) 84 84 self.cleanup_driver(driver) … … 109 109 driver = self.make_driver() 110 110 driver._next_free_display = lambda: 0 111 expected_logs = "MOCK popen: ['Xvfb', ':0', '-screen', '0', ' 800x600x24', '-nolisten', 'tcp']\n"111 expected_logs = "MOCK popen: ['Xvfb', ':0', '-screen', '0', '1024x768x24', '-nolisten', 'tcp']\n" 112 112 self.assertDriverStartSuccessful(driver, expected_logs=expected_logs, expected_display=":0", pixel_tests=True) 113 113 self.cleanup_driver(driver) 114 114 driver = self.make_driver() 115 115 driver._next_free_display = lambda: 3 116 expected_logs = "MOCK popen: ['Xvfb', ':3', '-screen', '0', ' 800x600x24', '-nolisten', 'tcp']\n"116 expected_logs = "MOCK popen: ['Xvfb', ':3', '-screen', '0', '1024x768x24', '-nolisten', 'tcp']\n" 117 117 self.assertDriverStartSuccessful(driver, expected_logs=expected_logs, expected_display=":3", pixel_tests=True) 118 118 self.cleanup_driver(driver) -
trunk/Tools/WebKitTestRunner/gtk/PlatformWebViewGtk.cpp
r170068 r170078 44 44 45 45 GtkAllocation size = { 0, 0, 800, 600 }; 46 gtk_widget_size_allocate( m_window, &size);46 gtk_widget_size_allocate(GTK_WIDGET(m_view), &size); 47 47 gtk_window_resize(GTK_WINDOW(m_window), 800, 600); 48 48 gtk_widget_show_all(m_window); … … 59 59 void PlatformWebView::resizeTo(unsigned width, unsigned height) 60 60 { 61 // FIXME: Don't we need to resize the window too? 62 63 GtkAllocation size = { 0, 0, static_cast<int>(width), static_cast<int>(height) }; 64 gtk_widget_size_allocate(m_window, &size); 65 gtk_window_resize(GTK_WINDOW(m_window), width, height); 66 67 while (gtk_events_pending()) 68 gtk_main_iteration(); 61 WKRect frame = windowFrame(); 62 frame.size.width = width; 63 frame.size.height = height; 64 setWindowFrame(frame); 69 65 } 70 66 … … 83 79 { 84 80 GtkAllocation geometry; 85 #ifdef GTK_API_VERSION_286 gint depth;87 gdk_window_get_geometry(gtk_widget_get_window(GTK_WIDGET(m_window)),88 &geometry.x, &geometry.y, &geometry.width, &geometry.height, &depth);89 #else90 81 gdk_window_get_geometry(gtk_widget_get_window(GTK_WIDGET(m_window)), 91 82 &geometry.x, &geometry.y, &geometry.width, &geometry.height); 92 #endif93 83 94 84 WKRect frame; … … 102 92 void PlatformWebView::setWindowFrame(WKRect frame) 103 93 { 104 gtk_window_move(GTK_WINDOW(m_window), frame.origin.x, frame.origin.y); 105 resizeTo(frame.size.width, frame.size.height); 94 gdk_window_move_resize(gtk_widget_get_window(GTK_WIDGET(m_window)), 95 frame.origin.x, frame.origin.y, frame.size.width, frame.size.height); 96 GtkAllocation size = { 0, 0, static_cast<int>(frame.size.width), static_cast<int>(frame.size.height) }; 97 gtk_widget_size_allocate(GTK_WIDGET(m_view), &size); 98 99 while (gtk_events_pending()) 100 gtk_main_iteration(); 106 101 } 107 102
Note:
See TracChangeset
for help on using the changeset viewer.