| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 inline Position lastPositionInOrAfterNode(Node* node) | 141 inline Position lastPositionInOrAfterNode(Node* node) |
| 142 { | 142 { |
| 143 if (!node) | 143 if (!node) |
| 144 return Position(); | 144 return Position(); |
| 145 return editingIgnoresContent(node) ? positionAfterNode(node) : lastPositionI
nNode(node); | 145 return editingIgnoresContent(node) ? positionAfterNode(node) : lastPositionI
nNode(node); |
| 146 } | 146 } |
| 147 | 147 |
| 148 // comparision functions on Position | 148 // comparision functions on Position |
| 149 | 149 |
| 150 int comparePositions(const Position&, const Position&); | 150 int comparePositions(const Position&, const Position&); |
| 151 int comparePositions(const PositionWithAffinity&, const PositionWithAffinity&); |
| 151 | 152 |
| 152 // boolean functions on Position | 153 // boolean functions on Position |
| 153 | 154 |
| 154 enum EUpdateStyle { UpdateStyle, DoNotUpdateStyle }; | 155 enum EUpdateStyle { UpdateStyle, DoNotUpdateStyle }; |
| 155 bool isEditablePosition(const Position&, EditableType = ContentIsEditable, EUpda
teStyle = UpdateStyle); | 156 bool isEditablePosition(const Position&, EditableType = ContentIsEditable, EUpda
teStyle = UpdateStyle); |
| 156 bool isRichlyEditablePosition(const Position&, EditableType = ContentIsEditable)
; | 157 bool isRichlyEditablePosition(const Position&, EditableType = ContentIsEditable)
; |
| 157 bool lineBreakExistsAtPosition(const Position&); | 158 bool lineBreakExistsAtPosition(const Position&); |
| 158 bool isVisiblyAdjacent(const Position& first, const Position& second); | 159 bool isVisiblyAdjacent(const Position& first, const Position& second); |
| 159 bool isAtUnsplittableElement(const Position&); | 160 bool isAtUnsplittableElement(const Position&); |
| 160 | 161 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. | 249 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. |
| 249 return character == '\'' || character == rightSingleQuotationMark || charact
er == hebrewPunctuationGershayim; | 250 return character == '\'' || character == rightSingleQuotationMark || charact
er == hebrewPunctuationGershayim; |
| 250 } | 251 } |
| 251 | 252 |
| 252 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); | 253 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); |
| 253 const String& nonBreakingSpaceString(); | 254 const String& nonBreakingSpaceString(); |
| 254 | 255 |
| 255 } | 256 } |
| 256 | 257 |
| 257 #endif | 258 #endif |
| OLD | NEW |