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