OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
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 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 m_scope->thread()->workerReportingProxy().reportConsoleMessage(ConsoleAPIMes
sageSource, level, message, lastCaller.lineNumber(), lastCaller.sourceURL()); | 55 m_scope->thread()->workerReportingProxy().reportConsoleMessage(ConsoleAPIMes
sageSource, level, message, lastCaller.lineNumber(), lastCaller.sourceURL()); |
56 } | 56 } |
57 | 57 |
58 ExecutionContext* WorkerConsole::context() | 58 ExecutionContext* WorkerConsole::context() |
59 { | 59 { |
60 if (!m_scope) | 60 if (!m_scope) |
61 return 0; | 61 return 0; |
62 return m_scope->executionContext(); | 62 return m_scope->executionContext(); |
63 } | 63 } |
64 | 64 |
| 65 void WorkerConsole::trace(Visitor* visitor) |
| 66 { |
| 67 visitor->trace(m_scope); |
| 68 } |
| 69 |
65 // FIXME: add memory getter | 70 // FIXME: add memory getter |
66 | 71 |
67 } // namespace WebCore | 72 } // namespace WebCore |
OLD | NEW |