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

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

Issue 2617103002: Use a new Supplement constructor for Supplement<Document> (Part 1) (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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 UseCounter::DocumentFullscreenElementInV0Shadow); 376 UseCounter::DocumentFullscreenElementInV0Shadow);
377 return element; 377 return element;
378 } 378 }
379 } else if (!toShadowRoot(scope.rootNode()).isV1()) { 379 } else if (!toShadowRoot(scope.rootNode()).isV1()) {
380 return nullptr; 380 return nullptr;
381 } 381 }
382 return scope.adjustedElement(*element); 382 return scope.adjustedElement(*element);
383 } 383 }
384 384
385 Fullscreen::Fullscreen(Document& document) 385 Fullscreen::Fullscreen(Document& document)
386 : ContextLifecycleObserver(&document), m_fullScreenLayoutObject(nullptr) { 386 : Supplement<Document>(document),
387 ContextLifecycleObserver(&document),
388 m_fullScreenLayoutObject(nullptr) {
387 document.setHasFullscreenSupplement(); 389 document.setHasFullscreenSupplement();
388 } 390 }
389 391
390 Fullscreen::~Fullscreen() {} 392 Fullscreen::~Fullscreen() {}
391 393
392 Document* Fullscreen::document() { 394 Document* Fullscreen::document() {
393 return toDocument(lifecycleContext()); 395 return toDocument(lifecycleContext());
394 } 396 }
395 397
396 void Fullscreen::contextDestroyed() { 398 void Fullscreen::contextDestroyed() {
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 } 912 }
911 913
912 DEFINE_TRACE(Fullscreen) { 914 DEFINE_TRACE(Fullscreen) {
913 visitor->trace(m_pendingRequests); 915 visitor->trace(m_pendingRequests);
914 visitor->trace(m_fullscreenElementStack); 916 visitor->trace(m_fullscreenElementStack);
915 Supplement<Document>::trace(visitor); 917 Supplement<Document>::trace(visitor);
916 ContextLifecycleObserver::trace(visitor); 918 ContextLifecycleObserver::trace(visitor);
917 } 919 }
918 920
919 } // namespace blink 921 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698