Chromium Code Reviews| 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 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1007 m_layerTreeView->registerViewportLayers(nullptr, pageScaleLayer, roo tScrollLayer->platformLayer(), nullptr); | 1007 m_layerTreeView->registerViewportLayers(nullptr, pageScaleLayer, roo tScrollLayer->platformLayer(), nullptr); |
| 1008 } else { | 1008 } else { |
| 1009 m_layerTreeView->clearRootLayer(); | 1009 m_layerTreeView->clearRootLayer(); |
| 1010 m_layerTreeView->clearViewportLayers(); | 1010 m_layerTreeView->clearViewportLayers(); |
| 1011 } | 1011 } |
| 1012 } | 1012 } |
| 1013 | 1013 |
| 1014 suppressInvalidations(false); | 1014 suppressInvalidations(false); |
| 1015 } | 1015 } |
| 1016 | 1016 |
| 1017 void WebFrameWidgetImpl::setVisibilityState(WebPageVisibilityState visibilitySta te, bool isInitialState) | |
| 1018 { | |
| 1019 if (!m_page) | |
| 1020 return; | |
| 1021 | |
| 1022 ASSERT(visibilityState == WebPageVisibilityStateVisible || visibilityState = = WebPageVisibilityStateHidden || visibilityState == WebPageVisibilityStatePrere nder); | |
|
dcheng
2015/02/26 17:42:08
I guess the original implementation has this, but
kenrb
2015/02/26 18:08:52
I think it is just a guard. Looks like brettw orig
| |
| 1023 m_page->setVisibilityState(static_cast<PageVisibilityState>(static_cast<int> (visibilityState)), isInitialState); | |
|
dcheng
2015/02/26 17:42:08
Can we just static_cast<> directly to PageVisibili
kenrb
2015/02/26 18:08:52
Apparently we can. Looks like on oversight in the
| |
| 1024 | |
| 1025 if (m_layerTreeView) { | |
| 1026 bool visible = visibilityState == WebPageVisibilityStateVisible; | |
| 1027 m_layerTreeView->setVisible(visible); | |
| 1028 } | |
| 1029 } | |
| 1030 | |
| 1017 } // namespace blink | 1031 } // namespace blink |
| OLD | NEW |