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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 Position trailingWhitespacePosition(const Position&, TextAffinity, WhitespacePos
itionOption = NotConsiderNonCollapsibleWhitespace); | 229 Position trailingWhitespacePosition(const Position&, TextAffinity, WhitespacePos
itionOption = NotConsiderNonCollapsibleWhitespace); |
230 unsigned numEnclosingMailBlockquotes(const Position&); | 230 unsigned numEnclosingMailBlockquotes(const Position&); |
231 void updatePositionForNodeRemoval(Position&, Node&); | 231 void updatePositionForNodeRemoval(Position&, Node&); |
232 | 232 |
233 // ------------------------------------------------------------------------- | 233 // ------------------------------------------------------------------------- |
234 // VisiblePosition | 234 // VisiblePosition |
235 // ------------------------------------------------------------------------- | 235 // ------------------------------------------------------------------------- |
236 | 236 |
237 // Functions returning VisiblePosition | 237 // Functions returning VisiblePosition |
238 | 238 |
239 VisiblePosition firstEditableVisiblePositionAfterPositionInRoot(const Position&,
ContainerNode*); | 239 CORE_EXPORT VisiblePosition firstEditableVisiblePositionAfterPositionInRoot(cons
t Position&, ContainerNode*); |
| 240 CORE_EXPORT VisiblePositionInComposedTree firstEditableVisiblePositionAfterPosit
ionInRoot(const PositionInComposedTree&, ContainerNode*); |
240 VisiblePosition lastEditableVisiblePositionBeforePositionInRoot(const Position&,
ContainerNode*); | 241 VisiblePosition lastEditableVisiblePositionBeforePositionInRoot(const Position&,
ContainerNode*); |
241 VisiblePosition visiblePositionBeforeNode(Node&); | 242 VisiblePosition visiblePositionBeforeNode(Node&); |
242 VisiblePosition visiblePositionAfterNode(Node&); | 243 VisiblePosition visiblePositionAfterNode(Node&); |
243 | 244 |
244 bool lineBreakExistsAtVisiblePosition(const VisiblePosition&); | 245 bool lineBreakExistsAtVisiblePosition(const VisiblePosition&); |
245 | 246 |
246 int comparePositions(const VisiblePosition&, const VisiblePosition&); | 247 int comparePositions(const VisiblePosition&, const VisiblePosition&); |
247 | 248 |
248 int indexForVisiblePosition(const VisiblePosition&, RefPtrWillBeRawPtr<Container
Node>& scope); | 249 int indexForVisiblePosition(const VisiblePosition&, RefPtrWillBeRawPtr<Container
Node>& scope); |
249 EphemeralRange makeRange(const VisiblePosition&, const VisiblePosition&); | 250 EphemeralRange makeRange(const VisiblePosition&, const VisiblePosition&); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. | 316 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. |
316 return character == '\'' || character == rightSingleQuotationMarkCharacter |
| character == hebrewPunctuationGershayimCharacter; | 317 return character == '\'' || character == rightSingleQuotationMarkCharacter |
| character == hebrewPunctuationGershayimCharacter; |
317 } | 318 } |
318 | 319 |
319 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); | 320 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); |
320 const String& nonBreakingSpaceString(); | 321 const String& nonBreakingSpaceString(); |
321 | 322 |
322 } | 323 } |
323 | 324 |
324 #endif | 325 #endif |
OLD | NEW |