Changeset 242679 in webkit
- Timestamp:
- Mar 9, 2019, 8:48:34 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/events/touch/ios/content-observation/move-content-from-offscreen-expected.txt (added)
-
LayoutTests/fast/events/touch/ios/content-observation/move-content-from-offscreen.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/page/ios/ContentChangeObserver.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r242675 r242679 1 2019-03-09 Zalan Bujtas <zalan@apple.com> 2 3 [ContentChangeObserver] Click event fires immediately on hover menu at seriouseats.com 4 https://bugs.webkit.org/show_bug.cgi?id=195520 5 <rdar://problem/48740098> 6 7 Reviewed by Simon Fraser. 8 9 * fast/events/touch/ios/content-observation/move-content-from-offscreen-expected.txt: Added. 10 * fast/events/touch/ios/content-observation/move-content-from-offscreen.html: Added. 11 1 12 2019-03-09 Zalan Bujtas <zalan@apple.com> 2 13 -
trunk/Source/WebCore/ChangeLog
r242677 r242679 1 2019-03-09 Zalan Bujtas <zalan@apple.com> 2 3 [ContentChangeObserver] Click event fires immediately on hover menu at seriouseats.com 4 https://bugs.webkit.org/show_bug.cgi?id=195520 5 <rdar://problem/48740098> 6 7 Reviewed by Simon Fraser. 8 9 Unfortunately seriouseats has a 300ms hover intent delay to deal with accidental menupane pop-ups. This page also hides this 10 non-fixed width menupane using absolute positioning and negative left. 11 12 Test: fast/events/touch/ios/content-observation/move-content-from-offscreen.html 13 14 * page/ios/ContentChangeObserver.cpp: 15 (WebCore::ContentChangeObserver::didInstallDOMTimer): 16 (WebCore::ContentChangeObserver::StyleChangeScope::~StyleChangeScope): 17 (WebCore::ContentChangeObserver::StyleChangeScope::isConsideredHidden const): Content auhtors tend to use x - 1 values (where x = 10^y) 18 1 19 2019-03-09 Chris Dumez <cdumez@apple.com> 2 20 -
trunk/Source/WebCore/page/ios/ContentChangeObserver.cpp
r242675 r242679 67 67 if (m_document.activeDOMObjectsAreSuspended()) 68 68 return; 69 if (timeout > 250_ms || !singleShot)69 if (timeout > 300_ms || !singleShot) 70 70 return; 71 71 if (!isObservingDOMTimerScheduling()) … … 318 318 return m_wasHidden && !isConsideredHidden(); 319 319 }; 320 320 321 321 if (changedFromHiddenToVisible() && isConsideredClickable()) 322 322 m_contentChangeObserver.contentVisibilityDidChange(); … … 335 335 return true; 336 336 337 auto width = style. width();338 auto height = style. height();337 auto width = style.logicalWidth(); 338 auto height = style.logicalHeight(); 339 339 if ((width.isFixed() && !width.value()) || (height.isFixed() && !height.value())) 340 340 return true; 341 341 342 auto top = style. top();343 auto left = style.l eft();342 auto top = style.logicalTop(); 343 auto left = style.logicalLeft(); 344 344 // FIXME: This is trying to check if the element is outside of the viewport. This is incorrect for many reasons. 345 345 if (left.isFixed() && width.isFixed() && -left.value() >= width.value()) 346 346 return true; 347 348 347 if (top.isFixed() && height.isFixed() && -top.value() >= height.value()) 348 return true; 349 350 // It's a common technique used to position content offscreen. 351 if (style.hasOutOfFlowPosition() && left.isFixed() && left.value() <= -999) 349 352 return true; 350 353
Note:
See TracChangeset
for help on using the changeset viewer.