| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 173 |
| 174 VisiblePosition firstEditablePositionAfterPositionInRoot(const Position&, Node*)
; | 174 VisiblePosition firstEditablePositionAfterPositionInRoot(const Position&, Node*)
; |
| 175 VisiblePosition lastEditablePositionBeforePositionInRoot(const Position&, Node*)
; | 175 VisiblePosition lastEditablePositionBeforePositionInRoot(const Position&, Node*)
; |
| 176 VisiblePosition visiblePositionBeforeNode(Node*); | 176 VisiblePosition visiblePositionBeforeNode(Node*); |
| 177 VisiblePosition visiblePositionAfterNode(Node*); | 177 VisiblePosition visiblePositionAfterNode(Node*); |
| 178 | 178 |
| 179 bool lineBreakExistsAtVisiblePosition(const VisiblePosition&); | 179 bool lineBreakExistsAtVisiblePosition(const VisiblePosition&); |
| 180 | 180 |
| 181 int comparePositions(const VisiblePosition&, const VisiblePosition&); | 181 int comparePositions(const VisiblePosition&, const VisiblePosition&); |
| 182 | 182 |
| 183 int indexForVisiblePosition(const VisiblePosition&, Element **scope); | 183 int indexForVisiblePosition(const VisiblePosition&, RefPtr<Element>& scope); |
| 184 VisiblePosition visiblePositionForIndex(int index, Element *scope); | 184 VisiblePosition visiblePositionForIndex(int index, Element *scope); |
| 185 | 185 |
| 186 // ------------------------------------------------------------------------- | 186 // ------------------------------------------------------------------------- |
| 187 // Range | 187 // Range |
| 188 // ------------------------------------------------------------------------- | 188 // ------------------------------------------------------------------------- |
| 189 | 189 |
| 190 // Functions returning Range | 190 // Functions returning Range |
| 191 | 191 |
| 192 PassRefPtr<Range> createRange(PassRefPtr<Document>, const VisiblePosition& start
, const VisiblePosition& end, ExceptionCode&); | 192 PassRefPtr<Range> createRange(PassRefPtr<Document>, const VisiblePosition& start
, const VisiblePosition& end, ExceptionCode&); |
| 193 PassRefPtr<Range> extendRangeToWrappingNodes(PassRefPtr<Range> rangeToExtend, co
nst Range* maximumRange, const Node* rootNode); | 193 PassRefPtr<Range> extendRangeToWrappingNodes(PassRefPtr<Range> rangeToExtend, co
nst Range* maximumRange, const Node* rootNode); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. | 253 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. |
| 254 return character == '\'' || character == rightSingleQuotationMark || charact
er == hebrewPunctuationGershayim; | 254 return character == '\'' || character == rightSingleQuotationMark || charact
er == hebrewPunctuationGershayim; |
| 255 } | 255 } |
| 256 | 256 |
| 257 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); | 257 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); |
| 258 const String& nonBreakingSpaceString(); | 258 const String& nonBreakingSpaceString(); |
| 259 | 259 |
| 260 } | 260 } |
| 261 | 261 |
| 262 #endif | 262 #endif |
| OLD | NEW |