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 16 matching lines...) Expand all Loading... |
27 */ | 27 */ |
28 | 28 |
29 #include "config.h" | 29 #include "config.h" |
30 #include "PageOverlay.h" | 30 #include "PageOverlay.h" |
31 | 31 |
32 #include "WebPageOverlay.h" | 32 #include "WebPageOverlay.h" |
33 #include "WebViewClient.h" | 33 #include "WebViewClient.h" |
34 #include "WebViewImpl.h" | 34 #include "WebViewImpl.h" |
35 #include "core/page/Page.h" | 35 #include "core/page/Page.h" |
36 #include "core/page/Settings.h" | 36 #include "core/page/Settings.h" |
37 #include "core/platform/graphics/GraphicsLayer.h" | 37 #include "platform/graphics/GraphicsLayer.h" |
38 #include "core/platform/graphics/GraphicsLayerClient.h" | 38 #include "platform/graphics/GraphicsLayerClient.h" |
39 #include "public/platform/WebLayer.h" | 39 #include "public/platform/WebLayer.h" |
40 | 40 |
41 using namespace WebCore; | 41 using namespace WebCore; |
42 | 42 |
43 namespace blink { | 43 namespace blink { |
44 | 44 |
45 namespace { | 45 namespace { |
46 | 46 |
47 WebCanvas* ToWebCanvas(GraphicsContext* gc) | 47 WebCanvas* ToWebCanvas(GraphicsContext* gc) |
48 { | 48 { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 // this is not on a critical codepath? In order to do so, we'd | 156 // this is not on a critical codepath? In order to do so, we'd |
157 // have to take scrolling into account. | 157 // have to take scrolling into account. |
158 const WebSize& size = m_viewImpl->size(); | 158 const WebSize& size = m_viewImpl->size(); |
159 WebRect damagedRect(0, 0, size.width, size.height); | 159 WebRect damagedRect(0, 0, size.width, size.height); |
160 if (m_viewImpl->client()) | 160 if (m_viewImpl->client()) |
161 m_viewImpl->client()->didInvalidateRect(damagedRect); | 161 m_viewImpl->client()->didInvalidateRect(damagedRect); |
162 } | 162 } |
163 } | 163 } |
164 | 164 |
165 } // namespace blink | 165 } // namespace blink |
OLD | NEW |