| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 return host->chrome().canRunModalNow(); | 334 return host->chrome().canRunModalNow(); |
| 335 } | 335 } |
| 336 | 336 |
| 337 LocalDOMWindow::LocalDOMWindow(LocalFrame& frame) | 337 LocalDOMWindow::LocalDOMWindow(LocalFrame& frame) |
| 338 : FrameDestructionObserver(&frame) | 338 : FrameDestructionObserver(&frame) |
| 339 , m_shouldPrintWhenFinishedLoading(false) | 339 , m_shouldPrintWhenFinishedLoading(false) |
| 340 #if ENABLE(ASSERT) | 340 #if ENABLE(ASSERT) |
| 341 , m_hasBeenReset(false) | 341 , m_hasBeenReset(false) |
| 342 #endif | 342 #endif |
| 343 { | 343 { |
| 344 ScriptWrappable::init(this); | |
| 345 } | 344 } |
| 346 | 345 |
| 347 void LocalDOMWindow::clearDocument() | 346 void LocalDOMWindow::clearDocument() |
| 348 { | 347 { |
| 349 if (!m_document) | 348 if (!m_document) |
| 350 return; | 349 return; |
| 351 | 350 |
| 352 if (m_document->isActive()) { | 351 if (m_document->isActive()) { |
| 353 // FIXME: We don't call willRemove here. Why is that OK? | 352 // FIXME: We don't call willRemove here. Why is that OK? |
| 354 // This detach() call is also mostly redundant. Most of the calls to | 353 // This detach() call is also mostly redundant. Most of the calls to |
| (...skipping 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1916 visitor->trace(m_applicationCache); | 1915 visitor->trace(m_applicationCache); |
| 1917 visitor->trace(m_performance); | 1916 visitor->trace(m_performance); |
| 1918 visitor->trace(m_css); | 1917 visitor->trace(m_css); |
| 1919 visitor->trace(m_eventQueue); | 1918 visitor->trace(m_eventQueue); |
| 1920 WillBeHeapSupplementable<LocalDOMWindow>::trace(visitor); | 1919 WillBeHeapSupplementable<LocalDOMWindow>::trace(visitor); |
| 1921 EventTargetWithInlineData::trace(visitor); | 1920 EventTargetWithInlineData::trace(visitor); |
| 1922 LifecycleContext<LocalDOMWindow>::trace(visitor); | 1921 LifecycleContext<LocalDOMWindow>::trace(visitor); |
| 1923 } | 1922 } |
| 1924 | 1923 |
| 1925 } // namespace blink | 1924 } // namespace blink |
| OLD | NEW |