Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: Source/web/FrameLoaderClientImpl.cpp

Issue 1292143003: Don't resume commits after every layout. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Always resume commits after the main document has finished parsing. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/web/WebViewImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 unsigned long identifier) 375 unsigned long identifier)
376 { 376 {
377 if (m_webFrame->client()) 377 if (m_webFrame->client())
378 m_webFrame->client()->didFinishResourceLoad(m_webFrame, identifier); 378 m_webFrame->client()->didFinishResourceLoad(m_webFrame, identifier);
379 } 379 }
380 380
381 void FrameLoaderClientImpl::dispatchDidFinishDocumentLoad(bool documentIsEmpty) 381 void FrameLoaderClientImpl::dispatchDidFinishDocumentLoad(bool documentIsEmpty)
382 { 382 {
383 if (m_webFrame->client()) 383 if (m_webFrame->client())
384 m_webFrame->client()->didFinishDocumentLoad(m_webFrame, documentIsEmpty) ; 384 m_webFrame->client()->didFinishDocumentLoad(m_webFrame, documentIsEmpty) ;
385 if (WebViewImpl* webview = m_webFrame->viewImpl())
386 webview->didFinishDocumentLoad(m_webFrame);
385 } 387 }
386 388
387 void FrameLoaderClientImpl::dispatchDidLoadResourceFromMemoryCache(const Resourc eRequest& request, const ResourceResponse& response) 389 void FrameLoaderClientImpl::dispatchDidLoadResourceFromMemoryCache(const Resourc eRequest& request, const ResourceResponse& response)
388 { 390 {
389 if (m_webFrame->client()) 391 if (m_webFrame->client())
390 m_webFrame->client()->didLoadResourceFromMemoryCache(m_webFrame, Wrapped ResourceRequest(request), WrappedResourceResponse(response)); 392 m_webFrame->client()->didLoadResourceFromMemoryCache(m_webFrame, Wrapped ResourceRequest(request), WrappedResourceResponse(response));
391 } 393 }
392 394
393 void FrameLoaderClientImpl::dispatchDidHandleOnloadEvents() 395 void FrameLoaderClientImpl::dispatchDidHandleOnloadEvents()
394 { 396 {
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 976
975 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type) 977 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type)
976 { 978 {
977 if (m_webFrame->client()) { 979 if (m_webFrame->client()) {
978 m_webFrame->client()->suddenTerminationDisablerChanged( 980 m_webFrame->client()->suddenTerminationDisablerChanged(
979 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type)); 981 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type));
980 } 982 }
981 } 983 }
982 984
983 } // namespace blink 985 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698