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

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

Issue 2791223002: Notify Blink to suppress frame requests during BeginMainFrame (Closed)
Patch Set: DCHECK update 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 225
226 226
227 void WebFrameWidgetImpl::didEnterFullscreen() { 227 void WebFrameWidgetImpl::didEnterFullscreen() {
228 view()->didEnterFullscreen(); 228 view()->didEnterFullscreen();
229 } 229 }
230 230
231 void WebFrameWidgetImpl::didExitFullscreen() { 231 void WebFrameWidgetImpl::didExitFullscreen() {
232 view()->didExitFullscreen(); 232 view()->didExitFullscreen();
233 } 233 }
234 234
235 void WebFrameWidgetImpl::setSuppressFrameRequestsWorkaroundFor704763Only(
236 bool suppressFrameRequests) {
237 page()->animator().setSuppressFrameRequestsWorkaroundFor704763Only(
238 suppressFrameRequests);
239 }
235 void WebFrameWidgetImpl::beginFrame(double lastFrameTimeMonotonic) { 240 void WebFrameWidgetImpl::beginFrame(double lastFrameTimeMonotonic) {
236 TRACE_EVENT1("blink", "WebFrameWidgetImpl::beginFrame", "frameTime", 241 TRACE_EVENT1("blink", "WebFrameWidgetImpl::beginFrame", "frameTime",
237 lastFrameTimeMonotonic); 242 lastFrameTimeMonotonic);
238 DCHECK(lastFrameTimeMonotonic); 243 DCHECK(lastFrameTimeMonotonic);
239 PageWidgetDelegate::animate(*page(), lastFrameTimeMonotonic); 244 PageWidgetDelegate::animate(*page(), lastFrameTimeMonotonic);
240 } 245 }
241 246
242 void WebFrameWidgetImpl::updateAllLifecyclePhases() { 247 void WebFrameWidgetImpl::updateAllLifecyclePhases() {
243 TRACE_EVENT0("blink", "WebFrameWidgetImpl::updateAllLifecyclePhases"); 248 TRACE_EVENT0("blink", "WebFrameWidgetImpl::updateAllLifecyclePhases");
244 if (!m_localRoot) 249 if (!m_localRoot)
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 return nullptr; 1158 return nullptr;
1154 } 1159 }
1155 1160
1156 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const { 1161 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const {
1157 if (!m_imeAcceptEvents) 1162 if (!m_imeAcceptEvents)
1158 return nullptr; 1163 return nullptr;
1159 return focusedLocalFrameInWidget(); 1164 return focusedLocalFrameInWidget();
1160 } 1165 }
1161 1166
1162 } // namespace blink 1167 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698