| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 const char* Fullscreen::supplementName() | 132 const char* Fullscreen::supplementName() |
| 133 { | 133 { |
| 134 return "Fullscreen"; | 134 return "Fullscreen"; |
| 135 } | 135 } |
| 136 | 136 |
| 137 Fullscreen& Fullscreen::from(Document& document) | 137 Fullscreen& Fullscreen::from(Document& document) |
| 138 { | 138 { |
| 139 Fullscreen* fullscreen = fromIfExists(document); | 139 Fullscreen* fullscreen = fromIfExists(document); |
| 140 if (!fullscreen) { | 140 if (!fullscreen) { |
| 141 fullscreen = new Fullscreen(document); | 141 fullscreen = new Fullscreen(document); |
| 142 HeapSupplement<Document>::provideTo(document, supplementName(), fullscre
en); | 142 Supplement<Document>::provideTo(document, supplementName(), fullscreen); |
| 143 } | 143 } |
| 144 | 144 |
| 145 return *fullscreen; | 145 return *fullscreen; |
| 146 } | 146 } |
| 147 | 147 |
| 148 Fullscreen* Fullscreen::fromIfExistsSlow(Document& document) | 148 Fullscreen* Fullscreen::fromIfExistsSlow(Document& document) |
| 149 { | 149 { |
| 150 return static_cast<Fullscreen*>(HeapSupplement<Document>::from(document, sup
plementName())); | 150 return static_cast<Fullscreen*>(Supplement<Document>::from(document, supplem
entName())); |
| 151 } | 151 } |
| 152 | 152 |
| 153 Element* Fullscreen::fullscreenElementFrom(Document& document) | 153 Element* Fullscreen::fullscreenElementFrom(Document& document) |
| 154 { | 154 { |
| 155 if (Fullscreen* found = fromIfExists(document)) | 155 if (Fullscreen* found = fromIfExists(document)) |
| 156 return found->fullscreenElement(); | 156 return found->fullscreenElement(); |
| 157 return 0; | 157 return 0; |
| 158 } | 158 } |
| 159 | 159 |
| 160 Element* Fullscreen::currentFullScreenElementFrom(Document& document) | 160 Element* Fullscreen::currentFullScreenElementFrom(Document& document) |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 m_fullScreenElementStack.append(std::make_pair(&element, requestType)); | 620 m_fullScreenElementStack.append(std::make_pair(&element, requestType)); |
| 621 } | 621 } |
| 622 | 622 |
| 623 DEFINE_TRACE(Fullscreen) | 623 DEFINE_TRACE(Fullscreen) |
| 624 { | 624 { |
| 625 #if ENABLE(OILPAN) | 625 #if ENABLE(OILPAN) |
| 626 visitor->trace(m_fullScreenElement); | 626 visitor->trace(m_fullScreenElement); |
| 627 visitor->trace(m_fullScreenElementStack); | 627 visitor->trace(m_fullScreenElementStack); |
| 628 visitor->trace(m_eventQueue); | 628 visitor->trace(m_eventQueue); |
| 629 #endif | 629 #endif |
| 630 HeapSupplement<Document>::trace(visitor); | 630 Supplement<Document>::trace(visitor); |
| 631 DocumentLifecycleObserver::trace(visitor); | 631 DocumentLifecycleObserver::trace(visitor); |
| 632 } | 632 } |
| 633 | 633 |
| 634 } // namespace blink | 634 } // namespace blink |
| OLD | NEW |