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

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: Ensure fullscreen.css loaded for all fullscreen pseudoStateChanged Created 4 years, 9 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 3006 matching lines...) Expand 10 before | Expand all | Expand 10 after
3017 } 3017 }
3018 3018
3019 void Element::setFloatingPointAttribute(const QualifiedName& attributeName, doub le value) 3019 void Element::setFloatingPointAttribute(const QualifiedName& attributeName, doub le value)
3020 { 3020 {
3021 setAttribute(attributeName, AtomicString::number(value)); 3021 setAttribute(attributeName, AtomicString::number(value));
3022 } 3022 }
3023 3023
3024 void Element::setContainsFullScreenElement(bool flag) 3024 void Element::setContainsFullScreenElement(bool flag)
3025 { 3025 {
3026 setElementFlag(ContainsFullScreenElement, flag); 3026 setElementFlag(ContainsFullScreenElement, flag);
3027 document().styleEngine().ensureFullscreenUAStyle();
3027 pseudoStateChanged(CSSSelector::PseudoFullScreenAncestor); 3028 pseudoStateChanged(CSSSelector::PseudoFullScreenAncestor);
3028 } 3029 }
3029 3030
3030 static Element* parentCrossingFrameBoundaries(Element* element) 3031 static Element* parentCrossingFrameBoundaries(Element* element)
3031 { 3032 {
3032 ASSERT(element); 3033 ASSERT(element);
3033 return element->parentElement() ? element->parentElement() : element->docume nt().ownerElement(); 3034 return element->parentElement() ? element->parentElement() : element->docume nt().ownerElement();
3034 } 3035 }
3035 3036
3036 void Element::setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(boo l flag) 3037 void Element::setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(boo l flag)
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
3664 { 3665 {
3665 #if ENABLE(OILPAN) 3666 #if ENABLE(OILPAN)
3666 if (hasRareData()) 3667 if (hasRareData())
3667 visitor->trace(elementRareData()); 3668 visitor->trace(elementRareData());
3668 visitor->trace(m_elementData); 3669 visitor->trace(m_elementData);
3669 #endif 3670 #endif
3670 ContainerNode::trace(visitor); 3671 ContainerNode::trace(visitor);
3671 } 3672 }
3672 3673
3673 } // namespace blink 3674 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698