| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Henry Mason (hmason@mac.com) | 2 * Copyright (C) 2007 Henry Mason (hmason@mac.com) |
| 3 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple 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 * 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 } | 193 } |
| 194 | 194 |
| 195 MessagePortArray MessageEvent::ports() const | 195 MessagePortArray MessageEvent::ports() const |
| 196 { | 196 { |
| 197 bool unused; | 197 bool unused; |
| 198 return ports(unused); | 198 return ports(unused); |
| 199 } | 199 } |
| 200 | 200 |
| 201 void MessageEvent::entangleMessagePorts(ExecutionContext* context) | 201 void MessageEvent::entangleMessagePorts(ExecutionContext* context) |
| 202 { | 202 { |
| 203 m_ports = MessagePort::entanglePorts(*context, m_channels.release()); | 203 m_ports = MessagePort::entanglePorts(*context, std::move(m_channels)); |
| 204 } | 204 } |
| 205 | 205 |
| 206 DEFINE_TRACE(MessageEvent) | 206 DEFINE_TRACE(MessageEvent) |
| 207 { | 207 { |
| 208 visitor->trace(m_dataAsBlob); | 208 visitor->trace(m_dataAsBlob); |
| 209 visitor->trace(m_dataAsArrayBuffer); | 209 visitor->trace(m_dataAsArrayBuffer); |
| 210 visitor->trace(m_source); | 210 visitor->trace(m_source); |
| 211 visitor->trace(m_ports); | 211 visitor->trace(m_ports); |
| 212 Event::trace(visitor); | 212 Event::trace(visitor); |
| 213 } | 213 } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 230 break; | 230 break; |
| 231 case MessageEvent::DataTypeArrayBuffer: | 231 case MessageEvent::DataTypeArrayBuffer: |
| 232 V8HiddenValue::setHiddenValue(ScriptState::current(isolate), wrapper, V8
HiddenValue::arrayBufferData(isolate), toV8(dataAsArrayBuffer(), wrapper, isolat
e)); | 232 V8HiddenValue::setHiddenValue(ScriptState::current(isolate), wrapper, V8
HiddenValue::arrayBufferData(isolate), toV8(dataAsArrayBuffer(), wrapper, isolat
e)); |
| 233 break; | 233 break; |
| 234 } | 234 } |
| 235 | 235 |
| 236 return wrapper; | 236 return wrapper; |
| 237 } | 237 } |
| 238 | 238 |
| 239 } // namespace blink | 239 } // namespace blink |
| OLD | NEW |