| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #ifndef RangeBoundaryPoint_h | 26 #ifndef RangeBoundaryPoint_h |
| 27 #define RangeBoundaryPoint_h | 27 #define RangeBoundaryPoint_h |
| 28 | 28 |
| 29 #include "core/dom/Node.h" | 29 #include "core/dom/Node.h" |
| 30 #include "core/dom/NodeTraversal.h" | 30 #include "core/dom/NodeTraversal.h" |
| 31 #include "core/editing/Position.h" | 31 #include "core/editing/Position.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class RangeBoundaryPoint { | 35 class RangeBoundaryPoint { |
| 36 DISALLOW_ALLOCATION(); | 36 DISALLOW_NEW(); |
| 37 public: | 37 public: |
| 38 explicit RangeBoundaryPoint(PassRefPtrWillBeRawPtr<Node> container); | 38 explicit RangeBoundaryPoint(PassRefPtrWillBeRawPtr<Node> container); |
| 39 | 39 |
| 40 explicit RangeBoundaryPoint(const RangeBoundaryPoint&); | 40 explicit RangeBoundaryPoint(const RangeBoundaryPoint&); |
| 41 | 41 |
| 42 const Position toPosition() const; | 42 const Position toPosition() const; |
| 43 | 43 |
| 44 Node* container() const; | 44 Node* container() const; |
| 45 int offset() const; | 45 int offset() const; |
| 46 Node* childBefore() const; | 46 Node* childBefore() const; |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 } else { | 196 } else { |
| 197 if (a.offset() != b.offset()) | 197 if (a.offset() != b.offset()) |
| 198 return false; | 198 return false; |
| 199 } | 199 } |
| 200 return true; | 200 return true; |
| 201 } | 201 } |
| 202 | 202 |
| 203 } | 203 } |
| 204 | 204 |
| 205 #endif | 205 #endif |
| OLD | NEW |