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 10 matching lines...) Expand all Loading... |
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef EditingUtilities_h | 26 #ifndef EditingUtilities_h |
27 #define EditingUtilities_h | 27 #define EditingUtilities_h |
28 | 28 |
29 #include "core/CoreExport.h" | 29 #include "core/CoreExport.h" |
30 #include "core/editing/EditingBoundary.h" | 30 #include "core/editing/EditingBoundary.h" |
| 31 #include "core/editing/EphemeralRange.h" |
31 #include "core/editing/Position.h" | 32 #include "core/editing/Position.h" |
32 #include "core/editing/PositionWithAffinity.h" | 33 #include "core/editing/PositionWithAffinity.h" |
33 #include "core/editing/VisiblePosition.h" | 34 #include "core/editing/VisiblePosition.h" |
34 #include "core/editing/VisibleSelection.h" | 35 #include "core/editing/VisibleSelection.h" |
35 #include "platform/text/TextDirection.h" | 36 #include "platform/text/TextDirection.h" |
36 #include "wtf/Forward.h" | 37 #include "wtf/Forward.h" |
37 #include "wtf/text/CharacterNames.h" | 38 #include "wtf/text/CharacterNames.h" |
38 | 39 |
39 namespace blink { | 40 namespace blink { |
40 | 41 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 VisiblePosition firstEditableVisiblePositionAfterPositionInRoot(const Position&,
ContainerNode*); | 239 VisiblePosition firstEditableVisiblePositionAfterPositionInRoot(const Position&,
ContainerNode*); |
239 VisiblePosition lastEditableVisiblePositionBeforePositionInRoot(const Position&,
ContainerNode*); | 240 VisiblePosition lastEditableVisiblePositionBeforePositionInRoot(const Position&,
ContainerNode*); |
240 VisiblePosition visiblePositionBeforeNode(Node&); | 241 VisiblePosition visiblePositionBeforeNode(Node&); |
241 VisiblePosition visiblePositionAfterNode(Node&); | 242 VisiblePosition visiblePositionAfterNode(Node&); |
242 | 243 |
243 bool lineBreakExistsAtVisiblePosition(const VisiblePosition&); | 244 bool lineBreakExistsAtVisiblePosition(const VisiblePosition&); |
244 | 245 |
245 int comparePositions(const VisiblePosition&, const VisiblePosition&); | 246 int comparePositions(const VisiblePosition&, const VisiblePosition&); |
246 | 247 |
247 int indexForVisiblePosition(const VisiblePosition&, RefPtrWillBeRawPtr<Container
Node>& scope); | 248 int indexForVisiblePosition(const VisiblePosition&, RefPtrWillBeRawPtr<Container
Node>& scope); |
| 249 EphemeralRange makeRange(const VisiblePosition&, const VisiblePosition&); |
248 VisiblePosition visiblePositionForIndex(int index, ContainerNode* scope); | 250 VisiblePosition visiblePositionForIndex(int index, ContainerNode* scope); |
249 | 251 |
250 // ------------------------------------------------------------------------- | 252 // ------------------------------------------------------------------------- |
251 // HTMLElement | 253 // HTMLElement |
252 // ------------------------------------------------------------------------- | 254 // ------------------------------------------------------------------------- |
253 | 255 |
254 // Functions returning HTMLElement | 256 // Functions returning HTMLElement |
255 | 257 |
256 PassRefPtrWillBeRawPtr<HTMLElement> createDefaultParagraphElement(Document&); | 258 PassRefPtrWillBeRawPtr<HTMLElement> createDefaultParagraphElement(Document&); |
257 PassRefPtrWillBeRawPtr<HTMLBRElement> createBreakElement(Document&); | 259 PassRefPtrWillBeRawPtr<HTMLBRElement> createBreakElement(Document&); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. | 312 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. |
311 return character == '\'' || character == rightSingleQuotationMarkCharacter |
| character == hebrewPunctuationGershayimCharacter; | 313 return character == '\'' || character == rightSingleQuotationMarkCharacter |
| character == hebrewPunctuationGershayimCharacter; |
312 } | 314 } |
313 | 315 |
314 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); | 316 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); |
315 const String& nonBreakingSpaceString(); | 317 const String& nonBreakingSpaceString(); |
316 | 318 |
317 } | 319 } |
318 | 320 |
319 #endif | 321 #endif |
OLD | NEW |