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

Side by Side Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 2667913002: Revert of Sync requestFullscreen() and exitFullscreen() algorithms with the spec (patchset #3 id:40… (Closed)
Patch Set: Created 3 years, 10 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
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 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * (C) 2007 David Smith (catfish.man@gmail.com) 6 * (C) 2007 David Smith (catfish.man@gmail.com)
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
8 * All rights reserved. 8 * All rights reserved.
9 * (C) 2007 Eric Seidel (eric@webkit.org) 9 * (C) 2007 Eric Seidel (eric@webkit.org)
10 * 10 *
(...skipping 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after
1623 setIsInCanvasSubtree(true); 1623 setIsInCanvasSubtree(true);
1624 1624
1625 return InsertionDone; 1625 return InsertionDone;
1626 } 1626 }
1627 1627
1628 void Element::removedFrom(ContainerNode* insertionPoint) { 1628 void Element::removedFrom(ContainerNode* insertionPoint) {
1629 bool wasInDocument = insertionPoint->isConnected(); 1629 bool wasInDocument = insertionPoint->isConnected();
1630 1630
1631 DCHECK(!hasRareData() || !elementRareData()->hasPseudoElements()); 1631 DCHECK(!hasRareData() || !elementRareData()->hasPseudoElements());
1632 1632
1633 if (Fullscreen::isFullscreenElement(*this)) { 1633 if (Fullscreen::isCurrentFullScreenElement(*this)) {
1634 setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(false); 1634 setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(false);
1635 if (insertionPoint->isElementNode()) { 1635 if (insertionPoint->isElementNode()) {
1636 toElement(insertionPoint)->setContainsFullScreenElement(false); 1636 toElement(insertionPoint)->setContainsFullScreenElement(false);
1637 toElement(insertionPoint) 1637 toElement(insertionPoint)
1638 ->setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries( 1638 ->setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(
1639 false); 1639 false);
1640 } 1640 }
1641 } 1641 }
1642 1642
1643 if (Fullscreen* fullscreen = Fullscreen::fromIfExists(document())) 1643 if (Fullscreen* fullscreen = Fullscreen::fromIfExists(document()))
(...skipping 2392 matching lines...) Expand 10 before | Expand all | Expand 10 after
4036 if (isUserActionElement()) 4036 if (isUserActionElement())
4037 return false; 4037 return false;
4038 if (!parentOrShadowHostElement()->childrenSupportStyleSharing()) 4038 if (!parentOrShadowHostElement()->childrenSupportStyleSharing())
4039 return false; 4039 return false;
4040 if (this == document().cssTarget()) 4040 if (this == document().cssTarget())
4041 return false; 4041 return false;
4042 if (isHTMLElement() && toHTMLElement(this)->hasDirectionAuto()) 4042 if (isHTMLElement() && toHTMLElement(this)->hasDirectionAuto())
4043 return false; 4043 return false;
4044 if (hasAnimations()) 4044 if (hasAnimations())
4045 return false; 4045 return false;
4046 if (Fullscreen::isFullscreenElement(*this)) 4046 if (Fullscreen::isCurrentFullScreenElement(*this))
4047 return false; 4047 return false;
4048 return true; 4048 return true;
4049 } 4049 }
4050 4050
4051 void Element::logAddElementIfIsolatedWorldAndInDocument( 4051 void Element::logAddElementIfIsolatedWorldAndInDocument(
4052 const char element[], 4052 const char element[],
4053 const QualifiedName& attr1) { 4053 const QualifiedName& attr1) {
4054 if (!isConnected()) 4054 if (!isConnected())
4055 return; 4055 return;
4056 V8DOMActivityLogger* activityLogger = 4056 V8DOMActivityLogger* activityLogger =
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
4124 } 4124 }
4125 4125
4126 DEFINE_TRACE_WRAPPERS(Element) { 4126 DEFINE_TRACE_WRAPPERS(Element) {
4127 if (hasRareData()) { 4127 if (hasRareData()) {
4128 visitor->traceWrappers(elementRareData()); 4128 visitor->traceWrappers(elementRareData());
4129 } 4129 }
4130 ContainerNode::traceWrappers(visitor); 4130 ContainerNode::traceWrappers(visitor);
4131 } 4131 }
4132 4132
4133 } // namespace blink 4133 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentFullscreen.idl ('k') | third_party/WebKit/Source/core/dom/Fullscreen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698