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

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

Issue 2327743002: Rename Node::shadowHost() to Node::ownerShadowHost() (Closed)
Patch Set: fix Created 4 years, 3 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 2837 matching lines...) Expand 10 before | Expand all | Expand 10 after
2848 { 2848 {
2849 DCHECK(CSSSelector::parsePseudoType(id, false) == CSSSelector::PseudoWebKitC ustomElement || CSSSelector::parsePseudoType(id, false) == CSSSelector::PseudoBl inkInternalElement); 2849 DCHECK(CSSSelector::parsePseudoType(id, false) == CSSSelector::PseudoWebKitC ustomElement || CSSSelector::parsePseudoType(id, false) == CSSSelector::PseudoBl inkInternalElement);
2850 setAttribute(pseudoAttr, id); 2850 setAttribute(pseudoAttr, id);
2851 } 2851 }
2852 2852
2853 bool Element::isInDescendantTreeOf(const Element* shadowHost) const 2853 bool Element::isInDescendantTreeOf(const Element* shadowHost) const
2854 { 2854 {
2855 DCHECK(shadowHost); 2855 DCHECK(shadowHost);
2856 DCHECK(isShadowHost(shadowHost)); 2856 DCHECK(isShadowHost(shadowHost));
2857 2857
2858 for (const Element* ancestorShadowHost = this->shadowHost(); ancestorShadowH ost; ancestorShadowHost = ancestorShadowHost->shadowHost()) { 2858 for (const Element* ancestorShadowHost = this->ownerShadowHost(); ancestorSh adowHost; ancestorShadowHost = ancestorShadowHost->ownerShadowHost()) {
2859 if (ancestorShadowHost == shadowHost) 2859 if (ancestorShadowHost == shadowHost)
2860 return true; 2860 return true;
2861 } 2861 }
2862 return false; 2862 return false;
2863 } 2863 }
2864 2864
2865 LayoutSize Element::minimumSizeForResizing() const 2865 LayoutSize Element::minimumSizeForResizing() const
2866 { 2866 {
2867 return hasRareData() ? elementRareData()->minimumSizeForResizing() : default MinimumSizeForResizing(); 2867 return hasRareData() ? elementRareData()->minimumSizeForResizing() : default MinimumSizeForResizing();
2868 } 2868 }
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
3818 3818
3819 DEFINE_TRACE_WRAPPERS(Element) 3819 DEFINE_TRACE_WRAPPERS(Element)
3820 { 3820 {
3821 if (hasRareData()) { 3821 if (hasRareData()) {
3822 visitor->traceWrappers(elementRareData()); 3822 visitor->traceWrappers(elementRareData());
3823 } 3823 }
3824 ContainerNode::traceWrappers(visitor); 3824 ContainerNode::traceWrappers(visitor);
3825 } 3825 }
3826 3826
3827 } // namespace blink 3827 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ContainerNode.cpp ('k') | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698