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

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

Issue 1942623002: Rename Document::ownerElement to localOwner and fix main frame checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 3037 matching lines...) Expand 10 before | Expand all | Expand 10 after
3048 void Element::setContainsFullScreenElement(bool flag) 3048 void Element::setContainsFullScreenElement(bool flag)
3049 { 3049 {
3050 setElementFlag(ContainsFullScreenElement, flag); 3050 setElementFlag(ContainsFullScreenElement, flag);
3051 document().styleEngine().ensureFullscreenUAStyle(); 3051 document().styleEngine().ensureFullscreenUAStyle();
3052 pseudoStateChanged(CSSSelector::PseudoFullScreenAncestor); 3052 pseudoStateChanged(CSSSelector::PseudoFullScreenAncestor);
3053 } 3053 }
3054 3054
3055 static Element* parentCrossingFrameBoundaries(Element* element) 3055 static Element* parentCrossingFrameBoundaries(Element* element)
3056 { 3056 {
3057 DCHECK(element); 3057 DCHECK(element);
3058 return element->parentElement() ? element->parentElement() : element->docume nt().ownerElement(); 3058 return element->parentElement() ? element->parentElement() : element->docume nt().localOwnerElement();
3059 } 3059 }
3060 3060
3061 void Element::setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(boo l flag) 3061 void Element::setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(boo l flag)
3062 { 3062 {
3063 for (Element* element = parentCrossingFrameBoundaries(this); element; elemen t = parentCrossingFrameBoundaries(element)) 3063 for (Element* element = parentCrossingFrameBoundaries(this); element; elemen t = parentCrossingFrameBoundaries(element))
3064 element->setContainsFullScreenElement(flag); 3064 element->setContainsFullScreenElement(flag);
3065 } 3065 }
3066 3066
3067 void Element::setIsInTopLayer(bool inTopLayer) 3067 void Element::setIsInTopLayer(bool inTopLayer)
3068 { 3068 {
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
3695 3695
3696 DEFINE_TRACE(Element) 3696 DEFINE_TRACE(Element)
3697 { 3697 {
3698 if (hasRareData()) 3698 if (hasRareData())
3699 visitor->trace(elementRareData()); 3699 visitor->trace(elementRareData());
3700 visitor->trace(m_elementData); 3700 visitor->trace(m_elementData);
3701 ContainerNode::trace(visitor); 3701 ContainerNode::trace(visitor);
3702 } 3702 }
3703 3703
3704 } // namespace blink 3704 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698