Changeset 236088 in webkit
- Timestamp:
- Sep 17, 2018, 3:05:45 PM (7 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/platform/cocoa/VideoFullscreenModelVideoElement.mm (modified) (2 diffs)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/WebProcess/FullScreen/WebFullScreenManager.cpp (modified) (11 diffs)
-
WebKit/WebProcess/FullScreen/WebFullScreenManager.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r236087 r236088 1 2018-09-17 Simon Fraser <simon.fraser@apple.com> 2 3 Add more Fullscreen logging 4 https://bugs.webkit.org/show_bug.cgi?id=189656 5 6 Reviewed by Jer Noble. 7 8 Add some fullscreen logging so I can tell whether WebFullScreenManager ever releases 9 the fullscreen element. 10 11 * platform/cocoa/VideoFullscreenModelVideoElement.mm: 12 (VideoFullscreenModelVideoElement::VideoFullscreenModelVideoElement): 13 (VideoFullscreenModelVideoElement::~VideoFullscreenModelVideoElement): 14 (VideoFullscreenModelVideoElement::setVideoElement): 15 1 16 2018-09-14 Simon Fraser <simon.fraser@apple.com> 2 17 -
trunk/Source/WebCore/platform/cocoa/VideoFullscreenModelVideoElement.mm
r233926 r236088 51 51 : EventListener(EventListener::CPPEventListenerType) 52 52 { 53 LOG(Fullscreen, "VideoFullscreenModelVideoElement %p ctor", this); 53 54 } 54 55 55 56 VideoFullscreenModelVideoElement::~VideoFullscreenModelVideoElement() 56 57 { 58 LOG(Fullscreen, "VideoFullscreenModelVideoElement %p dtor", this); 57 59 } 58 60 … … 61 63 if (m_videoElement == videoElement) 62 64 return; 65 66 LOG(Fullscreen, "VideoFullscreenModelVideoElement %p setVideoElement(%p)", this, videoElement); 63 67 64 68 if (m_videoElement && m_videoElement->videoFullscreenLayer()) -
trunk/Source/WebKit/ChangeLog
r236086 r236088 1 2018-09-17 Simon Fraser <simon.fraser@apple.com> 2 3 Add more Fullscreen logging 4 https://bugs.webkit.org/show_bug.cgi?id=189656 5 6 Reviewed by Jer Noble. 7 8 Add some fullscreen logging so I can tell whether WebFullScreenManager ever releases 9 the fullscreen element. 10 11 * WebProcess/FullScreen/WebFullScreenManager.cpp: 12 (WebKit::WebFullScreenManager::WebFullScreenManager): 13 (WebKit::WebFullScreenManager::videoControlsManagerDidChange): 14 (WebKit::WebFullScreenManager::setPIPStandbyElement): 15 (WebKit::WebFullScreenManager::enterFullScreenForElement): 16 (WebKit::WebFullScreenManager::exitFullScreenForElement): 17 (WebKit::WebFullScreenManager::willEnterFullScreen): 18 (WebKit::WebFullScreenManager::didEnterFullScreen): 19 (WebKit::WebFullScreenManager::willExitFullScreen): 20 (WebKit::WebFullScreenManager::didExitFullScreen): 21 (WebKit::WebFullScreenManager::close): 22 * WebProcess/FullScreen/WebFullScreenManager.h: 23 1 24 2018-09-17 Tim Horton <timothy_horton@apple.com> 2 25 -
trunk/Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.cpp
r235906 r236088 29 29 30 30 #include "Connection.h" 31 #include "Logging.h" 31 32 #include "WebCoreArgumentCoders.h" 32 33 #include "WebFrame.h" … … 71 72 72 73 WebFullScreenManager::WebFullScreenManager(WebPage* page) 73 : m_topContentInset(0) 74 , m_page(page) 74 : m_page(page) 75 75 { 76 76 } … … 88 88 { 89 89 #if PLATFORM(IOS) || (PLATFORM(MAC) && ENABLE(VIDEO_PRESENTATION_MODE)) 90 LOG(Fullscreen, "WebFullScreenManager %p videoControlsManagerDidChange()", this); 91 90 92 auto* currentPlaybackControlsElement = m_page->playbackSessionManager().currentPlaybackControlsElement(); 91 93 if (!m_element || !is<HTMLVideoElement>(currentPlaybackControlsElement)) { … … 104 106 return; 105 107 108 LOG(Fullscreen, "WebFullScreenManager %p setPIPStandbyElement() - old element %p, new element %p", this, m_pipStandbyElement.get(), pipStandbyElement); 109 106 110 if (m_pipStandbyElement) 107 111 m_pipStandbyElement->setVideoFullscreenStandby(false); … … 129 133 void WebFullScreenManager::enterFullScreenForElement(WebCore::Element* element) 130 134 { 135 LOG(Fullscreen, "WebFullScreenManager %p enterFullScreenForElement(%p)", this, element); 136 131 137 ASSERT(element); 132 138 m_element = element; … … 137 143 void WebFullScreenManager::exitFullScreenForElement(WebCore::Element* element) 138 144 { 145 LOG(Fullscreen, "WebFullScreenManager %p exitFullScreenForElement(%p) - fullscreen element %p", this, element, m_element.get()); 139 146 m_page->injectedBundleFullScreenClient().exitFullScreenForElement(m_page.get(), element); 140 147 } … … 142 149 void WebFullScreenManager::willEnterFullScreen() 143 150 { 144 ASSERT(m_element); 151 LOG(Fullscreen, "WebFullScreenManager %p willEnterFullScreen() - element %p", this, m_element.get()); 152 145 153 m_element->document().webkitWillEnterFullScreenForElement(m_element.get()); 146 154 #if !PLATFORM(IOS) … … 155 163 void WebFullScreenManager::didEnterFullScreen() 156 164 { 157 ASSERT(m_element); 165 LOG(Fullscreen, "WebFullScreenManager %p didEnterFullScreen() - element %p", this, m_element.get()); 166 158 167 m_element->document().webkitDidEnterFullScreenForElement(m_element.get()); 159 168 … … 166 175 void WebFullScreenManager::willExitFullScreen() 167 176 { 177 LOG(Fullscreen, "WebFullScreenManager %p willExitFullScreen() - element %p", this, m_element.get()); 168 178 ASSERT(m_element); 169 179 … … 182 192 void WebFullScreenManager::didExitFullScreen() 183 193 { 194 LOG(Fullscreen, "WebFullScreenManager %p didExitFullScreen() - element %p", this, m_element.get()); 195 184 196 ASSERT(m_element); 185 197 setFullscreenInsets(FloatBoxExtent()); … … 202 214 void WebFullScreenManager::close() 203 215 { 216 LOG(Fullscreen, "WebFullScreenManager %p close()", this); 204 217 m_page->injectedBundleFullScreenClient().closeFullScreen(m_page.get()); 205 218 } -
trunk/Source/WebKit/WebProcess/FullScreen/WebFullScreenManager.h
r233671 r236088 23 23 * THE POSSIBILITY OF SUCH DAMAGE. 24 24 */ 25 #ifndef WebFullScreenManager_h 26 # define WebFullScreenManager_h25 26 #pragma once 27 27 28 28 #if ENABLE(FULLSCREEN_API) … … 90 90 WebCore::IntRect m_finalFrame; 91 91 WebCore::IntPoint m_scrollPosition; 92 float m_topContentInset ;92 float m_topContentInset { 0 }; 93 93 RefPtr<WebPage> m_page; 94 94 RefPtr<WebCore::Element> m_element; … … 101 101 102 102 #endif // ENABLE(FULLSCREEN_API) 103 104 #endif // WebFullScreenManager_h
Note:
See TracChangeset
for help on using the changeset viewer.