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

Side by Side Diff: third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp

Issue 1475863005: [Async][WIP] Call FrameLoader::checkCompleted() asynchronously to avoid sync body.onload() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "web/WebRemoteFrameImpl.h" 5 #include "web/WebRemoteFrameImpl.h"
6 6
7 #include "core/frame/FrameView.h" 7 #include "core/frame/FrameView.h"
8 #include "core/frame/Settings.h" 8 #include "core/frame/Settings.h"
9 #include "core/html/HTMLFrameOwnerElement.h" 9 #include "core/html/HTMLFrameOwnerElement.h"
10 #include "core/layout/LayoutObject.h" 10 #include "core/layout/LayoutObject.h"
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 { 712 {
713 frame()->setIsLoading(true); 713 frame()->setIsLoading(true);
714 } 714 }
715 715
716 void WebRemoteFrameImpl::didStopLoading() 716 void WebRemoteFrameImpl::didStopLoading()
717 { 717 {
718 frame()->setIsLoading(false); 718 frame()->setIsLoading(false);
719 if (parent() && parent()->isWebLocalFrame()) { 719 if (parent() && parent()->isWebLocalFrame()) {
720 WebLocalFrameImpl* parentFrame = 720 WebLocalFrameImpl* parentFrame =
721 toWebLocalFrameImpl(parent()->toWebLocalFrame()); 721 toWebLocalFrameImpl(parent()->toWebLocalFrame());
722 parentFrame->frame()->loader().checkCompleted(); 722 parentFrame->frame()->loader().checkCompleted(9);
723 } 723 }
724 } 724 }
725 725
726 bool WebRemoteFrameImpl::isIgnoredForHitTest() const 726 bool WebRemoteFrameImpl::isIgnoredForHitTest() const
727 { 727 {
728 HTMLFrameOwnerElement* owner = frame()->deprecatedLocalOwner(); 728 HTMLFrameOwnerElement* owner = frame()->deprecatedLocalOwner();
729 if (!owner || !owner->layoutObject()) 729 if (!owner || !owner->layoutObject())
730 return false; 730 return false;
731 return owner->layoutObject()->style()->pointerEvents() == PE_NONE; 731 return owner->layoutObject()->style()->pointerEvents() == PE_NONE;
732 } 732 }
733 733
734 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, WebRemoteFrameCli ent* client) 734 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, WebRemoteFrameCli ent* client)
735 : WebRemoteFrame(scope) 735 : WebRemoteFrame(scope)
736 , m_frameClient(RemoteFrameClientImpl::create(this)) 736 , m_frameClient(RemoteFrameClientImpl::create(this))
737 , m_client(client) 737 , m_client(client)
738 #if ENABLE(OILPAN) 738 #if ENABLE(OILPAN)
739 , m_selfKeepAlive(this) 739 , m_selfKeepAlive(this)
740 #endif 740 #endif
741 { 741 {
742 } 742 }
743 743
744 } // namespace blink 744 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698