Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Side by Side Diff: third_party/WebKit/Source/core/dom/Fullscreen.cpp

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 m_fullScreenLayoutObject(nullptr) { 388 m_fullScreenLayoutObject(nullptr) {
389 document.setHasFullscreenSupplement(); 389 document.setHasFullscreenSupplement();
390 } 390 }
391 391
392 Fullscreen::~Fullscreen() {} 392 Fullscreen::~Fullscreen() {}
393 393
394 Document* Fullscreen::document() { 394 Document* Fullscreen::document() {
395 return toDocument(lifecycleContext()); 395 return toDocument(lifecycleContext());
396 } 396 }
397 397
398 void Fullscreen::contextDestroyed() { 398 void Fullscreen::contextDestroyed(ExecutionContext*) {
399 if (m_fullScreenLayoutObject) 399 if (m_fullScreenLayoutObject)
400 m_fullScreenLayoutObject->destroy(); 400 m_fullScreenLayoutObject->destroy();
401 401
402 m_pendingRequests.clear(); 402 m_pendingRequests.clear();
403 m_fullscreenElementStack.clear(); 403 m_fullscreenElementStack.clear();
404 } 404 }
405 405
406 // https://fullscreen.spec.whatwg.org/#dom-element-requestfullscreen 406 // https://fullscreen.spec.whatwg.org/#dom-element-requestfullscreen
407 void Fullscreen::requestFullscreen(Element& pending) { 407 void Fullscreen::requestFullscreen(Element& pending) {
408 // TODO(foolip): Make RequestType::Unprefixed the default when the unprefixed 408 // TODO(foolip): Make RequestType::Unprefixed the default when the unprefixed
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 } 912 }
913 913
914 DEFINE_TRACE(Fullscreen) { 914 DEFINE_TRACE(Fullscreen) {
915 visitor->trace(m_pendingRequests); 915 visitor->trace(m_pendingRequests);
916 visitor->trace(m_fullscreenElementStack); 916 visitor->trace(m_fullscreenElementStack);
917 Supplement<Document>::trace(visitor); 917 Supplement<Document>::trace(visitor);
918 ContextLifecycleObserver::trace(visitor); 918 ContextLifecycleObserver::trace(visitor);
919 } 919 }
920 920
921 } // namespace blink 921 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Fullscreen.h ('k') | third_party/WebKit/Source/core/dom/MessagePort.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698