Changeset 251832 in webkit
- Timestamp:
- Oct 30, 2019 8:47:34 PM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r251831 r251832 1 2019-10-30 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: Timelines: ResizeObserver callbacks are not labeled in the Events timeline 4 https://bugs.webkit.org/show_bug.cgi?id=203634 5 <rdar://problem/56760736> 6 7 Reviewed by Simon Fraser. 8 9 Wrap the `ResizeObserver` event handler in two `InspectorInstrumentation` calls so the 10 frontend knows how to properly label the callbacks. 11 12 * page/ResizeObserver.cpp: 13 (WebCore::ResizeObserver::deliverObservations): 14 1 15 2019-10-30 Alex Christensen <achristensen@webkit.org> 2 16 -
trunk/Source/WebCore/page/ResizeObserver.cpp
r251244 r251832 30 30 31 31 #include "Element.h" 32 #include "InspectorInstrumentation.h" 32 33 #include "ResizeObserverEntry.h" 33 34 … … 123 124 } 124 125 m_activeObservations.clear(); 126 127 auto* context = m_callback->scriptExecutionContext(); 128 if (!context) 129 return; 130 131 InspectorInstrumentation::willFireObserverCallback(*context, "ResizeObserver"_s); 125 132 m_callback->handleEvent(entries, *this); 133 InspectorInstrumentation::didFireObserverCallback(*context); 126 134 } 127 135
Note: See TracChangeset
for help on using the changeset viewer.