Changeset 247483 in webkit
- Timestamp:
- Jul 16, 2019 9:43:27 AM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r247481 r247483 1 2019-07-16 Zalan Bujtas <zalan@apple.com> 2 3 [ContentChangeObserver] Cancel ongoing content observation when tap is failed/cancelled 4 https://bugs.webkit.org/show_bug.cgi?id=199828 5 <rdar://problem/53152696> 6 7 Reviewed by Wenson Hsieh. 8 9 This patch ensures that we stop the content observation (initiated by touch start) when the tap 10 is cancelled/failed. 11 12 Not testable. 13 14 * page/ios/ContentChangeObserver.cpp: 15 (WebCore::ContentChangeObserver::didCancelPotentialTap): 16 * page/ios/ContentChangeObserver.h: 17 1 18 2019-07-16 Rob Buis <rbuis@igalia.com> 2 19 -
trunk/Source/WebCore/page/ios/ContentChangeObserver.cpp
r247200 r247483 151 151 } 152 152 153 void ContentChangeObserver::didCancelPotentialTap(Frame& mainFrame) 154 { 155 LOG(ContentObservation, "didCancelPotentialTap: cancel ongoing content change observing."); 156 WebCore::willNotProceedWithClick(mainFrame); 157 } 158 153 159 void ContentChangeObserver::didRecognizeLongPress(Frame& mainFrame) 154 160 { -
trunk/Source/WebCore/page/ios/ContentChangeObserver.h
r247200 r247483 60 60 void didRemoveTransition(const Element&, CSSPropertyID); 61 61 62 WEBCORE_EXPORT void willNotProceedWithClick();63 62 WEBCORE_EXPORT static void didRecognizeLongPress(Frame& mainFrame); 64 63 WEBCORE_EXPORT static void didPreventDefaultForEvent(Frame& mainFrame); 64 WEBCORE_EXPORT static void didCancelPotentialTap(Frame& mainFrame); 65 65 66 66 void didSuspendActiveDOMObjects(); … … 68 68 69 69 void willDestroyRenderer(const Element&); 70 void willNotProceedWithClick(); 70 71 71 72 void setHiddenTouchTarget(Element& targetElement) { m_hiddenTouchTargetElement = makeWeakPtr(targetElement); } -
trunk/Source/WebKit/ChangeLog
r247476 r247483 1 2019-07-16 Zalan Bujtas <zalan@apple.com> 2 3 [ContentChangeObserver] Cancel ongoing content observation when tap is failed/cancelled 4 https://bugs.webkit.org/show_bug.cgi?id=199828 5 <rdar://problem/53152696> 6 7 Reviewed by Wenson Hsieh. 8 9 * WebProcess/WebPage/ios/WebPageIOS.mm: 10 (WebKit::WebPage::commitPotentialTapFailed): 11 (WebKit::WebPage::cancelPotentialTap): 12 1 13 2019-07-15 Alex Christensen <achristensen@webkit.org> 2 14 -
trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm
r247472 r247483 1127 1127 void WebPage::commitPotentialTapFailed() 1128 1128 { 1129 ContentChangeObserver::didCancelPotentialTap(m_page->mainFrame()); 1129 1130 if (!m_page->focusController().focusedOrMainFrame().selection().selection().isContentEditable()) 1130 1131 clearSelection(); … … 1136 1137 void WebPage::cancelPotentialTap() 1137 1138 { 1138 if (m_potentialTapNode) 1139 m_potentialTapNode->document().contentChangeObserver().willNotProceedWithClick(); 1139 ContentChangeObserver::didCancelPotentialTap(m_page->mainFrame()); 1140 1140 cancelPotentialTapInFrame(*m_mainFrame); 1141 1141 }
Note: See TracChangeset
for help on using the changeset viewer.