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

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

Issue 2786593002: Remove redundant WebLocalFrame* in runScriptsAtDocumentElementAvailable (Closed)
Patch Set: Created 3 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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | third_party/WebKit/public/web/WebFrameClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 devToolsFrontend->didClearWindowObject(m_webFrame); 171 devToolsFrontend->didClearWindowObject(m_webFrame);
172 } 172 }
173 173
174 void LocalFrameClientImpl::documentElementAvailable() { 174 void LocalFrameClientImpl::documentElementAvailable() {
175 if (m_webFrame->client()) 175 if (m_webFrame->client())
176 m_webFrame->client()->didCreateDocumentElement(m_webFrame); 176 m_webFrame->client()->didCreateDocumentElement(m_webFrame);
177 } 177 }
178 178
179 void LocalFrameClientImpl::runScriptsAtDocumentElementAvailable() { 179 void LocalFrameClientImpl::runScriptsAtDocumentElementAvailable() {
180 if (m_webFrame->client()) 180 if (m_webFrame->client())
181 m_webFrame->client()->runScriptsAtDocumentElementAvailable(m_webFrame); 181 m_webFrame->client()->runScriptsAtDocumentElementAvailable();
182 // The callback might have deleted the frame, do not use |this|! 182 // The callback might have deleted the frame, do not use |this|!
183 } 183 }
184 184
185 void LocalFrameClientImpl::runScriptsAtDocumentReady(bool documentIsEmpty) { 185 void LocalFrameClientImpl::runScriptsAtDocumentReady(bool documentIsEmpty) {
186 if (m_webFrame->client()) { 186 if (m_webFrame->client()) {
187 m_webFrame->client()->runScriptsAtDocumentReady(m_webFrame, 187 m_webFrame->client()->runScriptsAtDocumentReady(m_webFrame,
188 documentIsEmpty); 188 documentIsEmpty);
189 } 189 }
190 // The callback might have deleted the frame, do not use |this|! 190 // The callback might have deleted the frame, do not use |this|!
191 } 191 }
(...skipping 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 if (m_webFrame->client()) 1033 if (m_webFrame->client())
1034 m_webFrame->client()->setHasReceivedUserGesture(); 1034 m_webFrame->client()->setHasReceivedUserGesture();
1035 } 1035 }
1036 1036
1037 void LocalFrameClientImpl::abortClientNavigation() { 1037 void LocalFrameClientImpl::abortClientNavigation() {
1038 if (m_webFrame->client()) 1038 if (m_webFrame->client())
1039 m_webFrame->client()->abortClientNavigation(); 1039 m_webFrame->client()->abortClientNavigation();
1040 } 1040 }
1041 1041
1042 } // namespace blink 1042 } // namespace blink
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | third_party/WebKit/public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698