| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 { | 52 { |
| 53 } | 53 } |
| 54 | 54 |
| 55 DEFINE_TRACE(Console) | 55 DEFINE_TRACE(Console) |
| 56 { | 56 { |
| 57 ConsoleBase::trace(visitor); | 57 ConsoleBase::trace(visitor); |
| 58 DOMWindowProperty::trace(visitor); | 58 DOMWindowProperty::trace(visitor); |
| 59 Supplementable<Console>::trace(visitor); | 59 Supplementable<Console>::trace(visitor); |
| 60 } | 60 } |
| 61 | 61 |
| 62 ExecutionContext* Console::context() | |
| 63 { | |
| 64 if (!frame()) | |
| 65 return 0; | |
| 66 return frame()->document(); | |
| 67 } | |
| 68 | |
| 69 void Console::reportMessageToConsole(ConsoleMessage* consoleMessage) | 62 void Console::reportMessageToConsole(ConsoleMessage* consoleMessage) |
| 70 { | 63 { |
| 71 if (!frame()) | 64 if (!frame()) |
| 72 return; | 65 return; |
| 73 | 66 |
| 74 frame()->console().addMessage(consoleMessage); | 67 frame()->console().addMessage(consoleMessage); |
| 75 } | 68 } |
| 76 | 69 |
| 77 } // namespace blink | 70 } // namespace blink |
| OLD | NEW |