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

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: rebase 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 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 } 966 }
967 967
968 bool FrameLoaderClientImpl::allowWebGL(bool enabledPerSettings) 968 bool FrameLoaderClientImpl::allowWebGL(bool enabledPerSettings)
969 { 969 {
970 if (m_webFrame->client()) 970 if (m_webFrame->client())
971 return m_webFrame->client()->allowWebGL(enabledPerSettings); 971 return m_webFrame->client()->allowWebGL(enabledPerSettings);
972 972
973 return enabledPerSettings; 973 return enabledPerSettings;
974 } 974 }
975 975
976 void FrameLoaderClientImpl::didLoseWebGLContext(int arbRobustnessContextLostReas on)
977 {
978 if (m_webFrame->client())
979 m_webFrame->client()->didLoseWebGLContext(arbRobustnessContextLostReason );
980 }
981
982 void FrameLoaderClientImpl::dispatchWillInsertBody() 976 void FrameLoaderClientImpl::dispatchWillInsertBody()
983 { 977 {
984 if (m_webFrame->client()) 978 if (m_webFrame->client())
985 m_webFrame->client()->willInsertBody(m_webFrame); 979 m_webFrame->client()->willInsertBody(m_webFrame);
986 980
987 if (m_webFrame->parent()) 981 if (m_webFrame->parent())
988 return; 982 return;
989 983
990 if (m_webFrame->viewImpl()) 984 if (m_webFrame->viewImpl())
991 m_webFrame->viewImpl()->willInsertMainFrameDocumentBody(); 985 m_webFrame->viewImpl()->willInsertMainFrameDocumentBody();
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 return nullptr; 1049 return nullptr;
1056 return m_webFrame->client()->frameBlameContext(); 1050 return m_webFrame->client()->frameBlameContext();
1057 } 1051 }
1058 1052
1059 LinkResource* FrameLoaderClientImpl::createServiceWorkerLinkResource(HTMLLinkEle ment* owner) 1053 LinkResource* FrameLoaderClientImpl::createServiceWorkerLinkResource(HTMLLinkEle ment* owner)
1060 { 1054 {
1061 return ServiceWorkerLinkResource::create(owner); 1055 return ServiceWorkerLinkResource::create(owner);
1062 } 1056 }
1063 1057
1064 } // namespace blink 1058 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.h ('k') | third_party/WebKit/public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698