| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 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 3450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3461 return; | 3461 return; |
| 3462 | 3462 |
| 3463 #if ENABLE(PAGE_VISIBILITY_API) | 3463 #if ENABLE(PAGE_VISIBILITY_API) |
| 3464 ASSERT(visibilityState == WebPageVisibilityStateVisible | 3464 ASSERT(visibilityState == WebPageVisibilityStateVisible |
| 3465 || visibilityState == WebPageVisibilityStateHidden | 3465 || visibilityState == WebPageVisibilityStateHidden |
| 3466 || visibilityState == WebPageVisibilityStatePrerender); | 3466 || visibilityState == WebPageVisibilityStatePrerender); |
| 3467 m_page->setVisibilityState(static_cast<PageVisibilityState>(static_cast<int>
(visibilityState)), isInitialState); | 3467 m_page->setVisibilityState(static_cast<PageVisibilityState>(static_cast<int>
(visibilityState)), isInitialState); |
| 3468 #endif | 3468 #endif |
| 3469 | 3469 |
| 3470 #if USE(ACCELERATED_COMPOSITING) | 3470 #if USE(ACCELERATED_COMPOSITING) |
| 3471 if (isAcceleratedCompositingActive()) { | 3471 if (!m_layerTreeView.isNull()) { |
| 3472 bool visible = visibilityState == WebPageVisibilityStateVisible; | 3472 bool visible = visibilityState == WebPageVisibilityStateVisible; |
| 3473 if (!visible) | 3473 if (!visible && isAcceleratedCompositingActive()) |
| 3474 m_nonCompositedContentHost->protectVisibleTileTextures(); | 3474 m_nonCompositedContentHost->protectVisibleTileTextures(); |
| 3475 m_layerTreeView.setVisible(visible); | 3475 m_layerTreeView.setVisible(visible); |
| 3476 } | 3476 } |
| 3477 #endif | 3477 #endif |
| 3478 } | 3478 } |
| 3479 | 3479 |
| 3480 #if ENABLE(POINTER_LOCK) | 3480 #if ENABLE(POINTER_LOCK) |
| 3481 bool WebViewImpl::requestPointerLock() | 3481 bool WebViewImpl::requestPointerLock() |
| 3482 { | 3482 { |
| 3483 return m_client && m_client->requestPointerLock(); | 3483 return m_client && m_client->requestPointerLock(); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 3514 const WebMouseEvent& mouseEvent = static_cast<const WebMouseEvent&>(event); | 3514 const WebMouseEvent& mouseEvent = static_cast<const WebMouseEvent&>(event); |
| 3515 | 3515 |
| 3516 if (page()) | 3516 if (page()) |
| 3517 page()->pointerLockController()->dispatchLockedMouseEvent( | 3517 page()->pointerLockController()->dispatchLockedMouseEvent( |
| 3518 PlatformMouseEventBuilder(mainFrameImpl()->frameView(), mouseEvent), | 3518 PlatformMouseEventBuilder(mainFrameImpl()->frameView(), mouseEvent), |
| 3519 eventType); | 3519 eventType); |
| 3520 } | 3520 } |
| 3521 #endif | 3521 #endif |
| 3522 | 3522 |
| 3523 } // namespace WebKit | 3523 } // namespace WebKit |
| OLD | NEW |