| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 HeapSupplementable<Console>::trace(visitor); | 59 HeapSupplementable<Console>::trace(visitor); |
| 60 } | 60 } |
| 61 | 61 |
| 62 ExecutionContext* Console::context() | 62 ExecutionContext* Console::context() |
| 63 { | 63 { |
| 64 if (!frame()) | 64 if (!frame()) |
| 65 return 0; | 65 return 0; |
| 66 return frame()->document(); | 66 return frame()->document(); |
| 67 } | 67 } |
| 68 | 68 |
| 69 void Console::reportMessageToConsole(PassRefPtrWillBeRawPtr<ConsoleMessage> cons
oleMessage) | 69 void Console::reportMessageToConsole(RawPtr<ConsoleMessage> consoleMessage) |
| 70 { | 70 { |
| 71 if (!frame()) | 71 if (!frame()) |
| 72 return; | 72 return; |
| 73 | 73 |
| 74 frame()->console().addMessage(consoleMessage); | 74 frame()->console().addMessage(consoleMessage); |
| 75 } | 75 } |
| 76 | 76 |
| 77 } // namespace blink | 77 } // namespace blink |
| OLD | NEW |