Changeset 243413 in webkit
- Timestamp:
- Mar 23, 2019, 1:47:47 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/events/touch/ios/content-observation/10ms-delay-transition-on-touch-start-with-non-0px-end-expected.txt (added)
-
LayoutTests/fast/events/touch/ios/content-observation/10ms-delay-transition-on-touch-start-with-non-0px-end.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/page/ios/ContentChangeObserver.cpp (modified) (3 diffs)
-
Source/WebCore/page/ios/ContentChangeObserver.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r243405 r243413 1 2019-03-23 Zalan Bujtas <zalan@apple.com> 2 3 [ContentChangeObserver] Check if the transitioned content is visible at onAnimationEnd 4 https://bugs.webkit.org/show_bug.cgi?id=196171 5 6 Reviewed by Simon Fraser. 7 8 * fast/events/touch/ios/content-observation/10ms-delay-transition-on-touch-start-with-non-0px-end-expected.txt: Added. 9 * fast/events/touch/ios/content-observation/10ms-delay-transition-on-touch-start-with-non-0px-end.html: Added. 10 1 11 2019-03-22 Devin Rousso <drousso@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r243409 r243413 1 2019-03-23 Zalan Bujtas <zalan@apple.com> 2 3 [ContentChangeObserver] Check if the transitioned content is visible at onAnimationEnd 4 https://bugs.webkit.org/show_bug.cgi?id=196171 5 6 Reviewed by Simon Fraser. 7 8 At onAnimationEnd we don't yet have the final computed style for the transitioned content. 9 However the current state (before computing the final style) might already be qualified to be visible. 10 Introduce "CompletedTransition" to indicate that the transition is all set as far observing is concerned 11 (as opposed to "EndedTransition" where we still need to observe the content for the final style change). 12 13 Test: fast/events/touch/ios/content-observation/10ms-delay-transition-on-touch-start-with-non-0px-end.html 14 15 * page/ios/ContentChangeObserver.cpp: 16 (WebCore::ContentChangeObserver::didFinishTransition): 17 (WebCore::ContentChangeObserver::adjustObservedState): 18 * page/ios/ContentChangeObserver.h: 19 1 20 2019-03-23 Carlos Garcia Campos <cgarcia@igalia.com> 2 21 -
trunk/Source/WebCore/page/ios/ContentChangeObserver.cpp
r243315 r243413 153 153 LOG_WITH_STREAM(ContentObservation, stream << "didFinishTransition: transition finished (" << &element << ")."); 154 154 155 adjustObservedState( Event::EndedTransition);155 adjustObservedState(isConsideredHidden(element) ? Event::EndedTransition : Event::CompletedTransition); 156 156 } 157 157 … … 435 435 case Event::EndedTransition: 436 436 // onAnimationEnd can be called while in the middle of resolving the document (synchronously) or 437 // asynchronously right before the style update is issued. 437 // asynchronously right before the style update is issued. It also means we don't know whether this animation ends up producing visible content yet. 438 438 if (m_document.inStyleRecalc()) { 439 439 // We need to start observing this style change synchronously. … … 441 441 } else 442 442 setShouldObserveNextStyleRecalc(true); 443 break; 444 case Event::CompletedTransition: 445 // Set visibility flag on and report visible change synchronously or asynchronously depending whether we are in the middle of style recalc. 446 contentVisibilityDidChange(); 447 if (m_document.inStyleRecalc()) 448 m_isInObservedStyleRecalc = true; 449 else if (!isObservationTimeWindowActive()) 450 adjustStateAndNotifyContentChangeIfNeeded(); 443 451 break; 444 452 case Event::EndedFixedObservationTimeWindow: -
trunk/Source/WebCore/page/ios/ContentChangeObserver.h
r243315 r243413 174 174 AddedTransition, 175 175 EndedTransition, 176 CompletedTransition, 176 177 CanceledTransition, 177 178 StartedFixedObservationTimeWindow,
Note:
See TracChangeset
for help on using the changeset viewer.