Changeset 125815 in webkit
- Timestamp:
- Aug 16, 2012 3:29:48 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r125811 r125815 1 2012-08-16 Adam Barth <abarth@webkit.org> 2 3 Null checks of m_frame->document()->domWindow() aren't needed 4 https://bugs.webkit.org/show_bug.cgi?id=94052 5 6 Reviewed by Eric Seidel. 7 8 If a document is attached to a frame, then its DOMWindow is necessarily 9 non-0. Checking for 0 is needless. 10 11 * loader/DocumentLoader.cpp: 12 (WebCore::DocumentLoader::checkLoadComplete): 13 * loader/FrameLoader.cpp: 14 (WebCore::FrameLoader::stopLoading): 15 (WebCore::FrameLoader::didOpenURL): 16 (WebCore::FrameLoader::prepareForCachedPageRestore): 17 1 18 2012-08-16 Max Feil <mfeil@rim.com> 2 19 -
trunk/Source/WebCore/loader/DocumentLoader.cpp
r125763 r125815 429 429 return; 430 430 ASSERT(this == frameLoader()->activeDocumentLoader()); 431 432 if (DOMWindow* window = m_frame->document()->domWindow()) 433 window->finishedLoading(); 431 m_frame->document()->domWindow()->finishedLoading(); 434 432 } 435 433 -
trunk/Source/WebCore/loader/FrameLoader.cpp
r125772 r125815 360 360 if (currentFocusedNode) 361 361 currentFocusedNode->aboutToUnload(); 362 if (m_ frame->document()->domWindow() && m_pageDismissalEventBeingDispatched == NoDismissal) {362 if (m_pageDismissalEventBeingDispatched == NoDismissal) { 363 363 if (unloadEventPolicy == UnloadEventPolicyUnloadAndPageHide) { 364 364 m_pageDismissalEventBeingDispatched = PageHideDismissal; … … 467 467 // since it may cause clients to attempt to render the frame. 468 468 if (!m_stateMachine.creatingInitialEmptyDocument()) { 469 if (DOMWindow* window = m_frame->document()->domWindow()) { 470 window->setStatus(String()); 471 window->setDefaultStatus(String()); 472 } 469 DOMWindow* window = m_frame->document()->domWindow(); 470 window->setStatus(String()); 471 window->setDefaultStatus(String()); 473 472 } 474 473 … … 1913 1912 // Delete old status bar messages (if it _was_ activated on last URL). 1914 1913 if (m_frame->script()->canExecuteScripts(NotAboutToExecuteScript)) { 1915 if (DOMWindow* window = m_frame->document()->domWindow()) { 1916 window->setStatus(String()); 1917 window->setDefaultStatus(String()); 1918 } 1914 DOMWindow* window = m_frame->document()->domWindow(); 1915 window->setStatus(String()); 1916 window->setDefaultStatus(String()); 1919 1917 } 1920 1918 }
Note: See TracChangeset
for help on using the changeset viewer.