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

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: oops Created 4 years, 8 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 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 } 968 }
969 969
970 bool FrameLoaderClientImpl::allowWebGL(bool enabledPerSettings) 970 bool FrameLoaderClientImpl::allowWebGL(bool enabledPerSettings)
971 { 971 {
972 if (m_webFrame->client()) 972 if (m_webFrame->client())
973 return m_webFrame->client()->allowWebGL(enabledPerSettings); 973 return m_webFrame->client()->allowWebGL(enabledPerSettings);
974 974
975 return enabledPerSettings; 975 return enabledPerSettings;
976 } 976 }
977 977
978 void FrameLoaderClientImpl::didLoseWebGLContext(int arbRobustnessContextLostReas on)
979 {
980 if (m_webFrame->client())
981 m_webFrame->client()->didLoseWebGLContext(arbRobustnessContextLostReason );
982 }
983
984 void FrameLoaderClientImpl::dispatchWillInsertBody() 978 void FrameLoaderClientImpl::dispatchWillInsertBody()
985 { 979 {
986 if (m_webFrame->client()) 980 if (m_webFrame->client())
987 m_webFrame->client()->willInsertBody(m_webFrame); 981 m_webFrame->client()->willInsertBody(m_webFrame);
988 982
989 if (m_webFrame->parent()) 983 if (m_webFrame->parent())
990 return; 984 return;
991 985
992 if (m_webFrame->viewImpl()) 986 if (m_webFrame->viewImpl())
993 m_webFrame->viewImpl()->willInsertMainFrameDocumentBody(); 987 m_webFrame->viewImpl()->willInsertMainFrameDocumentBody();
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 return nullptr; 1051 return nullptr;
1058 return m_webFrame->client()->frameBlameContext(); 1052 return m_webFrame->client()->frameBlameContext();
1059 } 1053 }
1060 1054
1061 LinkResource* FrameLoaderClientImpl::createServiceWorkerLinkResource(HTMLLinkEle ment* owner) 1055 LinkResource* FrameLoaderClientImpl::createServiceWorkerLinkResource(HTMLLinkEle ment* owner)
1062 { 1056 {
1063 return ServiceWorkerLinkResource::create(owner); 1057 return ServiceWorkerLinkResource::create(owner);
1064 } 1058 }
1065 1059
1066 } // namespace blink 1060 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698