OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "web/PopupMenuImpl.h" | 6 #include "web/PopupMenuImpl.h" |
7 | 7 |
8 #include "core/HTMLNames.h" | 8 #include "core/HTMLNames.h" |
9 #include "core/css/CSSFontSelector.h" | 9 #include "core/css/CSSFontSelector.h" |
10 #include "core/dom/ElementTraversal.h" | 10 #include "core/dom/ElementTraversal.h" |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 { | 247 { |
248 } | 248 } |
249 | 249 |
250 PopupMenuImpl::~PopupMenuImpl() | 250 PopupMenuImpl::~PopupMenuImpl() |
251 { | 251 { |
252 ASSERT(!m_popup); | 252 ASSERT(!m_popup); |
253 } | 253 } |
254 | 254 |
255 DEFINE_TRACE(PopupMenuImpl) | 255 DEFINE_TRACE(PopupMenuImpl) |
256 { | 256 { |
| 257 visitor->trace(m_chromeClient); |
257 visitor->trace(m_ownerElement); | 258 visitor->trace(m_ownerElement); |
258 PopupMenu::trace(visitor); | 259 PopupMenu::trace(visitor); |
259 } | 260 } |
260 | 261 |
261 IntSize PopupMenuImpl::contentSize() | 262 IntSize PopupMenuImpl::contentSize() |
262 { | 263 { |
263 return IntSize(); | 264 return IntSize(); |
264 } | 265 } |
265 | 266 |
266 void PopupMenuImpl::writeDocument(SharedBuffer* data) | 267 void PopupMenuImpl::writeDocument(SharedBuffer* data) |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 | 522 |
522 void PopupMenuImpl::disconnectClient() | 523 void PopupMenuImpl::disconnectClient() |
523 { | 524 { |
524 m_ownerElement = nullptr; | 525 m_ownerElement = nullptr; |
525 // Cannot be done during finalization, so instead done when the | 526 // Cannot be done during finalization, so instead done when the |
526 // layout object is destroyed and disconnected. | 527 // layout object is destroyed and disconnected. |
527 dispose(); | 528 dispose(); |
528 } | 529 } |
529 | 530 |
530 } // namespace blink | 531 } // namespace blink |
OLD | NEW |