| 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 VisiblePosition firstEditablePositionAfterPositionInRoot(const Position&, Node*)
; | 176 VisiblePosition firstEditablePositionAfterPositionInRoot(const Position&, Node*)
; |
| 177 VisiblePosition lastEditablePositionBeforePositionInRoot(const Position&, Node*)
; | 177 VisiblePosition lastEditablePositionBeforePositionInRoot(const Position&, Node*)
; |
| 178 VisiblePosition visiblePositionBeforeNode(Node&); | 178 VisiblePosition visiblePositionBeforeNode(Node&); |
| 179 VisiblePosition visiblePositionAfterNode(Node&); | 179 VisiblePosition visiblePositionAfterNode(Node&); |
| 180 | 180 |
| 181 bool lineBreakExistsAtVisiblePosition(const VisiblePosition&); | 181 bool lineBreakExistsAtVisiblePosition(const VisiblePosition&); |
| 182 | 182 |
| 183 int comparePositions(const VisiblePosition&, const VisiblePosition&); | 183 int comparePositions(const VisiblePosition&, const VisiblePosition&); |
| 184 | 184 |
| 185 int indexForVisiblePosition(const VisiblePosition&, RefPtr<ContainerNode>& scope
); | 185 int indexForVisiblePosition(const VisiblePosition&, RefPtrWillBeRawPtr<Container
Node>& scope); |
| 186 VisiblePosition visiblePositionForIndex(int index, ContainerNode* scope); | 186 VisiblePosition visiblePositionForIndex(int index, ContainerNode* scope); |
| 187 | 187 |
| 188 // ------------------------------------------------------------------------- | 188 // ------------------------------------------------------------------------- |
| 189 // Range | 189 // Range |
| 190 // ------------------------------------------------------------------------- | 190 // ------------------------------------------------------------------------- |
| 191 | 191 |
| 192 // Functions returning Range | 192 // Functions returning Range |
| 193 | 193 |
| 194 PassRefPtrWillBeRawPtr<Range> createRange(Document&, const VisiblePosition& star
t, const VisiblePosition& end, ExceptionState&); | 194 PassRefPtrWillBeRawPtr<Range> createRange(Document&, const VisiblePosition& star
t, const VisiblePosition& end, ExceptionState&); |
| 195 | 195 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 211 HTMLElement* outermostEnclosingList(Node*, Node* rootList = 0); | 211 HTMLElement* outermostEnclosingList(Node*, Node* rootList = 0); |
| 212 Node* enclosingListChild(Node*); | 212 Node* enclosingListChild(Node*); |
| 213 | 213 |
| 214 // ------------------------------------------------------------------------- | 214 // ------------------------------------------------------------------------- |
| 215 // Element | 215 // Element |
| 216 // ------------------------------------------------------------------------- | 216 // ------------------------------------------------------------------------- |
| 217 | 217 |
| 218 // Functions returning Element | 218 // Functions returning Element |
| 219 | 219 |
| 220 PassRefPtrWillBeRawPtr<Element> createTabSpanElement(Document&); | 220 PassRefPtrWillBeRawPtr<Element> createTabSpanElement(Document&); |
| 221 PassRefPtrWillBeRawPtr<Element> createTabSpanElement(Document&, PassRefPtr<Node>
tabTextNode); | 221 PassRefPtrWillBeRawPtr<Element> createTabSpanElement(Document&, PassRefPtrWillBe
RawPtr<Node> tabTextNode); |
| 222 PassRefPtrWillBeRawPtr<Element> createTabSpanElement(Document&, const String& ta
bText); | 222 PassRefPtrWillBeRawPtr<Element> createTabSpanElement(Document&, const String& ta
bText); |
| 223 PassRefPtrWillBeRawPtr<Element> createBlockPlaceholderElement(Document&); | 223 PassRefPtrWillBeRawPtr<Element> createBlockPlaceholderElement(Document&); |
| 224 | 224 |
| 225 Element* editableRootForPosition(const Position&, EditableType = ContentIsEditab
le); | 225 Element* editableRootForPosition(const Position&, EditableType = ContentIsEditab
le); |
| 226 Element* unsplittableElementForPosition(const Position&); | 226 Element* unsplittableElementForPosition(const Position&); |
| 227 | 227 |
| 228 // Boolean functions on Element | 228 // Boolean functions on Element |
| 229 | 229 |
| 230 bool canMergeLists(Element* firstList, Element* secondList); | 230 bool canMergeLists(Element* firstList, Element* secondList); |
| 231 | 231 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 258 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. | 258 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. |
| 259 return character == '\'' || character == rightSingleQuotationMark || charact
er == hebrewPunctuationGershayim; | 259 return character == '\'' || character == rightSingleQuotationMark || charact
er == hebrewPunctuationGershayim; |
| 260 } | 260 } |
| 261 | 261 |
| 262 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); | 262 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); |
| 263 const String& nonBreakingSpaceString(); | 263 const String& nonBreakingSpaceString(); |
| 264 | 264 |
| 265 } | 265 } |
| 266 | 266 |
| 267 #endif | 267 #endif |
| OLD | NEW |