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

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: 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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 void FullscreenElementStack::trace(Visitor* visitor) 578 void FullscreenElementStack::trace(Visitor* visitor)
583 { 579 {
584 visitor->trace(m_fullScreenElement); 580 visitor->trace(m_fullScreenElement);
585 visitor->trace(m_fullScreenElementStack); 581 visitor->trace(m_fullScreenElementStack);
586 visitor->trace(m_fullScreenChangeEventTargetQueue); 582 visitor->trace(m_fullScreenChangeEventTargetQueue);
587 visitor->trace(m_fullScreenErrorEventTargetQueue); 583 visitor->trace(m_fullScreenErrorEventTargetQueue);
588 DocumentSupplement::trace(visitor); 584 DocumentSupplement::trace(visitor);
589 } 585 }
590 586
591 } // namespace WebCore 587 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698