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

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

Issue 2564633002: Don't create layout objects for children of display-none iframes. (Closed)
Patch Set: Rebase. Created 3 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 /* 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 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 ContentSecurityPolicyHeaderType type, 878 ContentSecurityPolicyHeaderType type,
879 ContentSecurityPolicyHeaderSource source) { 879 ContentSecurityPolicyHeaderSource source) {
880 if (m_webFrame->client()) { 880 if (m_webFrame->client()) {
881 m_webFrame->client()->didAddContentSecurityPolicy( 881 m_webFrame->client()->didAddContentSecurityPolicy(
882 headerValue, static_cast<WebContentSecurityPolicyType>(type), 882 headerValue, static_cast<WebContentSecurityPolicyType>(type),
883 static_cast<WebContentSecurityPolicySource>(source)); 883 static_cast<WebContentSecurityPolicySource>(source));
884 } 884 }
885 } 885 }
886 886
887 void FrameLoaderClientImpl::didChangeFrameOwnerProperties( 887 void FrameLoaderClientImpl::didChangeFrameOwnerProperties(
888 HTMLFrameElementBase* frameElement) { 888 HTMLFrameOwnerElement* frameElement) {
889 if (!m_webFrame->client()) 889 if (!m_webFrame->client())
890 return; 890 return;
891 891
892 m_webFrame->client()->didChangeFrameOwnerProperties( 892 m_webFrame->client()->didChangeFrameOwnerProperties(
893 WebFrame::fromFrame(frameElement->contentFrame()), 893 WebFrame::fromFrame(frameElement->contentFrame()),
894 WebFrameOwnerProperties( 894 WebFrameOwnerProperties(
895 frameElement->browsingContextContainerName(), 895 frameElement->browsingContextContainerName(),
896 frameElement->scrollingMode(), frameElement->marginWidth(), 896 frameElement->scrollingMode(), frameElement->marginWidth(),
897 frameElement->marginHeight(), frameElement->allowFullscreen(), 897 frameElement->marginHeight(), frameElement->allowFullscreen(),
898 frameElement->allowPaymentRequest(), frameElement->csp(), 898 frameElement->allowPaymentRequest(), frameElement->isDisplayNone(),
899 frameElement->delegatedPermissions())); 899 frameElement->csp(), frameElement->delegatedPermissions()));
900 } 900 }
901 901
902 void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler( 902 void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler(
903 WebRTCPeerConnectionHandler* handler) { 903 WebRTCPeerConnectionHandler* handler) {
904 m_webFrame->client()->willStartUsingPeerConnectionHandler(handler); 904 m_webFrame->client()->willStartUsingPeerConnectionHandler(handler);
905 } 905 }
906 906
907 bool FrameLoaderClientImpl::allowWebGL(bool enabledPerSettings) { 907 bool FrameLoaderClientImpl::allowWebGL(bool enabledPerSettings) {
908 if (m_webFrame->client()) 908 if (m_webFrame->client())
909 return m_webFrame->client()->allowWebGL(enabledPerSettings); 909 return m_webFrame->client()->allowWebGL(enabledPerSettings);
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) { 999 KURL FrameLoaderClientImpl::overrideFlashEmbedWithHTML(const KURL& url) {
1000 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url)); 1000 return m_webFrame->client()->overrideFlashEmbedWithHTML(WebURL(url));
1001 } 1001 }
1002 1002
1003 void FrameLoaderClientImpl::setHasReceivedUserGesture() { 1003 void FrameLoaderClientImpl::setHasReceivedUserGesture() {
1004 if (m_webFrame->client()) 1004 if (m_webFrame->client())
1005 m_webFrame->client()->setHasReceivedUserGesture(); 1005 m_webFrame->client()->setHasReceivedUserGesture();
1006 } 1006 }
1007 1007
1008 } // namespace blink 1008 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698