| 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 4277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4288 } else { | 4288 } else { |
| 4289 m_rootGraphicsLayer = nullptr; | 4289 m_rootGraphicsLayer = nullptr; |
| 4290 m_visualViewportContainerLayer = nullptr; | 4290 m_visualViewportContainerLayer = nullptr; |
| 4291 m_rootLayer = nullptr; | 4291 m_rootLayer = nullptr; |
| 4292 // This means that we're transitioning to a new page. Suppress | 4292 // This means that we're transitioning to a new page. Suppress |
| 4293 // commits until Blink generates invalidations so we don't | 4293 // commits until Blink generates invalidations so we don't |
| 4294 // attempt to paint too early in the next page load. | 4294 // attempt to paint too early in the next page load. |
| 4295 m_layerTreeView->setDeferCommits(true); | 4295 m_layerTreeView->setDeferCommits(true); |
| 4296 m_layerTreeView->clearRootLayer(); | 4296 m_layerTreeView->clearRootLayer(); |
| 4297 m_layerTreeView->clearViewportLayers(); | 4297 m_layerTreeView->clearViewportLayers(); |
| 4298 if (WebDevToolsAgentImpl* devTools = mainFrameDevToolsAgentImpl()) |
| 4299 devTools->rootLayerCleared(); |
| 4298 } | 4300 } |
| 4299 } | 4301 } |
| 4300 | 4302 |
| 4301 void WebViewImpl::invalidateRect(const IntRect& rect) | 4303 void WebViewImpl::invalidateRect(const IntRect& rect) |
| 4302 { | 4304 { |
| 4303 if (m_layerTreeView) | 4305 if (m_layerTreeView) |
| 4304 updateLayerTreeViewport(); | 4306 updateLayerTreeViewport(); |
| 4305 else if (m_client) | 4307 else if (m_client) |
| 4306 m_client->widgetClient()->didInvalidateRect(rect); | 4308 m_client->widgetClient()->didInvalidateRect(rect); |
| 4307 } | 4309 } |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4618 return nullptr; | 4620 return nullptr; |
| 4619 return focusedFrame; | 4621 return focusedFrame; |
| 4620 } | 4622 } |
| 4621 | 4623 |
| 4622 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const | 4624 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const |
| 4623 { | 4625 { |
| 4624 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; | 4626 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; |
| 4625 } | 4627 } |
| 4626 | 4628 |
| 4627 } // namespace blink | 4629 } // namespace blink |
| OLD | NEW |