Changeset 140855 in webkit
- Timestamp:
- Jan 25, 2013, 11:54:27 AM (12 years ago)
- Location:
- branches/chromium/1364
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/chromium/1364/LayoutTests/platform/chromium/TestExpectations
r140771 r140855 3923 3923 webkit.org/b/98275 media/event-queue-crash.html [ Skip ] 3924 3924 3925 # Needs rebaselining on after webkit.org/b/107339 3926 webkit.org/b/107339 [ Mac Android Win ] platform/chromium/fast/events/touch/compositor-touch-hit-rects.html [ Pass Failure ] 3927 3925 3928 # Requires rebaselining after https://bugs.webkit.org/show_bug.cgi?id=11645 3926 3929 webkit.org/b/11645 [ Mac Android ] fast/table/025.html [ Failure ] -
branches/chromium/1364/LayoutTests/platform/chromium/fast/events/touch/compositor-touch-hit-rects.html
r138739 r140855 23 23 #tests { 24 24 font: 10px Ahem; 25 } 26 body { 27 height: 1000px; 25 28 } 26 29 </style> … … 77 80 } 78 81 79 function logRects(id) { 82 function testElementWithId(id) 83 { 80 84 element = document.getElementById(id); 81 85 element.addEventListener('touchstart', listener, false); 86 logRects(id); 87 element.removeEventListener('touchstart', listener, false); 88 } 89 90 function logRects(testName) { 91 82 92 rects = window.internals.touchEventTargetClientRects(document); 83 93 var sortedRects = new Array(); … … 86 96 sortedRects.sort(sortRects); 87 97 for (var i = 0; i < rects.length; ++i) 88 log(id + "[" + i + "]: (" + sortedRects[i].left + ", " + sortedRects[i].top + ", " + sortedRects[i].width + ", " + sortedRects[i].height + ")"); 89 element.removeEventListener('touchstart', listener, false); 98 log(testName + "[" + i + "]: (" + sortedRects[i].left + ", " + sortedRects[i].top + ", " + sortedRects[i].width + ", " + sortedRects[i].height + ")"); 90 99 } 91 100 … … 95 104 96 105 window.testRunner.dumpAsText(); 97 logRects("normalFlow"); 98 logRects("absoluteChildContainer"); 99 logRects("relativeChildContainer"); 100 logRects("overhangingContainer"); 101 logRects("transformedChildContainer"); 102 logRects("continuation"); 103 logRects("inlineAbsoluteChildContainer"); 106 testElementWithId("normalFlow"); 107 testElementWithId("absoluteChildContainer"); 108 testElementWithId("relativeChildContainer"); 109 testElementWithId("overhangingContainer"); 110 testElementWithId("transformedChildContainer"); 111 testElementWithId("continuation"); 112 testElementWithId("inlineAbsoluteChildContainer"); 113 114 document.addEventListener('touchstart', listener, false); 115 logRects("document"); 104 116 105 117 var testContainer = document.getElementById("tests"); -
branches/chromium/1364/LayoutTests/platform/chromium/fast/events/touch/touch-hit-rects-in-iframe-expected.txt
r139462 r140855 1 1 This test validates that touch hit tests rects are created in the coordinates of the outermost view, not their containing view. This test only works in DumpRenderTree. 2 [0]: (60, 110, 50, 50) 3 [1]: (420, 170, 50, 50) 2 [0]: (10, 50, 285, 135) 3 [1]: (60, 110, 50, 50) 4 [2]: (420, 170, 50, 50) 4 5 -
branches/chromium/1364/LayoutTests/platform/chromium/fast/events/touch/touch-hit-rects-in-iframe.html
r139462 r140855 24 24 <iframe id="iframe1" src="resources/frame-with-touch-handler.html"></iframe> 25 25 <iframe id="iframe2"></iframe> 26 <iframe id="iframe3" src="resources/frame-with-document-touch-handler.html"></iframe> 26 27 <script> 27 28 -
branches/chromium/1364/Source/WebCore/page/scrolling/ScrollingCoordinator.cpp
r139984 r140855 189 189 // Convert to the top-level view's coordinates. 190 190 ASSERT(renderer->document()->view()); 191 for (ScrollView* view = renderer->document()->view(); view && view->parent(); view = view->parent()) 192 r = view->convertToContainingView(r); 191 r = renderer->document()->view()->convertToRootView(r); 193 192 194 193 if (!parentRect.contains(r)) { … … 217 216 if (touchTarget == document) { 218 217 if (RenderView* view = document->renderView()) { 219 IntRect r = enclosingIntRect(view->clippedOverflowRectForRepaint(0)); 220 if (!r.isEmpty()) 218 IntRect r; 219 if (touchTarget == document->topDocument()) 220 r = view->documentRect(); 221 else 222 r = enclosingIntRect(view->clippedOverflowRectForRepaint(0)); 223 224 if (!r.isEmpty()) { 225 ASSERT(view->document()->view()); 226 r = view->document()->view()->convertToRootView(r); 221 227 rects.append(r); 228 } 222 229 } 223 230 return;
Note:
See TracChangeset
for help on using the changeset viewer.