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

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

Issue 2513893002: Make ifdefs consistent in WebKit/Source/core/ (Closed)
Patch Set: Limited fix to /core/ only. Created 4 years 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. 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
7 * (http://www.torchmobile.com/) 7 * (http://www.torchmobile.com/)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 // This is a dual of insertedInto(), and is similar to the 656 // This is a dual of insertedInto(), and is similar to the
657 // DOMNodeRemovedFromDocument DOM event, but does not require the overhead of 657 // DOMNodeRemovedFromDocument DOM event, but does not require the overhead of
658 // event dispatching, and is called _after_ the node is removed from the tree. 658 // event dispatching, and is called _after_ the node is removed from the tree.
659 // 659 //
660 virtual void removedFrom(ContainerNode* insertionPoint); 660 virtual void removedFrom(ContainerNode* insertionPoint);
661 661
662 // FIXME(dominicc): This method is not debug-only--it is used by 662 // FIXME(dominicc): This method is not debug-only--it is used by
663 // Tracing--rename it to something indicative. 663 // Tracing--rename it to something indicative.
664 String debugName() const; 664 String debugName() const;
665 665
666 #ifndef NDEBUG 666 #if DCHECK_IS_ON()
667 String toString() const; 667 String toString() const;
668 String toTreeStringForThis() const; 668 String toTreeStringForThis() const;
669 String toFlatTreeStringForThis() const; 669 String toFlatTreeStringForThis() const;
670 void printNodePathTo(std::ostream&) const; 670 void printNodePathTo(std::ostream&) const;
671 String toMarkedTreeString(const Node* markedNode1, 671 String toMarkedTreeString(const Node* markedNode1,
672 const char* markedLabel1, 672 const char* markedLabel1,
673 const Node* markedNode2 = nullptr, 673 const Node* markedNode2 = nullptr,
674 const char* markedLabel2 = nullptr) const; 674 const char* markedLabel2 = nullptr) const;
675 String toMarkedFlatTreeString(const Node* markedNode1, 675 String toMarkedFlatTreeString(const Node* markedNode1,
676 const char* markedLabel1, 676 const char* markedLabel1,
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 1011
1012 #define DECLARE_NODE_FACTORY(T) static T* create(Document&) 1012 #define DECLARE_NODE_FACTORY(T) static T* create(Document&)
1013 #define DEFINE_NODE_FACTORY(T) \ 1013 #define DEFINE_NODE_FACTORY(T) \
1014 T* T::create(Document& document) { return new T(document); } 1014 T* T::create(Document& document) { return new T(document); }
1015 1015
1016 CORE_EXPORT std::ostream& operator<<(std::ostream&, const Node&); 1016 CORE_EXPORT std::ostream& operator<<(std::ostream&, const Node&);
1017 CORE_EXPORT std::ostream& operator<<(std::ostream&, const Node*); 1017 CORE_EXPORT std::ostream& operator<<(std::ostream&, const Node*);
1018 1018
1019 } // namespace blink 1019 } // namespace blink
1020 1020
1021 #ifndef NDEBUG 1021 #if DCHECK_IS_ON()
1022 // Outside the WebCore namespace for ease of invocation from gdb. 1022 // Outside the WebCore namespace for ease of invocation from gdb.
1023 void showNode(const blink::Node*); 1023 void showNode(const blink::Node*);
1024 void showTree(const blink::Node*); 1024 void showTree(const blink::Node*);
1025 void showNodePath(const blink::Node*); 1025 void showNodePath(const blink::Node*);
1026 #endif 1026 #endif
1027 1027
1028 #endif // Node_h 1028 #endif // Node_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.cpp » ('j') | third_party/WebKit/Source/core/layout/LayoutObject.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698