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

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

Issue 2775003003: Move Node::lengthOfContents into Range, its only user. (Closed)
Patch Set: const. Created 3 years, 9 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. 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 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 checkSlotChange(SlotChangeType::Initial); 765 checkSlotChange(SlotChangeType::Initial);
766 } 766 }
767 void checkSlotChangeBeforeRemoved() { 767 void checkSlotChangeBeforeRemoved() {
768 checkSlotChange(SlotChangeType::Initial); 768 checkSlotChange(SlotChangeType::Initial);
769 } 769 }
770 770
771 DECLARE_VIRTUAL_TRACE(); 771 DECLARE_VIRTUAL_TRACE();
772 772
773 DECLARE_VIRTUAL_TRACE_WRAPPERS(); 773 DECLARE_VIRTUAL_TRACE_WRAPPERS();
774 774
775 unsigned lengthOfContents() const;
776
777 private: 775 private:
778 enum NodeFlags { 776 enum NodeFlags {
779 HasRareDataFlag = 1, 777 HasRareDataFlag = 1,
780 778
781 // Node type flags. These never change once created. 779 // Node type flags. These never change once created.
782 IsTextFlag = 1 << 1, 780 IsTextFlag = 1 << 1,
783 IsContainerFlag = 1 << 2, 781 IsContainerFlag = 1 << 2,
784 IsElementFlag = 1 << 3, 782 IsElementFlag = 1 << 3,
785 IsHTMLFlag = 1 << 4, 783 IsHTMLFlag = 1 << 4,
786 IsSVGFlag = 1 << 5, 784 IsSVGFlag = 1 << 5,
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1009 } // namespace blink 1007 } // namespace blink
1010 1008
1011 #ifndef NDEBUG 1009 #ifndef NDEBUG
1012 // Outside the WebCore namespace for ease of invocation from gdb. 1010 // Outside the WebCore namespace for ease of invocation from gdb.
1013 void showNode(const blink::Node*); 1011 void showNode(const blink::Node*);
1014 void showTree(const blink::Node*); 1012 void showTree(const blink::Node*);
1015 void showNodePath(const blink::Node*); 1013 void showNodePath(const blink::Node*);
1016 #endif 1014 #endif
1017 1015
1018 #endif // Node_h 1016 #endif // Node_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/AttrTest.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