| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 Position nextVisuallyDistinctCandidate(const Position&); | 127 Position nextVisuallyDistinctCandidate(const Position&); |
| 128 Position previousVisuallyDistinctCandidate(const Position&); | 128 Position previousVisuallyDistinctCandidate(const Position&); |
| 129 | 129 |
| 130 Position positionBeforeContainingSpecialElement(const Position&, Node** containi
ngSpecialElement = 0); | 130 Position positionBeforeContainingSpecialElement(const Position&, Node** containi
ngSpecialElement = 0); |
| 131 Position positionAfterContainingSpecialElement(const Position&, Node** containin
gSpecialElement = 0); | 131 Position positionAfterContainingSpecialElement(const Position&, Node** containin
gSpecialElement = 0); |
| 132 | 132 |
| 133 inline Position firstPositionInOrBeforeNode(Node* node) | 133 inline Position firstPositionInOrBeforeNode(Node* node) |
| 134 { | 134 { |
| 135 if (!node) | 135 if (!node) |
| 136 return Position(); | 136 return Position(); |
| 137 return editingIgnoresContent(node) ? positionBeforeNode(node) : firstPositio
nInNode(node); | 137 return editingIgnoresContent(node) ? positionBeforeNode(*node) : firstPositi
onInNode(node); |
| 138 } | 138 } |
| 139 | 139 |
| 140 inline Position lastPositionInOrAfterNode(Node* node) | 140 inline Position lastPositionInOrAfterNode(Node* node) |
| 141 { | 141 { |
| 142 if (!node) | 142 if (!node) |
| 143 return Position(); | 143 return Position(); |
| 144 return editingIgnoresContent(node) ? positionAfterNode(node) : lastPositionI
nNode(node); | 144 return editingIgnoresContent(node) ? positionAfterNode(*node) : lastPosition
InNode(node); |
| 145 } | 145 } |
| 146 | 146 |
| 147 // comparision functions on Position | 147 // comparision functions on Position |
| 148 | 148 |
| 149 int comparePositions(const Position&, const Position&); | 149 int comparePositions(const Position&, const Position&); |
| 150 int comparePositions(const PositionWithAffinity&, const PositionWithAffinity&); | 150 int comparePositions(const PositionWithAffinity&, const PositionWithAffinity&); |
| 151 | 151 |
| 152 // boolean functions on Position | 152 // boolean functions on Position |
| 153 | 153 |
| 154 enum EUpdateStyle { UpdateStyle, DoNotUpdateStyle }; | 154 enum EUpdateStyle { UpdateStyle, DoNotUpdateStyle }; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. | 252 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. |
| 253 return character == '\'' || character == rightSingleQuotationMark || charact
er == hebrewPunctuationGershayim; | 253 return character == '\'' || character == rightSingleQuotationMark || charact
er == hebrewPunctuationGershayim; |
| 254 } | 254 } |
| 255 | 255 |
| 256 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); | 256 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); |
| 257 const String& nonBreakingSpaceString(); | 257 const String& nonBreakingSpaceString(); |
| 258 | 258 |
| 259 } | 259 } |
| 260 | 260 |
| 261 #endif | 261 #endif |
| OLD | NEW |