OLD | NEW |
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 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 m_layerTreeView->registerViewportLayers(nullptr, pageScaleLayer, roo
tScrollLayer->platformLayer(), nullptr); | 1018 m_layerTreeView->registerViewportLayers(nullptr, pageScaleLayer, roo
tScrollLayer->platformLayer(), nullptr); |
1019 } else { | 1019 } else { |
1020 m_layerTreeView->clearRootLayer(); | 1020 m_layerTreeView->clearRootLayer(); |
1021 m_layerTreeView->clearViewportLayers(); | 1021 m_layerTreeView->clearViewportLayers(); |
1022 } | 1022 } |
1023 } | 1023 } |
1024 | 1024 |
1025 suppressInvalidations(false); | 1025 suppressInvalidations(false); |
1026 } | 1026 } |
1027 | 1027 |
| 1028 void WebFrameWidgetImpl::attachCompositorAnimationTimeline(WebCompositorAnimatio
nTimeline* compositorTimeline) |
| 1029 { |
| 1030 if (m_layerTreeView) |
| 1031 m_layerTreeView->attachCompositorAnimationTimeline(compositorTimeline); |
| 1032 |
| 1033 } |
| 1034 |
| 1035 void WebFrameWidgetImpl::detachCompositorAnimationTimeline(WebCompositorAnimatio
nTimeline* compositorTimeline) |
| 1036 { |
| 1037 if (m_layerTreeView) |
| 1038 m_layerTreeView->detachCompositorAnimationTimeline(compositorTimeline); |
| 1039 } |
| 1040 |
1028 void WebFrameWidgetImpl::setVisibilityState(WebPageVisibilityState visibilitySta
te, bool isInitialState) | 1041 void WebFrameWidgetImpl::setVisibilityState(WebPageVisibilityState visibilitySta
te, bool isInitialState) |
1029 { | 1042 { |
1030 if (!m_page) | 1043 if (!m_page) |
1031 return; | 1044 return; |
1032 | 1045 |
1033 // FIXME: This is not correct, since Show and Hide messages for a frame's Wi
dget do not necessarily | 1046 // FIXME: This is not correct, since Show and Hide messages for a frame's Wi
dget do not necessarily |
1034 // correspond to Page visibility, but is necessary until we properly sort ou
t OOPIF visibility. | 1047 // correspond to Page visibility, but is necessary until we properly sort ou
t OOPIF visibility. |
1035 m_page->setVisibilityState(static_cast<PageVisibilityState>(visibilityState)
, isInitialState); | 1048 m_page->setVisibilityState(static_cast<PageVisibilityState>(visibilityState)
, isInitialState); |
1036 | 1049 |
1037 if (m_layerTreeView) { | 1050 if (m_layerTreeView) { |
1038 bool visible = visibilityState == WebPageVisibilityStateVisible; | 1051 bool visible = visibilityState == WebPageVisibilityStateVisible; |
1039 m_layerTreeView->setVisible(visible); | 1052 m_layerTreeView->setVisible(visible); |
1040 } | 1053 } |
1041 } | 1054 } |
1042 | 1055 |
1043 } // namespace blink | 1056 } // namespace blink |
OLD | NEW |