OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009, 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 , public FrameDestructionObserver | 88 , public FrameDestructionObserver |
89 , public Supplementable<DOMWindow> { | 89 , public Supplementable<DOMWindow> { |
90 DECLARE_GC_INFO | 90 DECLARE_GC_INFO |
91 DEFINE_SELF_HANDLE(DOMWindow) | 91 DEFINE_SELF_HANDLE(DOMWindow) |
92 public: | 92 public: |
93 static PassRefPtr<DOMWindow> create(Document* document) { return adoptRe
f(new DOMWindow(document)); } | 93 static PassRefPtr<DOMWindow> create(Document* document) { return adoptRe
f(new DOMWindow(document)); } |
94 virtual ~DOMWindow(); | 94 virtual ~DOMWindow(); |
95 | 95 |
96 virtual void trace(Visitor*); | 96 virtual void trace(Visitor*); |
97 | 97 |
98 virtual void visitWith(Visitor* visitor) const OVERRIDE | 98 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE |
99 { | 99 { |
100 visitor->visit(this); | 100 visitor->mark(this); |
101 } | 101 } |
102 | 102 |
103 // In some rare cases, we'll re-used a DOMWindow for a new Document. For
example, | 103 // In some rare cases, we'll re-used a DOMWindow for a new Document. For
example, |
104 // when a script calls window.open("..."), the browser gives JavaScript
a window | 104 // when a script calls window.open("..."), the browser gives JavaScript
a window |
105 // synchronously but kicks off the load in the window asynchronously. We
b sites | 105 // synchronously but kicks off the load in the window asynchronously. We
b sites |
106 // expect that modifications that they make to the window object synchro
nously | 106 // expect that modifications that they make to the window object synchro
nously |
107 // won't be blown away when the network load commits. To make that happe
n, we | 107 // won't be blown away when the network load commits. To make that happe
n, we |
108 // "securely transition" the existing DOMWindow to the Document that res
ults from | 108 // "securely transition" the existing DOMWindow to the Document that res
ults from |
109 // the network load. See also SecurityContext::isSecureTransitionTo. | 109 // the network load. See also SecurityContext::isSecureTransitionTo. |
110 void didSecureTransitionTo(Document*); | 110 void didSecureTransitionTo(Document*); |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 } | 455 } |
456 | 456 |
457 inline String DOMWindow::defaultStatus() const | 457 inline String DOMWindow::defaultStatus() const |
458 { | 458 { |
459 return m_defaultStatus; | 459 return m_defaultStatus; |
460 } | 460 } |
461 | 461 |
462 } // namespace WebCore | 462 } // namespace WebCore |
463 | 463 |
464 #endif // DOMWindow_h | 464 #endif // DOMWindow_h |
OLD | NEW |