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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 } | 107 } |
108 | 108 |
109 DEFINE_TRACE(InspectorOverlayImpl) | 109 DEFINE_TRACE(InspectorOverlayImpl) |
110 { | 110 { |
111 visitor->trace(m_page); | 111 visitor->trace(m_page); |
112 visitor->trace(m_highlightNode); | 112 visitor->trace(m_highlightNode); |
113 visitor->trace(m_eventTargetNode); | 113 visitor->trace(m_eventTargetNode); |
114 visitor->trace(m_overlayPage); | 114 visitor->trace(m_overlayPage); |
115 visitor->trace(m_overlayHost); | 115 visitor->trace(m_overlayHost); |
116 visitor->trace(m_listener); | 116 visitor->trace(m_listener); |
| 117 InspectorOverlay::trace(visitor); |
117 } | 118 } |
118 | 119 |
119 void InspectorOverlayImpl::paint(GraphicsContext& context) | 120 void InspectorOverlayImpl::paint(GraphicsContext& context) |
120 { | 121 { |
121 if (isEmpty()) | 122 if (isEmpty()) |
122 return; | 123 return; |
123 FrameView* view = toLocalFrame(overlayPage()->mainFrame())->view(); | 124 FrameView* view = toLocalFrame(overlayPage()->mainFrame())->view(); |
124 ASSERT(!view->needsLayout()); | 125 ASSERT(!view->needsLayout()); |
125 view->paint(&context, IntRect(0, 0, view->width(), view->height())); | 126 view->paint(&context, IntRect(0, 0, view->width(), view->height())); |
126 } | 127 } |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 if (!m_suspendCount++) | 434 if (!m_suspendCount++) |
434 freePage(); | 435 freePage(); |
435 } | 436 } |
436 | 437 |
437 void InspectorOverlayImpl::resumeUpdates() | 438 void InspectorOverlayImpl::resumeUpdates() |
438 { | 439 { |
439 --m_suspendCount; | 440 --m_suspendCount; |
440 } | 441 } |
441 | 442 |
442 } // namespace blink | 443 } // namespace blink |
OLD | NEW |