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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 frame()->page()->scrollingCoordinator()) { | 342 frame()->page()->scrollingCoordinator()) { |
343 scrollingCoordinator->scrollableAreaScrollbarLayerDidChange( | 343 scrollingCoordinator->scrollableAreaScrollbarLayerDidChange( |
344 frame()->view(), HorizontalScrollbar); | 344 frame()->view(), HorizontalScrollbar); |
345 scrollingCoordinator->scrollableAreaScrollbarLayerDidChange( | 345 scrollingCoordinator->scrollableAreaScrollbarLayerDidChange( |
346 frame()->view(), VerticalScrollbar); | 346 frame()->view(), VerticalScrollbar); |
347 scrollingCoordinator->scrollableAreaScrollLayerDidChange(frame()->view()); | 347 scrollingCoordinator->scrollableAreaScrollLayerDidChange(frame()->view()); |
348 } | 348 } |
349 } | 349 } |
350 | 350 |
351 frame()->selection().updateSecureKeyboardEntryIfActive(); | 351 frame()->selection().updateSecureKeyboardEntryIfActive(); |
| 352 |
| 353 m_document->maybeRecordLoadReason(Created); |
| 354 |
352 return m_document; | 355 return m_document; |
353 } | 356 } |
354 | 357 |
355 EventQueue* LocalDOMWindow::getEventQueue() const { | 358 EventQueue* LocalDOMWindow::getEventQueue() const { |
356 return m_eventQueue.get(); | 359 return m_eventQueue.get(); |
357 } | 360 } |
358 | 361 |
359 void LocalDOMWindow::enqueueWindowEvent(Event* event) { | 362 void LocalDOMWindow::enqueueWindowEvent(Event* event) { |
360 if (!m_eventQueue) | 363 if (!m_eventQueue) |
361 return; | 364 return; |
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1555 | 1558 |
1556 LocalFrame* LocalDOMWindow::frame() const { | 1559 LocalFrame* LocalDOMWindow::frame() const { |
1557 // If the LocalDOMWindow still has a frame reference, that frame must point | 1560 // If the LocalDOMWindow still has a frame reference, that frame must point |
1558 // back to this LocalDOMWindow: otherwise, it's easy to get into a situation | 1561 // back to this LocalDOMWindow: otherwise, it's easy to get into a situation |
1559 // where script execution leaks between different LocalDOMWindows. | 1562 // where script execution leaks between different LocalDOMWindows. |
1560 SECURITY_DCHECK(!m_frame || m_frame->domWindow() == this); | 1563 SECURITY_DCHECK(!m_frame || m_frame->domWindow() == this); |
1561 return m_frame; | 1564 return m_frame; |
1562 } | 1565 } |
1563 | 1566 |
1564 } // namespace blink | 1567 } // namespace blink |
OLD | NEW |