OLD | NEW |
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 Loading... |
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 |
OLD | NEW |