| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 m_private.reset(); | 63 m_private.reset(); |
| 64 } | 64 } |
| 65 | 65 |
| 66 void WebNode::assign(const WebNode& other) | 66 void WebNode::assign(const WebNode& other) |
| 67 { | 67 { |
| 68 m_private = other.m_private; | 68 m_private = other.m_private; |
| 69 } | 69 } |
| 70 | 70 |
| 71 bool WebNode::equals(const WebNode& n) const | 71 bool WebNode::equals(const WebNode& n) const |
| 72 { | 72 { |
| 73 return (m_private.get() == n.m_private.get()); | 73 return m_private.get() == n.m_private.get(); |
| 74 } | 74 } |
| 75 | 75 |
| 76 bool WebNode::lessThan(const WebNode& n) const | 76 bool WebNode::lessThan(const WebNode& n) const |
| 77 { | 77 { |
| 78 return (m_private.get() < n.m_private.get()); | 78 return m_private.get() < n.m_private.get(); |
| 79 } | 79 } |
| 80 | 80 |
| 81 WebNode::NodeType WebNode::nodeType() const | 81 WebNode::NodeType WebNode::nodeType() const |
| 82 { | 82 { |
| 83 return static_cast<NodeType>(m_private->nodeType()); | 83 return static_cast<NodeType>(m_private->nodeType()); |
| 84 } | 84 } |
| 85 | 85 |
| 86 WebNode WebNode::parentNode() const | 86 WebNode WebNode::parentNode() const |
| 87 { | 87 { |
| 88 return WebNode(const_cast<ContainerNode*>(m_private->parentNode())); | 88 return WebNode(const_cast<ContainerNode*>(m_private->parentNode())); |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 m_private = node; | 261 m_private = node; |
| 262 return *this; | 262 return *this; |
| 263 } | 263 } |
| 264 | 264 |
| 265 WebNode::operator PassRefPtr<Node>() const | 265 WebNode::operator PassRefPtr<Node>() const |
| 266 { | 266 { |
| 267 return m_private.get(); | 267 return m_private.get(); |
| 268 } | 268 } |
| 269 | 269 |
| 270 } // namespace WebKit | 270 } // namespace WebKit |
| OLD | NEW |