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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 m_savedPlaceholderComputedStyle = ComputedStyle::clone(layoutObject->sty
leRef()); | 441 m_savedPlaceholderComputedStyle = ComputedStyle::clone(layoutObject->sty
leRef()); |
442 } | 442 } |
443 | 443 |
444 if (m_fullScreenElement != document()->documentElement()) | 444 if (m_fullScreenElement != document()->documentElement()) |
445 LayoutFullScreen::wrapLayoutObject(layoutObject, layoutObject ? layoutOb
ject->parent() : 0, document()); | 445 LayoutFullScreen::wrapLayoutObject(layoutObject, layoutObject ? layoutOb
ject->parent() : 0, document()); |
446 | 446 |
447 m_fullScreenElement->setContainsFullScreenElementOnAncestorsCrossingFrameBou
ndaries(true); | 447 m_fullScreenElement->setContainsFullScreenElementOnAncestorsCrossingFrameBou
ndaries(true); |
448 document()->styleEngine().ensureFullscreenUAStyle(); | 448 document()->styleEngine().ensureFullscreenUAStyle(); |
449 m_fullScreenElement->pseudoStateChanged(CSSSelector::PseudoFullScreen); | 449 m_fullScreenElement->pseudoStateChanged(CSSSelector::PseudoFullScreen); |
450 | 450 |
451 // FIXME: This should not call updateLayoutTree. | 451 // FIXME: This should not call updateStyleAndLayoutTree. |
452 document()->updateLayoutTree(); | 452 document()->updateStyleAndLayoutTree(); |
453 | 453 |
454 m_fullScreenElement->didBecomeFullscreenElement(); | 454 m_fullScreenElement->didBecomeFullscreenElement(); |
455 | 455 |
456 if (document()->frame()) | 456 if (document()->frame()) |
457 document()->frame()->eventHandler().scheduleHoverStateUpdate(); | 457 document()->frame()->eventHandler().scheduleHoverStateUpdate(); |
458 | 458 |
459 m_eventQueueTimer.startOneShot(0, BLINK_FROM_HERE); | 459 m_eventQueueTimer.startOneShot(0, BLINK_FROM_HERE); |
460 } | 460 } |
461 | 461 |
462 void Fullscreen::didExitFullScreenForElement(Element*) | 462 void Fullscreen::didExitFullScreenForElement(Element*) |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 DEFINE_TRACE(Fullscreen) | 608 DEFINE_TRACE(Fullscreen) |
609 { | 609 { |
610 visitor->trace(m_fullScreenElement); | 610 visitor->trace(m_fullScreenElement); |
611 visitor->trace(m_fullScreenElementStack); | 611 visitor->trace(m_fullScreenElementStack); |
612 visitor->trace(m_eventQueue); | 612 visitor->trace(m_eventQueue); |
613 Supplement<Document>::trace(visitor); | 613 Supplement<Document>::trace(visitor); |
614 ContextLifecycleObserver::trace(visitor); | 614 ContextLifecycleObserver::trace(visitor); |
615 } | 615 } |
616 | 616 |
617 } // namespace blink | 617 } // namespace blink |
OLD | NEW |