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

Side by Side Diff: Source/core/dom/NodeFilter.h

Issue 1197723002: NodeFilter acceptNode return type changed to unsigned (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Change sign in the calls for NodeFIlter.acceptNode Created 5 years, 6 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 | « Source/bindings/core/v8/V8NodeFilterCondition.cpp ('k') | Source/core/dom/NodeFilter.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 * Copyright (C) 2000 Frederik Holljen (frederik.holljen@hig.no) 3 * Copyright (C) 2000 Frederik Holljen (frederik.holljen@hig.no)
4 * Copyright (C) 2001 Peter Kelly (pmk@post.com) 4 * Copyright (C) 2001 Peter Kelly (pmk@post.com)
5 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2004, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2008, 2009 Apple Inc. All rights reserved.
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 static PassRefPtrWillBeRawPtr<NodeFilter> create(PassRefPtrWillBeRawPtr<Node FilterCondition> condition) 70 static PassRefPtrWillBeRawPtr<NodeFilter> create(PassRefPtrWillBeRawPtr<Node FilterCondition> condition)
71 { 71 {
72 return adoptRefWillBeNoop(new NodeFilter(condition)); 72 return adoptRefWillBeNoop(new NodeFilter(condition));
73 } 73 }
74 74
75 static PassRefPtrWillBeRawPtr<NodeFilter> create() 75 static PassRefPtrWillBeRawPtr<NodeFilter> create()
76 { 76 {
77 return adoptRefWillBeNoop(new NodeFilter()); 77 return adoptRefWillBeNoop(new NodeFilter());
78 } 78 }
79 79
80 short acceptNode(Node*, ExceptionState&) const; 80 unsigned acceptNode(Node*, ExceptionState&) const;
81 81
82 void setCondition(PassRefPtrWillBeRawPtr<NodeFilterCondition> condition) 82 void setCondition(PassRefPtrWillBeRawPtr<NodeFilterCondition> condition)
83 { 83 {
84 m_condition = condition; 84 m_condition = condition;
85 } 85 }
86 86
87 DECLARE_TRACE(); 87 DECLARE_TRACE();
88 88
89 private: 89 private:
90 explicit NodeFilter(PassRefPtrWillBeRawPtr<NodeFilterCondition> condition) : m_condition(condition) { } 90 explicit NodeFilter(PassRefPtrWillBeRawPtr<NodeFilterCondition> condition) : m_condition(condition) { }
91 91
92 NodeFilter() { } 92 NodeFilter() { }
93 93
94 RefPtrWillBeMember<NodeFilterCondition> m_condition; 94 RefPtrWillBeMember<NodeFilterCondition> m_condition;
95 }; 95 };
96 96
97 } // namespace blink 97 } // namespace blink
98 98
99 #endif // NodeFilter_h 99 #endif // NodeFilter_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/V8NodeFilterCondition.cpp ('k') | Source/core/dom/NodeFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698