Changeset 55413 in webkit
- Timestamp:
- Mar 2, 2010 10:19:41 AM (14 years ago)
- Location:
- trunk/WebKit/chromium
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/chromium/ChangeLog
r55387 r55413 1 2010-03-02 James Hawkins <jhawkins@chromium.org> 2 3 Reviewed by Darin Fisher. 4 5 [Chromium] Implement WebNode::equals and add inline operators for == 6 and !=. 7 8 https://bugs.webkit.org/show_bug.cgi?id=35543 9 10 * public/WebNode.h: 11 (WebKit::operator==): 12 (WebKit::operator!=): 13 * src/WebNode.cpp: 14 (WebKit::WebNode::equals): 15 1 16 2010-03-01 Jakob Petsovits <jpetsovits@rim.com> 2 17 -
trunk/WebKit/chromium/public/WebNode.h
r53934 r55413 62 62 WEBKIT_API void reset(); 63 63 WEBKIT_API void assign(const WebNode&); 64 65 WEBKIT_API bool equals(const WebNode&) const; 64 66 65 67 bool isNull() const { return !m_private; } … … 136 138 }; 137 139 140 inline bool operator==(const WebNode& a, const WebNode& b) 141 { 142 return a.equals(b); 143 } 144 145 inline bool operator!=(const WebNode& a, const WebNode& b) 146 { 147 return !(a == b); 148 } 149 138 150 } // namespace WebKit 139 151 -
trunk/WebKit/chromium/src/WebNode.cpp
r53934 r55413 71 71 } 72 72 73 bool WebNode::equals(const WebNode& n) const 74 { 75 return (m_private == n.m_private); 76 } 77 73 78 WebNode::NodeType WebNode::nodeType() const 74 79 {
Note: See TracChangeset
for help on using the changeset viewer.