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

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

Issue 2293703002: Refactor Node::showTree*() functions. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 // This is a dual of insertedInto(), and is similar to the DOMNodeRemovedFro mDocument DOM event, but does not require the overhead of event 563 // This is a dual of insertedInto(), and is similar to the DOMNodeRemovedFro mDocument DOM event, but does not require the overhead of event
564 // dispatching, and is called _after_ the node is removed from the tree. 564 // dispatching, and is called _after_ the node is removed from the tree.
565 // 565 //
566 virtual void removedFrom(ContainerNode* insertionPoint); 566 virtual void removedFrom(ContainerNode* insertionPoint);
567 567
568 // FIXME(dominicc): This method is not debug-only--it is used by 568 // FIXME(dominicc): This method is not debug-only--it is used by
569 // Tracing--rename it to something indicative. 569 // Tracing--rename it to something indicative.
570 String debugName() const; 570 String debugName() const;
571 571
572 #ifndef NDEBUG 572 #ifndef NDEBUG
573 String toString() const;
573 void showNode(const char* prefix = "") const; 574 void showNode(const char* prefix = "") const;
574 void showTreeForThis() const; 575 String toTreeStringForThis() const;
575 void showTreeForThisInFlatTree() const; 576 String toFlatTreeStringForThis() const;
576 void printNodePathTo(std::ostream&) const; 577 void printNodePathTo(std::ostream&) const;
577 void showTreeAndMark(const Node* markedNode1, const char* markedLabel1, cons t Node* markedNode2 = nullptr, const char* markedLabel2 = nullptr) const; 578 String toMarkedTreeString(const Node* markedNode1, const char* markedLabel1, const Node* markedNode2 = nullptr, const char* markedLabel2 = nullptr) const;
578 void showTreeAndMarkInFlatTree(const Node* markedNode1, const char* markedLa bel1, const Node* markedNode2 = nullptr, const char* markedLabel2 = nullptr) con st; 579 String toMarkedFlatTreeString(const Node* markedNode1, const char* markedLab el1, const Node* markedNode2 = nullptr, const char* markedLabel2 = nullptr) cons t;
579 void showTreeForThisAcrossFrame() const; 580 void showTreeForThisAcrossFrame() const;
580 #endif 581 #endif
581 582
582 NodeListsNodeData* nodeLists(); 583 NodeListsNodeData* nodeLists();
583 void clearNodeLists(); 584 void clearNodeLists();
584 585
585 virtual bool willRespondToMouseMoveEvents(); 586 virtual bool willRespondToMouseMoveEvents();
586 virtual bool willRespondToMouseClickEvents(); 587 virtual bool willRespondToMouseClickEvents();
587 virtual bool willRespondToTouchEvents(); 588 virtual bool willRespondToTouchEvents();
588 589
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
885 } // namespace blink 886 } // namespace blink
886 887
887 #ifndef NDEBUG 888 #ifndef NDEBUG
888 // Outside the WebCore namespace for ease of invocation from gdb. 889 // Outside the WebCore namespace for ease of invocation from gdb.
889 void showNode(const blink::Node*); 890 void showNode(const blink::Node*);
890 void showTree(const blink::Node*); 891 void showTree(const blink::Node*);
891 void showNodePath(const blink::Node*); 892 void showNodePath(const blink::Node*);
892 #endif 893 #endif
893 894
894 #endif // Node_h 895 #endif // Node_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698