| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 PageOverlay::PageOverlay(WebViewImpl* viewImpl, WebPageOverlay* overlay) | 59 PageOverlay::PageOverlay(WebViewImpl* viewImpl, WebPageOverlay* overlay) |
| 60 : m_viewImpl(viewImpl) | 60 : m_viewImpl(viewImpl) |
| 61 , m_overlay(overlay) | 61 , m_overlay(overlay) |
| 62 , m_layerClient(0) | 62 , m_layerClient(0) |
| 63 , m_zOrder(0) | 63 , m_zOrder(0) |
| 64 { | 64 { |
| 65 } | 65 } |
| 66 | 66 |
| 67 class OverlayGraphicsLayerClientImpl : public WebCore::GraphicsLayerClient { | 67 class OverlayGraphicsLayerClientImpl : public WebCore::GraphicsLayerClient { |
| 68 public: | 68 public: |
| 69 static PassOwnPtr<OverlayGraphicsLayerClientImpl*> create(WebPageOverlay* ov
erlay) | 69 static PassOwnPtr<OverlayGraphicsLayerClientImpl> create(WebPageOverlay* ove
rlay) |
| 70 { | 70 { |
| 71 return adoptPtr(new OverlayGraphicsLayerClientImpl(overlay)); | 71 return adoptPtr(new OverlayGraphicsLayerClientImpl(overlay)); |
| 72 } | 72 } |
| 73 | 73 |
| 74 virtual ~OverlayGraphicsLayerClientImpl() { } | 74 virtual ~OverlayGraphicsLayerClientImpl() { } |
| 75 | 75 |
| 76 PassOwnPtr<GraphicsLayer> createGraphicsLayer(GraphicsLayerFactory* factory) | 76 PassOwnPtr<GraphicsLayer> createGraphicsLayer(GraphicsLayerFactory* factory) |
| 77 { | 77 { |
| 78 m_layer = GraphicsLayer::create(factory, this); | 78 m_layer = GraphicsLayer::create(factory, this); |
| 79 return m_layer.release(); | 79 return m_layer.release(); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 // this is not on a critical codepath? In order to do so, we'd | 174 // this is not on a critical codepath? In order to do so, we'd |
| 175 // have to take scrolling into account. | 175 // have to take scrolling into account. |
| 176 const WebSize& size = m_viewImpl->size(); | 176 const WebSize& size = m_viewImpl->size(); |
| 177 WebRect damagedRect(0, 0, size.width, size.height); | 177 WebRect damagedRect(0, 0, size.width, size.height); |
| 178 if (m_viewImpl->client()) | 178 if (m_viewImpl->client()) |
| 179 m_viewImpl->client()->didInvalidateRect(damagedRect); | 179 m_viewImpl->client()->didInvalidateRect(damagedRect); |
| 180 } | 180 } |
| 181 } | 181 } |
| 182 | 182 |
| 183 } // namespace WebKit | 183 } // namespace WebKit |
| OLD | NEW |