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

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

Issue 1675163002: Rename ComposedTree to FlatTree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip Created 4 years, 10 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 // since those elements will never have class names, inline style, or other things that 290 // since those elements will never have class names, inline style, or other things that
291 // this apparently guards against. 291 // this apparently guards against.
292 bool isStyledElement() const { return isHTMLElement() || isSVGElement(); } 292 bool isStyledElement() const { return isHTMLElement() || isSVGElement(); }
293 293
294 bool isDocumentNode() const; 294 bool isDocumentNode() const;
295 bool isTreeScope() const; 295 bool isTreeScope() const;
296 bool isDocumentFragment() const { return getFlag(IsDocumentFragmentFlag); } 296 bool isDocumentFragment() const { return getFlag(IsDocumentFragmentFlag); }
297 bool isShadowRoot() const { return isDocumentFragment() && isTreeScope(); } 297 bool isShadowRoot() const { return isDocumentFragment() && isTreeScope(); }
298 bool isInsertionPoint() const { return getFlag(IsInsertionPointFlag); } 298 bool isInsertionPoint() const { return getFlag(IsInsertionPointFlag); }
299 299
300 bool canParticipateInComposedTree() const; 300 bool canParticipateInFlatTree() const;
301 bool isSlotOrActiveInsertionPoint() const; 301 bool isSlotOrActiveInsertionPoint() const;
302 302
303 bool hasCustomStyleCallbacks() const { return getFlag(HasCustomStyleCallback sFlag); } 303 bool hasCustomStyleCallbacks() const { return getFlag(HasCustomStyleCallback sFlag); }
304 304
305 // If this node is in a shadow tree, returns its shadow host. Otherwise, ret urns nullptr. 305 // If this node is in a shadow tree, returns its shadow host. Otherwise, ret urns nullptr.
306 // TODO(kochi): crbug.com/507413 shadowHost() can return nullptr even when i t is in a 306 // TODO(kochi): crbug.com/507413 shadowHost() can return nullptr even when i t is in a
307 // shadow tree but its root is detached from its host. This can happen when handling 307 // shadow tree but its root is detached from its host. This can happen when handling
308 // queued events (e.g. during execCommand()). 308 // queued events (e.g. during execCommand()).
309 Element* shadowHost() const; 309 Element* shadowHost() const;
310 // crbug.com/569532: containingShadowRoot() can return nullptr even if isInS hadowTree() returns true. 310 // crbug.com/569532: containingShadowRoot() can return nullptr even if isInS hadowTree() returns true.
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 594
595 // FIXME(dominicc): This method is not debug-only--it is used by 595 // FIXME(dominicc): This method is not debug-only--it is used by
596 // Tracing--rename it to something indicative. 596 // Tracing--rename it to something indicative.
597 String debugName() const; 597 String debugName() const;
598 598
599 #ifndef NDEBUG 599 #ifndef NDEBUG
600 virtual void formatForDebugger(char* buffer, unsigned length) const; 600 virtual void formatForDebugger(char* buffer, unsigned length) const;
601 601
602 void showNode(const char* prefix = "") const; 602 void showNode(const char* prefix = "") const;
603 void showTreeForThis() const; 603 void showTreeForThis() const;
604 void showTreeForThisInComposedTree() const; 604 void showTreeForThisInFlatTree() const;
605 void showNodePathForThis() const; 605 void showNodePathForThis() const;
606 void showTreeAndMark(const Node* markedNode1, const char* markedLabel1, cons t Node* markedNode2 = nullptr, const char* markedLabel2 = nullptr) const; 606 void showTreeAndMark(const Node* markedNode1, const char* markedLabel1, cons t Node* markedNode2 = nullptr, const char* markedLabel2 = nullptr) const;
607 void showTreeAndMarkInComposedTree(const Node* markedNode1, const char* mark edLabel1, const Node* markedNode2 = nullptr, const char* markedLabel2 = nullptr) const; 607 void showTreeAndMarkInFlatTree(const Node* markedNode1, const char* markedLa bel1, const Node* markedNode2 = nullptr, const char* markedLabel2 = nullptr) con st;
608 void showTreeForThisAcrossFrame() const; 608 void showTreeForThisAcrossFrame() const;
609 #endif 609 #endif
610 610
611 NodeListsNodeData* nodeLists(); 611 NodeListsNodeData* nodeLists();
612 void clearNodeLists(); 612 void clearNodeLists();
613 613
614 virtual bool willRespondToMouseMoveEvents(); 614 virtual bool willRespondToMouseMoveEvents();
615 virtual bool willRespondToMouseClickEvents(); 615 virtual bool willRespondToMouseClickEvents();
616 virtual bool willRespondToTouchEvents(); 616 virtual bool willRespondToTouchEvents();
617 617
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 } // namespace blink 927 } // namespace blink
928 928
929 #ifndef NDEBUG 929 #ifndef NDEBUG
930 // Outside the WebCore namespace for ease of invocation from gdb. 930 // Outside the WebCore namespace for ease of invocation from gdb.
931 void showNode(const blink::Node*); 931 void showNode(const blink::Node*);
932 void showTree(const blink::Node*); 932 void showTree(const blink::Node*);
933 void showNodePath(const blink::Node*); 933 void showNodePath(const blink::Node*);
934 #endif 934 #endif
935 935
936 #endif // Node_h 936 #endif // Node_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698