| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * | 10 * |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #include "config.h" | 29 #include "config.h" |
| 30 #include "web/PageOverlay.h" | 30 #include "web/PageOverlay.h" |
| 31 | 31 |
| 32 #include "core/frame/Settings.h" | 32 #include "core/frame/Settings.h" |
| 33 #include "core/page/Page.h" | 33 #include "core/page/Page.h" |
| 34 #include "platform/graphics/GraphicsContext.h" |
| 34 #include "platform/graphics/GraphicsLayer.h" | 35 #include "platform/graphics/GraphicsLayer.h" |
| 35 #include "platform/graphics/GraphicsLayerClient.h" | 36 #include "platform/graphics/GraphicsLayerClient.h" |
| 36 #include "public/platform/WebLayer.h" | 37 #include "public/platform/WebLayer.h" |
| 37 #include "public/web/WebPageOverlay.h" | 38 #include "public/web/WebPageOverlay.h" |
| 38 #include "public/web/WebViewClient.h" | 39 #include "public/web/WebViewClient.h" |
| 39 #include "web/WebViewImpl.h" | 40 #include "web/WebViewImpl.h" |
| 40 | 41 |
| 41 using namespace WebCore; | 42 using namespace WebCore; |
| 42 | 43 |
| 43 namespace blink { | 44 namespace blink { |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 // this is not on a critical codepath? In order to do so, we'd | 159 // this is not on a critical codepath? In order to do so, we'd |
| 159 // have to take scrolling into account. | 160 // have to take scrolling into account. |
| 160 const WebSize& size = m_viewImpl->size(); | 161 const WebSize& size = m_viewImpl->size(); |
| 161 WebRect damagedRect(0, 0, size.width, size.height); | 162 WebRect damagedRect(0, 0, size.width, size.height); |
| 162 if (m_viewImpl->client()) | 163 if (m_viewImpl->client()) |
| 163 m_viewImpl->client()->didInvalidateRect(damagedRect); | 164 m_viewImpl->client()->didInvalidateRect(damagedRect); |
| 164 } | 165 } |
| 165 } | 166 } |
| 166 | 167 |
| 167 } // namespace blink | 168 } // namespace blink |
| OLD | NEW |