| 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 11 matching lines...) Expand all Loading... |
| 22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 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 "PageOverlay.h" | 30 #include "PageOverlay.h" |
| 31 | 31 |
| 32 #include "PlatformContextSkia.h" | |
| 33 #include "WebPageOverlay.h" | 32 #include "WebPageOverlay.h" |
| 34 #include "WebViewClient.h" | 33 #include "WebViewClient.h" |
| 35 #include "WebViewImpl.h" | 34 #include "WebViewImpl.h" |
| 36 #include "core/page/Page.h" | 35 #include "core/page/Page.h" |
| 37 #include "core/page/Settings.h" | 36 #include "core/page/Settings.h" |
| 38 #include "core/platform/graphics/GraphicsLayer.h" | 37 #include "core/platform/graphics/GraphicsLayer.h" |
| 39 #include "core/platform/graphics/GraphicsLayerClient.h" | 38 #include "core/platform/graphics/GraphicsLayerClient.h" |
| 40 #include "core/platform/graphics/chromium/GraphicsLayerChromium.h" | 39 #include "core/platform/graphics/chromium/GraphicsLayerChromium.h" |
| 40 #include "core/platform/graphics/skia/PlatformContextSkia.h" |
| 41 #include <public/WebLayer.h> | 41 #include <public/WebLayer.h> |
| 42 | 42 |
| 43 using namespace WebCore; | 43 using namespace WebCore; |
| 44 | 44 |
| 45 namespace WebKit { | 45 namespace WebKit { |
| 46 | 46 |
| 47 namespace { | 47 namespace { |
| 48 | 48 |
| 49 WebCanvas* ToWebCanvas(GraphicsContext* gc) | 49 WebCanvas* ToWebCanvas(GraphicsContext* gc) |
| 50 { | 50 { |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 // this is not on a critical codepath? In order to do so, we'd | 160 // this is not on a critical codepath? In order to do so, we'd |
| 161 // have to take scrolling into account. | 161 // have to take scrolling into account. |
| 162 const WebSize& size = m_viewImpl->size(); | 162 const WebSize& size = m_viewImpl->size(); |
| 163 WebRect damagedRect(0, 0, size.width, size.height); | 163 WebRect damagedRect(0, 0, size.width, size.height); |
| 164 if (m_viewImpl->client()) | 164 if (m_viewImpl->client()) |
| 165 m_viewImpl->client()->didInvalidateRect(damagedRect); | 165 m_viewImpl->client()->didInvalidateRect(damagedRect); |
| 166 } | 166 } |
| 167 } | 167 } |
| 168 | 168 |
| 169 } // namespace WebKit | 169 } // namespace WebKit |
| OLD | NEW |