OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999-2001 Harri Porten (porten@kde.org) | 2 * Copyright (C) 1999-2001 Harri Porten (porten@kde.org) |
3 * Copyright (C) 2001 Peter Kelly (pmk@post.com) | 3 * Copyright (C) 2001 Peter Kelly (pmk@post.com) |
4 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Lesser General Public | 7 * modify it under the terms of the GNU Lesser General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 27 matching lines...) Expand all Loading... |
38 #include "PageGroup.h" | 38 #include "PageGroup.h" |
39 #include "runtime_root.h" | 39 #include "runtime_root.h" |
40 #include "ScriptSourceCode.h" | 40 #include "ScriptSourceCode.h" |
41 #include "ScriptValue.h" | 41 #include "ScriptValue.h" |
42 #include "Settings.h" | 42 #include "Settings.h" |
43 | 43 |
44 #include <runtime/Completion.h> | 44 #include <runtime/Completion.h> |
45 #include <debugger/Debugger.h> | 45 #include <debugger/Debugger.h> |
46 #include <runtime/JSLock.h> | 46 #include <runtime/JSLock.h> |
47 | 47 |
48 #if ENABLE(NETSCAPE_PLUGIN_API) | |
49 #include "HTMLPlugInElement.h" | 48 #include "HTMLPlugInElement.h" |
50 #endif | |
51 | 49 |
52 using namespace JSC; | 50 using namespace JSC; |
53 | 51 |
54 namespace WebCore { | 52 namespace WebCore { |
55 | 53 |
56 ScriptController::ScriptController(Frame* frame) | 54 ScriptController::ScriptController(Frame* frame) |
57 : m_frame(frame) | 55 : m_frame(frame) |
58 , m_handlerLineno(0) | 56 , m_handlerLineno(0) |
59 , m_sourceURL(0) | 57 , m_sourceURL(0) |
60 , m_processingTimerCallback(false) | 58 , m_processingTimerCallback(false) |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 // Call _NPN_DeallocateObject() instead of _NPN_ReleaseObject() so that
we don't leak if a plugin fails to release the window | 382 // Call _NPN_DeallocateObject() instead of _NPN_ReleaseObject() so that
we don't leak if a plugin fails to release the window |
385 // script object properly. | 383 // script object properly. |
386 // This shouldn't cause any problems for plugins since they should have
already been stopped and destroyed at this point. | 384 // This shouldn't cause any problems for plugins since they should have
already been stopped and destroyed at this point. |
387 _NPN_DeallocateObject(m_windowScriptNPObject); | 385 _NPN_DeallocateObject(m_windowScriptNPObject); |
388 m_windowScriptNPObject = 0; | 386 m_windowScriptNPObject = 0; |
389 } | 387 } |
390 #endif | 388 #endif |
391 } | 389 } |
392 | 390 |
393 } // namespace WebCore | 391 } // namespace WebCore |
OLD | NEW |