| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 using namespace HTMLNames; | 45 using namespace HTMLNames; |
| 46 | 46 |
| 47 static bool fullscreenIsAllowedForAllOwners(const Document& document) | 47 static bool fullscreenIsAllowedForAllOwners(const Document& document) |
| 48 { | 48 { |
| 49 const HTMLFrameOwnerElement* owner = document.ownerElement(); | 49 const HTMLFrameOwnerElement* owner = document.ownerElement(); |
| 50 if (!owner) | 50 if (!owner) |
| 51 return true; | 51 return true; |
| 52 do { | 52 do { |
| 53 if (!isHTMLIFrameElement(owner)) | 53 if (!isHTMLIFrameElement(owner)) |
| 54 return false; | 54 return false; |
| 55 if (!owner->hasAttribute(allowfullscreenAttr)) { | 55 if (!owner->hasAttribute(allowfullscreenAttr)) |
| 56 if (owner->hasAttribute(webkitallowfullscreenAttr)) | 56 return false; |
| 57 UseCounter::count(document, UseCounter::PrefixedAllowFullscreenA
ttribute); | |
| 58 else | |
| 59 return false; | |
| 60 } | |
| 61 } while ((owner = owner->document().ownerElement())); | 57 } while ((owner = owner->document().ownerElement())); |
| 62 return true; | 58 return true; |
| 63 } | 59 } |
| 64 | 60 |
| 65 const char* FullscreenElementStack::supplementName() | 61 const char* FullscreenElementStack::supplementName() |
| 66 { | 62 { |
| 67 return "FullscreenElementStack"; | 63 return "FullscreenElementStack"; |
| 68 } | 64 } |
| 69 | 65 |
| 70 FullscreenElementStack& FullscreenElementStack::from(Document& document) | 66 FullscreenElementStack& FullscreenElementStack::from(Document& document) |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 void FullscreenElementStack::trace(Visitor* visitor) | 586 void FullscreenElementStack::trace(Visitor* visitor) |
| 591 { | 587 { |
| 592 visitor->trace(m_fullScreenElement); | 588 visitor->trace(m_fullScreenElement); |
| 593 visitor->trace(m_fullScreenElementStack); | 589 visitor->trace(m_fullScreenElementStack); |
| 594 visitor->trace(m_fullScreenChangeEventTargetQueue); | 590 visitor->trace(m_fullScreenChangeEventTargetQueue); |
| 595 visitor->trace(m_fullScreenErrorEventTargetQueue); | 591 visitor->trace(m_fullScreenErrorEventTargetQueue); |
| 596 DocumentSupplement::trace(visitor); | 592 DocumentSupplement::trace(visitor); |
| 597 } | 593 } |
| 598 | 594 |
| 599 } // namespace WebCore | 595 } // namespace WebCore |
| OLD | NEW |