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

Side by Side Diff: Source/core/dom/FullscreenElementStack.cpp

Issue 336313015: Remove the webkitallowfullscreen content attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix quirks mode test Created 6 years, 5 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 | Annotate | Revision Log
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 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698