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

Side by Side Diff: third_party/WebKit/Source/core/dom/Node.h

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 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 291
292 bool canParticipateInFlatTree() const; 292 bool canParticipateInFlatTree() const;
293 bool isSlotOrActiveInsertionPoint() const; 293 bool isSlotOrActiveInsertionPoint() const;
294 // A re-distribution across v0 and v1 shadow trees is not supported. 294 // A re-distribution across v0 and v1 shadow trees is not supported.
295 bool isSlotable() const { return isTextNode() || (isElementNode() && !isInse rtionPoint()); } 295 bool isSlotable() const { return isTextNode() || (isElementNode() && !isInse rtionPoint()); }
296 AtomicString slotName() const; 296 AtomicString slotName() const;
297 297
298 bool hasCustomStyleCallbacks() const { return getFlag(HasCustomStyleCallback sFlag); } 298 bool hasCustomStyleCallbacks() const { return getFlag(HasCustomStyleCallback sFlag); }
299 299
300 // If this node is in a shadow tree, returns its shadow host. Otherwise, ret urns nullptr. 300 // If this node is in a shadow tree, returns its shadow host. Otherwise, ret urns nullptr.
301 // TODO(kochi): crbug.com/507413 shadowHost() can return nullptr even when i t is in a 301 // TODO(kochi): crbug.com/507413 ownerShadowHost() can return nullptr even w hen it is in a
302 // shadow tree but its root is detached from its host. This can happen when handling 302 // shadow tree but its root is detached from its host. This can happen when handling
303 // queued events (e.g. during execCommand()). 303 // queued events (e.g. during execCommand()).
304 Element* shadowHost() const; 304 Element* ownerShadowHost() const;
305 // crbug.com/569532: containingShadowRoot() can return nullptr even if isInS hadowTree() returns true. 305 // crbug.com/569532: containingShadowRoot() can return nullptr even if isInS hadowTree() returns true.
306 // This can happen when handling queued events (e.g. during execCommand()) 306 // This can happen when handling queued events (e.g. during execCommand())
307 ShadowRoot* containingShadowRoot() const; 307 ShadowRoot* containingShadowRoot() const;
308 ShadowRoot* youngestShadowRoot() const; 308 ShadowRoot* youngestShadowRoot() const;
309 309
310 // Returns nullptr, a child of ShadowRoot, or a legacy shadow root. 310 // Returns nullptr, a child of ShadowRoot, or a legacy shadow root.
311 Node* nonBoundaryShadowTreeRootNode(); 311 Node* nonBoundaryShadowTreeRootNode();
312 312
313 // Node's parent, shadow tree host. 313 // Node's parent, shadow tree host.
314 ContainerNode* parentOrShadowHostNode() const; 314 ContainerNode* parentOrShadowHostNode() const;
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 } // namespace blink 884 } // namespace blink
885 885
886 #ifndef NDEBUG 886 #ifndef NDEBUG
887 // Outside the WebCore namespace for ease of invocation from gdb. 887 // Outside the WebCore namespace for ease of invocation from gdb.
888 void showNode(const blink::Node*); 888 void showNode(const blink::Node*);
889 void showTree(const blink::Node*); 889 void showTree(const blink::Node*);
890 void showNodePath(const blink::Node*); 890 void showNodePath(const blink::Node*);
891 #endif 891 #endif
892 892
893 #endif // Node_h 893 #endif // Node_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698