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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 VisiblePosition lastEditableVisiblePositionBeforePositionInRoot(const Position&,
ContainerNode*); | 240 VisiblePosition lastEditableVisiblePositionBeforePositionInRoot(const Position&,
ContainerNode*); |
241 VisiblePosition visiblePositionBeforeNode(Node&); | 241 VisiblePosition visiblePositionBeforeNode(Node&); |
242 VisiblePosition visiblePositionAfterNode(Node&); | 242 VisiblePosition visiblePositionAfterNode(Node&); |
243 | 243 |
244 bool lineBreakExistsAtVisiblePosition(const VisiblePosition&); | 244 bool lineBreakExistsAtVisiblePosition(const VisiblePosition&); |
245 | 245 |
246 int comparePositions(const VisiblePosition&, const VisiblePosition&); | 246 int comparePositions(const VisiblePosition&, const VisiblePosition&); |
247 | 247 |
248 int indexForVisiblePosition(const VisiblePosition&, RefPtrWillBeRawPtr<Container
Node>& scope); | 248 int indexForVisiblePosition(const VisiblePosition&, RefPtrWillBeRawPtr<Container
Node>& scope); |
249 EphemeralRange makeRange(const VisiblePosition&, const VisiblePosition&); | 249 EphemeralRange makeRange(const VisiblePosition&, const VisiblePosition&); |
| 250 EphemeralRange normalizeRange(const EphemeralRange&); |
| 251 EphemeralRangeInComposedTree normalizeRange(const EphemeralRangeInComposedTree&)
; |
250 VisiblePosition visiblePositionForIndex(int index, ContainerNode* scope); | 252 VisiblePosition visiblePositionForIndex(int index, ContainerNode* scope); |
251 | 253 |
252 // ------------------------------------------------------------------------- | 254 // ------------------------------------------------------------------------- |
253 // HTMLElement | 255 // HTMLElement |
254 // ------------------------------------------------------------------------- | 256 // ------------------------------------------------------------------------- |
255 | 257 |
256 // Functions returning HTMLElement | 258 // Functions returning HTMLElement |
257 | 259 |
258 PassRefPtrWillBeRawPtr<HTMLElement> createDefaultParagraphElement(Document&); | 260 PassRefPtrWillBeRawPtr<HTMLElement> createDefaultParagraphElement(Document&); |
259 PassRefPtrWillBeRawPtr<HTMLBRElement> createBreakElement(Document&); | 261 PassRefPtrWillBeRawPtr<HTMLBRElement> createBreakElement(Document&); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. | 315 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. |
314 return character == '\'' || character == rightSingleQuotationMarkCharacter |
| character == hebrewPunctuationGershayimCharacter; | 316 return character == '\'' || character == rightSingleQuotationMarkCharacter |
| character == hebrewPunctuationGershayimCharacter; |
315 } | 317 } |
316 | 318 |
317 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); | 319 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); |
318 const String& nonBreakingSpaceString(); | 320 const String& nonBreakingSpaceString(); |
319 | 321 |
320 } | 322 } |
321 | 323 |
322 #endif | 324 #endif |
OLD | NEW |