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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
332 for (Frame* descendant = document()->frame() ? document()->frame()->tree().t
raverseNext() : 0; descendant; descendant = descendant->tree().traverseNext()) { | 332 for (Frame* descendant = document()->frame() ? document()->frame()->tree().t
raverseNext() : 0; descendant; descendant = descendant->tree().traverseNext()) { |
333 if (!descendant->isLocalFrame()) | 333 if (!descendant->isLocalFrame()) |
334 continue; | 334 continue; |
335 ASSERT(toLocalFrame(descendant)->document()); | 335 ASSERT(toLocalFrame(descendant)->document()); |
336 if (fullscreenElementFrom(*toLocalFrame(descendant)->document())) | 336 if (fullscreenElementFrom(*toLocalFrame(descendant)->document())) |
337 descendants.prepend(toLocalFrame(descendant)->document()); | 337 descendants.prepend(toLocalFrame(descendant)->document()); |
338 } | 338 } |
339 | 339 |
340 // 4. For each descendant in descendants, empty descendant's fullscreen elem
ent stack, and queue a | 340 // 4. For each descendant in descendants, empty descendant's fullscreen elem
ent stack, and queue a |
341 // task to fire an event named fullscreenchange with its bubbles attribute s
et to true on descendant. | 341 // task to fire an event named fullscreenchange with its bubbles attribute s
et to true on descendant. |
342 for (WillBeHeapDeque<RefPtrWillBeMember<Document> >::iterator i = descendant
s.begin(); i != descendants.end(); ++i) { | 342 for (auto i : descendants) { |
343 ASSERT(*i); | 343 ASSERT(i); |
344 RequestType requestType = from(**i).m_fullScreenElementStack.last().seco
nd; | 344 RequestType requestType = from(*i).m_fullScreenElementStack.last().secon
d; |
345 from(**i).clearFullscreenElementStack(); | 345 from(*i).clearFullscreenElementStack(); |
346 enqueueChangeEvent(**i, requestType); | 346 enqueueChangeEvent(*i, requestType); |
347 } | 347 } |
348 | 348 |
349 // 5. While doc is not null, run these substeps: | 349 // 5. While doc is not null, run these substeps: |
350 Element* newTop = 0; | 350 Element* newTop = 0; |
351 while (currentDoc) { | 351 while (currentDoc) { |
352 RequestType requestType = from(*currentDoc).m_fullScreenElementStack.las
t().second; | 352 RequestType requestType = from(*currentDoc).m_fullScreenElementStack.las
t().second; |
353 | 353 |
354 // 1. Pop the top element of doc's fullscreen element stack. | 354 // 1. Pop the top element of doc's fullscreen element stack. |
355 from(*currentDoc).popFullscreenElementStack(); | 355 from(*currentDoc).popFullscreenElementStack(); |
356 | 356 |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 void Fullscreen::trace(Visitor* visitor) | 597 void Fullscreen::trace(Visitor* visitor) |
598 { | 598 { |
599 visitor->trace(m_fullScreenElement); | 599 visitor->trace(m_fullScreenElement); |
600 visitor->trace(m_fullScreenElementStack); | 600 visitor->trace(m_fullScreenElementStack); |
601 visitor->trace(m_fullScreenRenderer); | 601 visitor->trace(m_fullScreenRenderer); |
602 visitor->trace(m_eventQueue); | 602 visitor->trace(m_eventQueue); |
603 DocumentSupplement::trace(visitor); | 603 DocumentSupplement::trace(visitor); |
604 } | 604 } |
605 | 605 |
606 } // namespace blink | 606 } // namespace blink |
OLD | NEW |