| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 return editingIgnoresContent(node) ? positionBeforeNode(node) : firstPositio
nInNode(node); | 137 return editingIgnoresContent(node) ? positionBeforeNode(node) : firstPositio
nInNode(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) : lastPositionI
nNode(node); |
| 145 } | 145 } |
| 146 | 146 |
| 147 Position lastEditablePositionBeforePositionInRoot(const Position&, Node*); |
| 148 |
| 147 // comparision functions on Position | 149 // comparision functions on Position |
| 148 | 150 |
| 149 int comparePositions(const Position&, const Position&); | 151 int comparePositions(const Position&, const Position&); |
| 150 int comparePositions(const PositionWithAffinity&, const PositionWithAffinity&); | 152 int comparePositions(const PositionWithAffinity&, const PositionWithAffinity&); |
| 151 | 153 |
| 152 // boolean functions on Position | 154 // boolean functions on Position |
| 153 | 155 |
| 154 enum EUpdateStyle { UpdateStyle, DoNotUpdateStyle }; | 156 enum EUpdateStyle { UpdateStyle, DoNotUpdateStyle }; |
| 155 // FIXME: Both isEditablePosition and isRichlyEditablePosition rely on up-to-dat
e | 157 // FIXME: Both isEditablePosition and isRichlyEditablePosition rely on up-to-dat
e |
| 156 // style to give proper results. They shouldn't update style by default, but | 158 // style to give proper results. They shouldn't update style by default, but |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. | 260 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. |
| 259 return character == '\'' || character == rightSingleQuotationMark || charact
er == hebrewPunctuationGershayim; | 261 return character == '\'' || character == rightSingleQuotationMark || charact
er == hebrewPunctuationGershayim; |
| 260 } | 262 } |
| 261 | 263 |
| 262 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); | 264 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); |
| 263 const String& nonBreakingSpaceString(); | 265 const String& nonBreakingSpaceString(); |
| 264 | 266 |
| 265 } | 267 } |
| 266 | 268 |
| 267 #endif | 269 #endif |
| OLD | NEW |