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

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

Issue 1127013005: Implement layoutAndPaintAsync() for WebPagePopupImpl and WebFrameWidgetImpl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: It also fixes crbug.com/485501 Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/WebFrameWidgetImpl.h ('k') | Source/web/WebPagePopupImpl.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) 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 float deviceScaleFactor = page()->deviceScaleFactor(); 285 float deviceScaleFactor = page()->deviceScaleFactor();
286 m_layerTreeView->setDeviceScaleFactor(deviceScaleFactor); 286 m_layerTreeView->setDeviceScaleFactor(deviceScaleFactor);
287 } 287 }
288 288
289 bool WebFrameWidgetImpl::isTransparent() const 289 bool WebFrameWidgetImpl::isTransparent() const
290 { 290 {
291 // FIXME: This might need to proxy to the WebView's isTransparent(). 291 // FIXME: This might need to proxy to the WebView's isTransparent().
292 return false; 292 return false;
293 } 293 }
294 294
295 void WebFrameWidgetImpl::layoutAndPaintAsync(WebLayoutAndPaintAsyncCallback* cal lback)
296 {
297 m_layerTreeView->layoutAndPaintAsync(callback);
298 }
299
295 void WebFrameWidgetImpl::compositeAndReadbackAsync(WebCompositeAndReadbackAsyncC allback* callback) 300 void WebFrameWidgetImpl::compositeAndReadbackAsync(WebCompositeAndReadbackAsyncC allback* callback)
296 { 301 {
297 m_layerTreeView->compositeAndReadbackAsync(callback); 302 m_layerTreeView->compositeAndReadbackAsync(callback);
298 } 303 }
299 304
300 bool WebFrameWidgetImpl::isTrackingRepaints() const 305 bool WebFrameWidgetImpl::isTrackingRepaints() const
301 { 306 {
302 return m_localRoot->frameView()->isTrackingPaintInvalidations(); 307 return m_localRoot->frameView()->isTrackingPaintInvalidations();
303 } 308 }
304 309
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 // correspond to Page visibility, but is necessary until we properly sort ou t OOPIF visibility. 1055 // correspond to Page visibility, but is necessary until we properly sort ou t OOPIF visibility.
1051 m_page->setVisibilityState(static_cast<PageVisibilityState>(visibilityState) , isInitialState); 1056 m_page->setVisibilityState(static_cast<PageVisibilityState>(visibilityState) , isInitialState);
1052 1057
1053 if (m_layerTreeView) { 1058 if (m_layerTreeView) {
1054 bool visible = visibilityState == WebPageVisibilityStateVisible; 1059 bool visible = visibilityState == WebPageVisibilityStateVisible;
1055 m_layerTreeView->setVisible(visible); 1060 m_layerTreeView->setVisible(visible);
1056 } 1061 }
1057 } 1062 }
1058 1063
1059 } // namespace blink 1064 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebFrameWidgetImpl.h ('k') | Source/web/WebPagePopupImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698