| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
| 4 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. | 4 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 , m_scriptState(scriptState) | 69 , m_scriptState(scriptState) |
| 70 , m_url(url) | 70 , m_url(url) |
| 71 , m_line(line) | 71 , m_line(line) |
| 72 , m_column(column) | 72 , m_column(column) |
| 73 , m_requestId(IdentifiersFactory::requestId(requestIdentifier)) | 73 , m_requestId(IdentifiersFactory::requestId(requestIdentifier)) |
| 74 , m_timestamp(WTF::currentTime()) | 74 , m_timestamp(WTF::currentTime()) |
| 75 { | 75 { |
| 76 autogenerateMetadata(canGenerateCallStack, scriptState); | 76 autogenerateMetadata(canGenerateCallStack, scriptState); |
| 77 } | 77 } |
| 78 | 78 |
| 79 ConsoleMessage::ConsoleMessage(bool, MessageSource source, MessageType type, Mes
sageLevel level, const String& message, PassRefPtr<ScriptCallStack> callStack, u
nsigned long requestIdentifier) | 79 ConsoleMessage::ConsoleMessage(bool, MessageSource source, MessageType type, Mes
sageLevel level, const String& message, PassRefPtrWillBeRawPtr<ScriptCallStack>
callStack, unsigned long requestIdentifier) |
| 80 : m_source(source) | 80 : m_source(source) |
| 81 , m_type(type) | 81 , m_type(type) |
| 82 , m_level(level) | 82 , m_level(level) |
| 83 , m_message(message) | 83 , m_message(message) |
| 84 , m_scriptState(0) | 84 , m_scriptState(0) |
| 85 , m_arguments(nullptr) | 85 , m_arguments(nullptr) |
| 86 , m_line(0) | 86 , m_line(0) |
| 87 , m_column(0) | 87 , m_column(0) |
| 88 , m_requestId(IdentifiersFactory::requestId(requestIdentifier)) | 88 , m_requestId(IdentifiersFactory::requestId(requestIdentifier)) |
| 89 , m_timestamp(WTF::currentTime()) | 89 , m_timestamp(WTF::currentTime()) |
| 90 { | 90 { |
| 91 if (callStack && callStack->size()) { | 91 if (callStack && callStack->size()) { |
| 92 const ScriptCallFrame& frame = callStack->at(0); | 92 const ScriptCallFrame& frame = callStack->at(0); |
| 93 m_url = frame.sourceURL(); | 93 m_url = frame.sourceURL(); |
| 94 m_line = frame.lineNumber(); | 94 m_line = frame.lineNumber(); |
| 95 m_column = frame.columnNumber(); | 95 m_column = frame.columnNumber(); |
| 96 } | 96 } |
| 97 m_callStack = callStack; | 97 m_callStack = callStack; |
| 98 } | 98 } |
| 99 | 99 |
| 100 ConsoleMessage::ConsoleMessage(bool canGenerateCallStack, MessageSource source,
MessageType type, MessageLevel level, const String& message, PassRefPtr<ScriptAr
guments> arguments, ScriptState* scriptState, unsigned long requestIdentifier) | 100 ConsoleMessage::ConsoleMessage(bool canGenerateCallStack, MessageSource source,
MessageType type, MessageLevel level, const String& message, PassRefPtrWillBeRaw
Ptr<ScriptArguments> arguments, ScriptState* scriptState, unsigned long requestI
dentifier) |
| 101 : m_source(source) | 101 : m_source(source) |
| 102 , m_type(type) | 102 , m_type(type) |
| 103 , m_level(level) | 103 , m_level(level) |
| 104 , m_message(message) | 104 , m_message(message) |
| 105 , m_scriptState(scriptState) | 105 , m_scriptState(scriptState) |
| 106 , m_arguments(arguments) | 106 , m_arguments(arguments) |
| 107 , m_url() | 107 , m_url() |
| 108 , m_line(0) | 108 , m_line(0) |
| 109 , m_column(0) | 109 , m_column(0) |
| 110 , m_requestId(IdentifiersFactory::requestId(requestIdentifier)) | 110 , m_requestId(IdentifiersFactory::requestId(requestIdentifier)) |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 252 |
| 253 unsigned ConsoleMessage::argumentCount() | 253 unsigned ConsoleMessage::argumentCount() |
| 254 { | 254 { |
| 255 if (m_arguments) | 255 if (m_arguments) |
| 256 return m_arguments->argumentCount(); | 256 return m_arguments->argumentCount(); |
| 257 return 0; | 257 return 0; |
| 258 } | 258 } |
| 259 | 259 |
| 260 } // namespace WebCore | 260 } // namespace WebCore |
| 261 | 261 |
| OLD | NEW |