OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
9 * Copyright (C) 2013 Google Inc. All rights reserved. | 9 * Copyright (C) 2013 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 return; | 421 return; |
422 | 422 |
423 m_fullScreenElement->setContainsFullScreenElementOnAncestorsCrossingFrameBou
ndaries(false); | 423 m_fullScreenElement->setContainsFullScreenElementOnAncestorsCrossingFrameBou
ndaries(false); |
424 | 424 |
425 m_areKeysEnabledInFullScreen = false; | 425 m_areKeysEnabledInFullScreen = false; |
426 | 426 |
427 if (m_fullScreenRenderer) | 427 if (m_fullScreenRenderer) |
428 m_fullScreenRenderer->unwrapRenderer(); | 428 m_fullScreenRenderer->unwrapRenderer(); |
429 | 429 |
430 m_fullScreenElement = 0; | 430 m_fullScreenElement = 0; |
431 document()->setNeedsStyleRecalc(); | 431 document()->setNeedsStyleRecalc(SubtreeStyleChange); |
432 | 432 |
433 // When webkitCancelFullScreen is called, we call webkitExitFullScreen on th
e topDocument(). That | 433 // When webkitCancelFullScreen is called, we call webkitExitFullScreen on th
e topDocument(). That |
434 // means that the events will be queued there. So if we have no events here,
start the timer on | 434 // means that the events will be queued there. So if we have no events here,
start the timer on |
435 // the exiting document. | 435 // the exiting document. |
436 Document* exitingDocument = document(); | 436 Document* exitingDocument = document(); |
437 if (m_fullScreenChangeEventTargetQueue.isEmpty() && m_fullScreenErrorEventTa
rgetQueue.isEmpty()) | 437 if (m_fullScreenChangeEventTargetQueue.isEmpty() && m_fullScreenErrorEventTa
rgetQueue.isEmpty()) |
438 exitingDocument = document()->topDocument(); | 438 exitingDocument = document()->topDocument(); |
439 from(exitingDocument)->m_fullScreenChangeDelayTimer.startOneShot(0); | 439 from(exitingDocument)->m_fullScreenChangeDelayTimer.startOneShot(0); |
440 } | 440 } |
441 | 441 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 if (!target) | 560 if (!target) |
561 target = fullscreen->webkitCurrentFullScreenElement(); | 561 target = fullscreen->webkitCurrentFullScreenElement(); |
562 } | 562 } |
563 | 563 |
564 if (!target) | 564 if (!target) |
565 target = doc; | 565 target = doc; |
566 m_fullScreenChangeEventTargetQueue.append(target); | 566 m_fullScreenChangeEventTargetQueue.append(target); |
567 } | 567 } |
568 | 568 |
569 } // namespace WebCore | 569 } // namespace WebCore |
OLD | NEW |