| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R
ights Reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R
ights Reserved. |
| 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 PageLifecycleNotifier& Page::lifecycleNotifier() | 352 PageLifecycleNotifier& Page::lifecycleNotifier() |
| 353 { | 353 { |
| 354 return static_cast<PageLifecycleNotifier&>(LifecycleContext<Page>::lifecycle
Notifier()); | 354 return static_cast<PageLifecycleNotifier&>(LifecycleContext<Page>::lifecycle
Notifier()); |
| 355 } | 355 } |
| 356 | 356 |
| 357 PassOwnPtr<LifecycleNotifier<Page> > Page::createLifecycleNotifier() | 357 PassOwnPtr<LifecycleNotifier<Page> > Page::createLifecycleNotifier() |
| 358 { | 358 { |
| 359 return PageLifecycleNotifier::create(this); | 359 return PageLifecycleNotifier::create(this); |
| 360 } | 360 } |
| 361 | 361 |
| 362 void Page::trace(Visitor* visitor) | |
| 363 { | |
| 364 #if ENABLE(OILPAN) | |
| 365 visitor->trace(m_dragCaretController); | |
| 366 visitor->trace(m_undoStack); | |
| 367 visitor->trace(m_multisamplingChangedObservers); | |
| 368 visitor->trace(m_frameHost); | |
| 369 #endif | |
| 370 Supplementable<Page>::trace(visitor); | |
| 371 LifecycleContext<Page>::trace(visitor); | |
| 372 } | |
| 373 | |
| 374 void Page::willBeDestroyed() | 362 void Page::willBeDestroyed() |
| 375 { | 363 { |
| 376 RefPtr<LocalFrame> mainFrame = m_mainFrame; | 364 RefPtr<LocalFrame> mainFrame = m_mainFrame; |
| 377 | 365 |
| 378 mainFrame->detach(); | 366 mainFrame->detach(); |
| 379 mainFrame->setView(nullptr); | 367 mainFrame->setView(nullptr); |
| 380 | 368 |
| 381 allPages().remove(this); | 369 allPages().remove(this); |
| 382 if (ordinaryPages().contains(this)) | 370 if (ordinaryPages().contains(this)) |
| 383 ordinaryPages().remove(this); | 371 ordinaryPages().remove(this); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 398 , editorClient(0) | 386 , editorClient(0) |
| 399 , spellCheckerClient(0) | 387 , spellCheckerClient(0) |
| 400 { | 388 { |
| 401 } | 389 } |
| 402 | 390 |
| 403 Page::PageClients::~PageClients() | 391 Page::PageClients::~PageClients() |
| 404 { | 392 { |
| 405 } | 393 } |
| 406 | 394 |
| 407 } // namespace blink | 395 } // namespace blink |
| OLD | NEW |