Changeset 258558 in webkit
- Timestamp:
- Mar 17, 2020 10:14:43 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r258556 r258558 1 2020-03-17 Jacob Uphoff <jacob_uphoff@apple.com> 2 3 Unreviewed, reverting r257844. 4 5 this revision caused a test to start timing out 6 7 Reverted changeset: 8 9 "(r256513) [ Mac ] fast/scrolling/programmatic-scroll-to-zero- 10 zero.html is a flaky failure" 11 https://bugs.webkit.org/show_bug.cgi?id=207948 12 https://trac.webkit.org/changeset/257844 13 1 14 2020-03-17 Jason Lawrence <lawrence.j@apple.com> 2 15 -
trunk/LayoutTests/platform/mac-wk2/TestExpectations
r258556 r258558 1060 1060 webkit.org/b/208062 http/wpt/fetch/disable-speculative-for-reload.html [ Pass Failure ] 1061 1061 1062 webkit.org/b/208160 fast/scrolling/overflow-scroll-past-max.html [ Pass Failure ] 1063 1062 1064 webkit.org/b/208222 [ Release ] imported/w3c/web-platform-tests/webrtc/RTCPeerConnection-iceConnectionState.https.html [ Pass Failure ] 1063 1065 -
trunk/LayoutTests/platform/win/TestExpectations
r258346 r258558 276 276 fast/events/wheelevent-in-vertical-scrollbar-in-rtl.html [ Failure ] 277 277 scrollbars/scroll-rtl-or-bt-layer.html [ Timeout ] 278 webkit.org/b/208559 fast/scrolling/arrow-key-scroll-in-rtl-document.html [ Skip ]279 webkit.org/b/208559 fast/scrolling/programmatic-scroll-to-zero-zero.html [ Skip ]280 278 281 279 # TODO Needs testRunner.enableAutoResizeMode() -
trunk/Source/WebCore/ChangeLog
r258549 r258558 1 2020-03-17 Jacob Uphoff <jacob_uphoff@apple.com> 2 3 Unreviewed, reverting r257844. 4 5 this revision caused a test to start timing out 6 7 Reverted changeset: 8 9 "(r256513) [ Mac ] fast/scrolling/programmatic-scroll-to-zero- 10 zero.html is a flaky failure" 11 https://bugs.webkit.org/show_bug.cgi?id=207948 12 https://trac.webkit.org/changeset/257844 13 1 14 2020-03-17 Commit Queue <commit-queue@webkit.org> 2 15 -
trunk/Source/WebCore/page/EventHandler.cpp
r258148 r258558 104 104 #include "WheelEvent.h" 105 105 #include "WheelEventDeltaFilter.h" 106 #include "WheelEventTestMonitor.h"107 106 #include "WindowsKeyboardCodes.h" 108 107 #include <wtf/Assertions.h> … … 2827 2826 #endif 2828 2827 2829 #if PLATFORM(COCOA)2830 WheelEventTestMonitorCompletionDeferrer deferrer(m_frame.page()->wheelEventTestMonitor().get(), this, WheelEventTestMonitor::DeferReason::HandlingWheelEventOnMainThread);2831 #endif2832 2833 2828 m_isHandlingWheelEvent = true; 2834 2829 setFrameWasScrolledByUser(); -
trunk/Source/WebCore/page/FrameView.cpp
r258511 r258558 2446 2446 void FrameView::scrollOffsetChangedViaPlatformWidgetImpl(const ScrollOffset& oldOffset, const ScrollOffset& newOffset) 2447 2447 { 2448 #if PLATFORM(COCOA)2449 WheelEventTestMonitorCompletionDeferrer deferrer(frame().page()->wheelEventTestMonitor().get(), this, WheelEventTestMonitor::DeferReason::ContentScrollInProgress);2450 #endif2451 2452 2448 updateLayerPositionsAfterScrolling(); 2453 2449 updateCompositingLayersAfterScrolling(); -
trunk/Source/WebCore/page/WheelEventTestMonitor.cpp
r257844 r258558 52 52 m_completionCallback = nullptr; 53 53 m_testForCompletionTimer.stop(); 54 m_everHadDeferral = false;55 54 LOG_WITH_STREAM(WheelEventTestMonitor, stream << " (=) WheelEventTestMonitor::clearAllTestDeferrals: cleared all test state."); 56 55 } … … 71 70 return OptionSet<DeferReason>(); 72 71 }).iterator->value.add(reason); 73 74 m_everHadDeferral = true; 75 72 76 73 LOG_WITH_STREAM(WheelEventTestMonitor, stream << " (=) WheelEventTestMonitor::deferForReason: id=" << identifier << ", reason=" << reason); 77 74 } … … 99 96 } 100 97 101 if (!m_everHadDeferral) {102 LOG_WITH_STREAM(WheelEventTestMonitor, stream << " WheelEventTestMonitor::triggerTestTimerFired - have not yet seen any deferral reasons");103 return;104 }105 106 98 auto functionCallback = WTFMove(m_completionCallback); 107 99 m_testForCompletionTimer.stop(); … … 116 108 switch (reason) { 117 109 case WheelEventTestMonitor::HandlingWheelEvent: ts << "handling wheel event"; break; 118 case WheelEventTestMonitor::HandlingWheelEventOnMainThread: ts << "handling wheel event on main thread"; break;119 110 case WheelEventTestMonitor::RubberbandInProgress: ts << "rubberbanding"; break; 120 111 case WheelEventTestMonitor::ScrollSnapInProgress: ts << "scroll-snapping"; break; -
trunk/Source/WebCore/page/WheelEventTestMonitor.h
r257844 r258558 48 48 49 49 enum DeferReason { 50 HandlingWheelEvent = 1 << 0, 51 HandlingWheelEventOnMainThread = 1 << 1, 52 RubberbandInProgress = 1 << 2, 53 ScrollSnapInProgress = 1 << 3, 54 ScrollingThreadSyncNeeded = 1 << 4, 55 ContentScrollInProgress = 1 << 5, 50 HandlingWheelEvent = 1 << 0, 51 RubberbandInProgress = 1 << 1, 52 ScrollSnapInProgress = 1 << 2, 53 ScrollingThreadSyncNeeded = 1 << 3, 54 ContentScrollInProgress = 1 << 4, 56 55 }; 57 56 typedef const void* ScrollableAreaIdentifier; … … 69 68 70 69 ScrollableAreaReasonMap m_deferCompletionReasons; 71 bool m_everHadDeferral { false };72 };73 74 class WheelEventTestMonitorCompletionDeferrer {75 public:76 WheelEventTestMonitorCompletionDeferrer(WheelEventTestMonitor* monitor, WheelEventTestMonitor::ScrollableAreaIdentifier identifier, WheelEventTestMonitor::DeferReason reason)77 : m_monitor(monitor)78 , m_identifier(identifier)79 , m_reason(reason)80 {81 if (m_monitor)82 m_monitor->deferForReason(m_identifier, m_reason);83 }84 85 ~WheelEventTestMonitorCompletionDeferrer()86 {87 if (m_monitor)88 m_monitor->removeDeferralForReason(m_identifier, m_reason);89 }90 91 private:92 RefPtr<WheelEventTestMonitor> m_monitor;93 WheelEventTestMonitor::ScrollableAreaIdentifier m_identifier;94 WheelEventTestMonitor::DeferReason m_reason;95 70 }; 96 71 -
trunk/Tools/ChangeLog
r258527 r258558 1 2020-03-17 Jacob Uphoff <jacob_uphoff@apple.com> 2 3 Unreviewed, reverting r257844. 4 5 this revision caused a test to start timing out 6 7 Reverted changeset: 8 9 "(r256513) [ Mac ] fast/scrolling/programmatic-scroll-to-zero- 10 zero.html is a flaky failure" 11 https://bugs.webkit.org/show_bug.cgi?id=207948 12 https://trac.webkit.org/changeset/257844 13 1 14 2020-03-16 Justin Michaud <justin_michaud@apple.com> 2 15 -
trunk/Tools/DumpRenderTree/mac/EventSendingController.mm
r257844 r258558 853 853 { 854 854 #if PLATFORM(MAC) 855 [[[mainFrame frameView] documentView] layout];856 857 855 uint32_t phase = 0; 858 856 if ([phaseName isEqualToString: @"none"]) -
trunk/Tools/DumpRenderTree/win/EventSender.cpp
r257844 r258558 833 833 ::GetWindowRect(webViewWindow, &rect); 834 834 835 COMPtr<IWebFramePrivate> framePrivate;836 if (SUCCEEDED(frame->QueryInterface(&framePrivate)))837 framePrivate->layout();838 839 835 if (x) { 840 836 UINT scrollChars = 1;
Note: See TracChangeset
for help on using the changeset viewer.