OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 | 217 |
218 void resetTrackedPaintInvalidations(); | 218 void resetTrackedPaintInvalidations(); |
219 void addRepaintRect(const FloatRect&); | 219 void addRepaintRect(const FloatRect&); |
220 | 220 |
221 void addLinkHighlight(LinkHighlightClient*); | 221 void addLinkHighlight(LinkHighlightClient*); |
222 void removeLinkHighlight(LinkHighlightClient*); | 222 void removeLinkHighlight(LinkHighlightClient*); |
223 // Exposed for tests | 223 // Exposed for tests |
224 unsigned numLinkHighlights() { return m_linkHighlights.size(); } | 224 unsigned numLinkHighlights() { return m_linkHighlights.size(); } |
225 LinkHighlightClient* linkHighlight(int i) { return m_linkHighlights[i]; } | 225 LinkHighlightClient* linkHighlight(int i) { return m_linkHighlights[i]; } |
226 | 226 |
227 void setScrollableArea(ScrollableArea*, bool isMainFrame); | 227 void setScrollableArea(ScrollableArea*, bool isViewport); |
228 ScrollableArea* scrollableArea() const { return m_scrollableArea; } | 228 ScrollableArea* scrollableArea() const { return m_scrollableArea; } |
229 | 229 |
230 WebContentLayer* contentLayer() const { return m_layer.get(); } | 230 WebContentLayer* contentLayer() const { return m_layer.get(); } |
231 | 231 |
232 static void registerContentsLayer(WebLayer*); | 232 static void registerContentsLayer(WebLayer*); |
233 static void unregisterContentsLayer(WebLayer*); | 233 static void unregisterContentsLayer(WebLayer*); |
234 | 234 |
235 // GraphicsContextPainter implementation. | 235 // GraphicsContextPainter implementation. |
236 virtual void paint(GraphicsContext&, const IntRect& clip) OVERRIDE; | 236 virtual void paint(GraphicsContext&, const IntRect& clip) OVERRIDE; |
237 | 237 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 }; | 344 }; |
345 | 345 |
346 } // namespace blink | 346 } // namespace blink |
347 | 347 |
348 #ifndef NDEBUG | 348 #ifndef NDEBUG |
349 // Outside the WebCore namespace for ease of invocation from gdb. | 349 // Outside the WebCore namespace for ease of invocation from gdb. |
350 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 350 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
351 #endif | 351 #endif |
352 | 352 |
353 #endif // GraphicsLayer_h | 353 #endif // GraphicsLayer_h |
OLD | NEW |