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

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

Issue 1747283003: Remove redundant codepath for webgl api blocking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better handle 'exit_on_context_lost' Created 4 years, 9 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 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 } 954 }
955 955
956 bool FrameLoaderClientImpl::allowWebGL(bool enabledPerSettings) 956 bool FrameLoaderClientImpl::allowWebGL(bool enabledPerSettings)
957 { 957 {
958 if (m_webFrame->client()) 958 if (m_webFrame->client())
959 return m_webFrame->client()->allowWebGL(enabledPerSettings); 959 return m_webFrame->client()->allowWebGL(enabledPerSettings);
960 960
961 return enabledPerSettings; 961 return enabledPerSettings;
962 } 962 }
963 963
964 void FrameLoaderClientImpl::didLoseWebGLContext(int arbRobustnessContextLostReas on)
965 {
966 if (m_webFrame->client())
967 m_webFrame->client()->didLoseWebGLContext(arbRobustnessContextLostReason );
968 }
969
970 void FrameLoaderClientImpl::dispatchWillInsertBody() 964 void FrameLoaderClientImpl::dispatchWillInsertBody()
971 { 965 {
972 if (m_webFrame->client()) 966 if (m_webFrame->client())
973 m_webFrame->client()->willInsertBody(m_webFrame); 967 m_webFrame->client()->willInsertBody(m_webFrame);
974 968
975 if (m_webFrame->parent()) 969 if (m_webFrame->parent())
976 return; 970 return;
977 971
978 if (m_webFrame->viewImpl()) 972 if (m_webFrame->viewImpl())
979 m_webFrame->viewImpl()->willInsertMainFrameDocumentBody(); 973 m_webFrame->viewImpl()->willInsertMainFrameDocumentBody();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
1031 1025
1032 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type) 1026 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type)
1033 { 1027 {
1034 if (m_webFrame->client()) { 1028 if (m_webFrame->client()) {
1035 m_webFrame->client()->suddenTerminationDisablerChanged( 1029 m_webFrame->client()->suddenTerminationDisablerChanged(
1036 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type)); 1030 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type));
1037 } 1031 }
1038 } 1032 }
1039 1033
1040 } // namespace blink 1034 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698