| 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 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 if (pending_state_object_) | 409 if (pending_state_object_) |
| 410 EnqueuePopstateEvent(std::move(pending_state_object_)); | 410 EnqueuePopstateEvent(std::move(pending_state_object_)); |
| 411 } | 411 } |
| 412 | 412 |
| 413 void LocalDOMWindow::EnqueuePageshowEvent(PageshowEventPersistence persisted) { | 413 void LocalDOMWindow::EnqueuePageshowEvent(PageshowEventPersistence persisted) { |
| 414 // FIXME: https://bugs.webkit.org/show_bug.cgi?id=36334 Pageshow event needs | 414 // FIXME: https://bugs.webkit.org/show_bug.cgi?id=36334 Pageshow event needs |
| 415 // to fire asynchronously. As per spec pageshow must be triggered | 415 // to fire asynchronously. As per spec pageshow must be triggered |
| 416 // asynchronously. However to be compatible with other browsers blink fires | 416 // asynchronously. However to be compatible with other browsers blink fires |
| 417 // pageshow synchronously unless we are in EventQueueScope. | 417 // pageshow synchronously unless we are in EventQueueScope. |
| 418 if (ScopedEventQueue::Instance()->ShouldQueueEvents() && document_) { | 418 if (ScopedEventQueue::Instance()->ShouldQueueEvents() && document_) { |
| 419 EnqueueWindowEvent( | 419 EnqueueWindowEvent( |
| 420 PageTransitionEvent::Create(EventTypeNames::pageshow, persisted)); | 420 PageTransitionEvent::Create(EventTypeNames::pageshow, persisted)); |
| 421 return; | 421 return; |
| 422 } | 422 } |
| 423 DispatchEvent( | 423 DispatchEvent( |
| 424 PageTransitionEvent::Create(EventTypeNames::pageshow, persisted), | 424 PageTransitionEvent::Create(EventTypeNames::pageshow, persisted), |
| 425 document_.Get()); | 425 document_.Get()); |
| 426 } | 426 } |
| 427 | 427 |
| 428 void LocalDOMWindow::EnqueueHashchangeEvent(const String& old_url, | 428 void LocalDOMWindow::EnqueueHashchangeEvent(const String& old_url, |
| 429 const String& new_url) { | 429 const String& new_url) { |
| (...skipping 1235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1665 DOMWindow::Trace(visitor); | 1665 DOMWindow::Trace(visitor); |
| 1666 Supplementable<LocalDOMWindow>::Trace(visitor); | 1666 Supplementable<LocalDOMWindow>::Trace(visitor); |
| 1667 } | 1667 } |
| 1668 | 1668 |
| 1669 DEFINE_TRACE_WRAPPERS(LocalDOMWindow) { | 1669 DEFINE_TRACE_WRAPPERS(LocalDOMWindow) { |
| 1670 visitor->TraceWrappers(custom_elements_); | 1670 visitor->TraceWrappers(custom_elements_); |
| 1671 DOMWindow::TraceWrappers(visitor); | 1671 DOMWindow::TraceWrappers(visitor); |
| 1672 } | 1672 } |
| 1673 | 1673 |
| 1674 } // namespace blink | 1674 } // namespace blink |
| OLD | NEW |