| 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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 } | 174 } |
| 175 | 175 |
| 176 typedef HashCountedSet<LocalDOMWindow*> DOMWindowSet; | 176 typedef HashCountedSet<LocalDOMWindow*> DOMWindowSet; |
| 177 | 177 |
| 178 static DOMWindowSet& windowsWithUnloadEventListeners() | 178 static DOMWindowSet& windowsWithUnloadEventListeners() |
| 179 { | 179 { |
| 180 DEFINE_STATIC_LOCAL(DOMWindowSet, windowsWithUnloadEventListeners, ()); | 180 DEFINE_STATIC_LOCAL(DOMWindowSet, windowsWithUnloadEventListeners, ()); |
| 181 return windowsWithUnloadEventListeners; | 181 return windowsWithUnloadEventListeners; |
| 182 } | 182 } |
| 183 | 183 |
| 184 PassRefPtr<Worker> LocalDOMWindow::createAnimationWorker(ExecutionContext * cont
ext, const String& url, ExceptionState & es) |
| 185 { |
| 186 RefPtr<Worker> worker = Worker::create(context, url, es); |
| 187 page()->m_listOfElements->addToWorkerVector(worker); |
| 188 return worker; |
| 189 } |
| 190 |
| 184 static DOMWindowSet& windowsWithBeforeUnloadEventListeners() | 191 static DOMWindowSet& windowsWithBeforeUnloadEventListeners() |
| 185 { | 192 { |
| 186 DEFINE_STATIC_LOCAL(DOMWindowSet, windowsWithBeforeUnloadEventListeners, ())
; | 193 DEFINE_STATIC_LOCAL(DOMWindowSet, windowsWithBeforeUnloadEventListeners, ())
; |
| 187 return windowsWithBeforeUnloadEventListeners; | 194 return windowsWithBeforeUnloadEventListeners; |
| 188 } | 195 } |
| 189 | 196 |
| 190 static void addUnloadEventListener(LocalDOMWindow* domWindow) | 197 static void addUnloadEventListener(LocalDOMWindow* domWindow) |
| 191 { | 198 { |
| 192 DOMWindowSet& set = windowsWithUnloadEventListeners(); | 199 DOMWindowSet& set = windowsWithUnloadEventListeners(); |
| 193 if (set.isEmpty()) | 200 if (set.isEmpty()) |
| (...skipping 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1954 visitor->trace(m_localStorage); | 1961 visitor->trace(m_localStorage); |
| 1955 visitor->trace(m_applicationCache); | 1962 visitor->trace(m_applicationCache); |
| 1956 visitor->trace(m_performance); | 1963 visitor->trace(m_performance); |
| 1957 visitor->trace(m_css); | 1964 visitor->trace(m_css); |
| 1958 visitor->trace(m_eventQueue); | 1965 visitor->trace(m_eventQueue); |
| 1959 WillBeHeapSupplementable<LocalDOMWindow>::trace(visitor); | 1966 WillBeHeapSupplementable<LocalDOMWindow>::trace(visitor); |
| 1960 EventTargetWithInlineData::trace(visitor); | 1967 EventTargetWithInlineData::trace(visitor); |
| 1961 } | 1968 } |
| 1962 | 1969 |
| 1963 } // namespace blink | 1970 } // namespace blink |
| OLD | NEW |