Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 259 } | 259 } |
| 260 return portArray.release(); | 260 return portArray.release(); |
| 261 } | 261 } |
| 262 | 262 |
| 263 void MessagePort::trace(Visitor* visitor) | 263 void MessagePort::trace(Visitor* visitor) |
| 264 { | 264 { |
| 265 ActiveDOMObject::trace(visitor); | 265 ActiveDOMObject::trace(visitor); |
| 266 EventTargetWithInlineData::trace(visitor); | 266 EventTargetWithInlineData::trace(visitor); |
| 267 } | 267 } |
| 268 | 268 |
| 269 v8::Isolate* MessagePort::scriptIsolate() | |
| 270 { | |
| 271 ASSERT(executionContext()); | |
| 272 return toIsolate(executionContext()); | |
| 273 } | |
| 274 | |
| 275 v8::Handle<v8::Context> MessagePort::scriptContext() | |
| 276 { | |
| 277 ASSERT(executionContext()); | |
| 278 return toV8Context(executionContext(), DOMWrapperWorld::mainWorld()); | |
|
jochen (gone - plz use gerrit)
2015/02/23 12:15:18
what if the message port was created in an isolate
Marijn Kruisselbrink
2015/02/23 19:20:18
That's a good question, and unfortunately not some
| |
| 279 } | |
| 280 | |
| 269 } // namespace blink | 281 } // namespace blink |
| OLD | NEW |