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 18 matching lines...) Expand all Loading... |
29 #define FullscreenElementStack_h | 29 #define FullscreenElementStack_h |
30 | 30 |
31 #include "core/dom/Document.h" | 31 #include "core/dom/Document.h" |
32 #include "core/dom/DocumentLifecycleObserver.h" | 32 #include "core/dom/DocumentLifecycleObserver.h" |
33 #include "core/dom/Element.h" | 33 #include "core/dom/Element.h" |
34 #include "platform/Supplementable.h" | 34 #include "platform/Supplementable.h" |
35 #include "platform/Timer.h" | 35 #include "platform/Timer.h" |
36 #include "platform/geometry/LayoutRect.h" | 36 #include "platform/geometry/LayoutRect.h" |
37 #include "wtf/Deque.h" | 37 #include "wtf/Deque.h" |
38 #include "wtf/RefPtr.h" | 38 #include "wtf/RefPtr.h" |
39 #include "wtf/TypeTraits.h" | |
40 #include "wtf/Vector.h" | 39 #include "wtf/Vector.h" |
41 | 40 |
42 namespace blink { | 41 namespace blink { |
43 | 42 |
44 class RenderFullScreen; | 43 class RenderFullScreen; |
45 class RenderStyle; | 44 class RenderStyle; |
46 | 45 |
47 class FullscreenElementStack FINAL | 46 class FullscreenElementStack FINAL |
48 : public NoBaseWillBeGarbageCollectedFinalized<FullscreenElementStack> | 47 : public NoBaseWillBeGarbageCollectedFinalized<FullscreenElementStack> |
49 , public DocumentSupplement | 48 , public DocumentSupplement |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 133 |
135 inline FullscreenElementStack* FullscreenElementStack::fromIfExists(Document& do
cument) | 134 inline FullscreenElementStack* FullscreenElementStack::fromIfExists(Document& do
cument) |
136 { | 135 { |
137 if (!document.hasFullscreenElementStack()) | 136 if (!document.hasFullscreenElementStack()) |
138 return 0; | 137 return 0; |
139 return fromIfExistsSlow(document); | 138 return fromIfExistsSlow(document); |
140 } | 139 } |
141 | 140 |
142 } // namespace blink | 141 } // namespace blink |
143 | 142 |
144 // Needed by the HeapVector<> element stack. | |
145 template<>struct WTF::IsPod<blink::FullscreenElementStack::RequestType> { | |
146 static const bool value = true; | |
147 }; | |
148 | |
149 #endif // FullscreenElementStack_h | 143 #endif // FullscreenElementStack_h |
OLD | NEW |