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

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

Issue 1823143002: Ensure fullscreen.css loaded for ancestor invalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-ordered iframe and script in test Created 4 years, 8 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. All rights reserved. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
8 * (C) 2007 Eric Seidel (eric@webkit.org) 8 * (C) 2007 Eric Seidel (eric@webkit.org)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 3010 matching lines...) Expand 10 before | Expand all | Expand 10 after
3021 } 3021 }
3022 3022
3023 void Element::setFloatingPointAttribute(const QualifiedName& attributeName, doub le value) 3023 void Element::setFloatingPointAttribute(const QualifiedName& attributeName, doub le value)
3024 { 3024 {
3025 setAttribute(attributeName, AtomicString::number(value)); 3025 setAttribute(attributeName, AtomicString::number(value));
3026 } 3026 }
3027 3027
3028 void Element::setContainsFullScreenElement(bool flag) 3028 void Element::setContainsFullScreenElement(bool flag)
3029 { 3029 {
3030 setElementFlag(ContainsFullScreenElement, flag); 3030 setElementFlag(ContainsFullScreenElement, flag);
3031 document().styleEngine().ensureFullscreenUAStyle();
3031 pseudoStateChanged(CSSSelector::PseudoFullScreenAncestor); 3032 pseudoStateChanged(CSSSelector::PseudoFullScreenAncestor);
3032 } 3033 }
3033 3034
3034 static Element* parentCrossingFrameBoundaries(Element* element) 3035 static Element* parentCrossingFrameBoundaries(Element* element)
3035 { 3036 {
3036 ASSERT(element); 3037 ASSERT(element);
3037 return element->parentElement() ? element->parentElement() : element->docume nt().ownerElement(); 3038 return element->parentElement() ? element->parentElement() : element->docume nt().ownerElement();
3038 } 3039 }
3039 3040
3040 void Element::setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(boo l flag) 3041 void Element::setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(boo l flag)
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
3668 { 3669 {
3669 #if ENABLE(OILPAN) 3670 #if ENABLE(OILPAN)
3670 if (hasRareData()) 3671 if (hasRareData())
3671 visitor->trace(elementRareData()); 3672 visitor->trace(elementRareData());
3672 visitor->trace(m_elementData); 3673 visitor->trace(m_elementData);
3673 #endif 3674 #endif
3674 ContainerNode::trace(visitor); 3675 ContainerNode::trace(visitor);
3675 } 3676 }
3676 3677
3677 } // namespace blink 3678 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698