| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 } | 340 } |
| 341 | 341 |
| 342 LocalDOMWindow* LocalDOMWindow::From(const ScriptState* script_state) { | 342 LocalDOMWindow* LocalDOMWindow::From(const ScriptState* script_state) { |
| 343 v8::HandleScope scope(script_state->GetIsolate()); | 343 v8::HandleScope scope(script_state->GetIsolate()); |
| 344 return blink::ToLocalDOMWindow(script_state->GetContext()); | 344 return blink::ToLocalDOMWindow(script_state->GetContext()); |
| 345 } | 345 } |
| 346 | 346 |
| 347 Document* LocalDOMWindow::InstallNewDocument(const String& mime_type, | 347 Document* LocalDOMWindow::InstallNewDocument(const String& mime_type, |
| 348 const DocumentInit& init, | 348 const DocumentInit& init, |
| 349 bool force_xhtml) { | 349 bool force_xhtml) { |
| 350 ASSERT(init.GetFrame() == GetFrame()); | 350 DCHECK_EQ(init.GetFrame(), GetFrame()); |
| 351 | 351 |
| 352 ClearDocument(); | 352 ClearDocument(); |
| 353 | 353 |
| 354 document_ = CreateDocument(mime_type, init, force_xhtml); | 354 document_ = CreateDocument(mime_type, init, force_xhtml); |
| 355 event_queue_ = DOMWindowEventQueue::Create(document_.Get()); | 355 event_queue_ = DOMWindowEventQueue::Create(document_.Get()); |
| 356 document_->Initialize(); | 356 document_->Initialize(); |
| 357 | 357 |
| 358 if (!GetFrame()) | 358 if (!GetFrame()) |
| 359 return document_; | 359 return document_; |
| 360 | 360 |
| (...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1704 DOMWindow::Trace(visitor); | 1704 DOMWindow::Trace(visitor); |
| 1705 Supplementable<LocalDOMWindow>::Trace(visitor); | 1705 Supplementable<LocalDOMWindow>::Trace(visitor); |
| 1706 } | 1706 } |
| 1707 | 1707 |
| 1708 DEFINE_TRACE_WRAPPERS(LocalDOMWindow) { | 1708 DEFINE_TRACE_WRAPPERS(LocalDOMWindow) { |
| 1709 visitor->TraceWrappers(custom_elements_); | 1709 visitor->TraceWrappers(custom_elements_); |
| 1710 DOMWindow::TraceWrappers(visitor); | 1710 DOMWindow::TraceWrappers(visitor); |
| 1711 } | 1711 } |
| 1712 | 1712 |
| 1713 } // namespace blink | 1713 } // namespace blink |
| OLD | NEW |