| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 bool isBlockFlowElement(const Node&); | 121 bool isBlockFlowElement(const Node&); |
| 122 TextDirection directionOfEnclosingBlock(const Position&); | 122 TextDirection directionOfEnclosingBlock(const Position&); |
| 123 | 123 |
| 124 // ------------------------------------------------------------------------- | 124 // ------------------------------------------------------------------------- |
| 125 // Position | 125 // Position |
| 126 // ------------------------------------------------------------------------- | 126 // ------------------------------------------------------------------------- |
| 127 | 127 |
| 128 // Functions returning Position | 128 // Functions returning Position |
| 129 | 129 |
| 130 Position nextCandidate(const Position&); | 130 Position nextCandidate(const Position&); |
| 131 PositionInComposedTree nextCandidate(const PositionInComposedTree&); |
| 131 Position previousCandidate(const Position&); | 132 Position previousCandidate(const Position&); |
| 133 PositionInComposedTree previousCandidate(const PositionInComposedTree&); |
| 132 | 134 |
| 133 Position nextVisuallyDistinctCandidate(const Position&); | 135 Position nextVisuallyDistinctCandidate(const Position&); |
| 134 Position previousVisuallyDistinctCandidate(const Position&); | 136 Position previousVisuallyDistinctCandidate(const Position&); |
| 135 | 137 |
| 136 Position positionBeforeContainingSpecialElement(const Position&, HTMLElement** c
ontainingSpecialElement = nullptr); | 138 Position positionBeforeContainingSpecialElement(const Position&, HTMLElement** c
ontainingSpecialElement = nullptr); |
| 137 Position positionAfterContainingSpecialElement(const Position&, HTMLElement** co
ntainingSpecialElement = nullptr); | 139 Position positionAfterContainingSpecialElement(const Position&, HTMLElement** co
ntainingSpecialElement = nullptr); |
| 138 | 140 |
| 139 inline Position firstPositionInOrBeforeNode(Node* node) | 141 inline Position firstPositionInOrBeforeNode(Node* node) |
| 140 { | 142 { |
| 141 return Position::firstPositionInOrBeforeNode(node); | 143 return Position::firstPositionInOrBeforeNode(node); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 // Element | 213 // Element |
| 212 // ------------------------------------------------------------------------- | 214 // ------------------------------------------------------------------------- |
| 213 | 215 |
| 214 // Functions returning Element | 216 // Functions returning Element |
| 215 | 217 |
| 216 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&); | 218 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&); |
| 217 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&, const St
ring& tabText); | 219 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&, const St
ring& tabText); |
| 218 PassRefPtrWillBeRawPtr<HTMLBRElement> createBlockPlaceholderElement(Document&); | 220 PassRefPtrWillBeRawPtr<HTMLBRElement> createBlockPlaceholderElement(Document&); |
| 219 | 221 |
| 220 Element* editableRootForPosition(const Position&, EditableType = ContentIsEditab
le); | 222 Element* editableRootForPosition(const Position&, EditableType = ContentIsEditab
le); |
| 223 Element* editableRootForPosition(const PositionInComposedTree&, EditableType = C
ontentIsEditable); |
| 221 Element* unsplittableElementForPosition(const Position&); | 224 Element* unsplittableElementForPosition(const Position&); |
| 222 | 225 |
| 223 // Boolean functions on Element | 226 // Boolean functions on Element |
| 224 | 227 |
| 225 bool canMergeLists(Element* firstList, Element* secondList); | 228 bool canMergeLists(Element* firstList, Element* secondList); |
| 226 | 229 |
| 227 // ------------------------------------------------------------------------- | 230 // ------------------------------------------------------------------------- |
| 228 // VisibleSelection | 231 // VisibleSelection |
| 229 // ------------------------------------------------------------------------- | 232 // ------------------------------------------------------------------------- |
| 230 | 233 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 253 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. | 256 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. |
| 254 return character == '\'' || character == rightSingleQuotationMarkCharacter |
| character == hebrewPunctuationGershayimCharacter; | 257 return character == '\'' || character == rightSingleQuotationMarkCharacter |
| character == hebrewPunctuationGershayimCharacter; |
| 255 } | 258 } |
| 256 | 259 |
| 257 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); | 260 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); |
| 258 const String& nonBreakingSpaceString(); | 261 const String& nonBreakingSpaceString(); |
| 259 | 262 |
| 260 } | 263 } |
| 261 | 264 |
| 262 #endif | 265 #endif |
| OLD | NEW |