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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // ------------------------------------------------------------------------- | 61 // ------------------------------------------------------------------------- |
62 | 62 |
63 // Functions returning Node | 63 // Functions returning Node |
64 | 64 |
65 CORE_EXPORT ContainerNode* highestEditableRoot(const Position&, EditableType = C
ontentIsEditable); | 65 CORE_EXPORT ContainerNode* highestEditableRoot(const Position&, EditableType = C
ontentIsEditable); |
66 ContainerNode* highestEditableRoot(const PositionInComposedTree&, EditableType =
ContentIsEditable); | 66 ContainerNode* highestEditableRoot(const PositionInComposedTree&, EditableType =
ContentIsEditable); |
67 | 67 |
68 Node* highestEnclosingNodeOfType(const Position&, bool (*nodeIsOfType)(const Nod
e*), | 68 Node* highestEnclosingNodeOfType(const Position&, bool (*nodeIsOfType)(const Nod
e*), |
69 EditingBoundaryCrossingRule = CannotCrossEditingBoundary, Node* stayWithin =
nullptr); | 69 EditingBoundaryCrossingRule = CannotCrossEditingBoundary, Node* stayWithin =
nullptr); |
70 Node* highestNodeToRemoveInPruning(Node*, Node* excludeNode = nullptr); | 70 Node* highestNodeToRemoveInPruning(Node*, Node* excludeNode = nullptr); |
71 Element* lowestEditableAncestor(Node*); | |
72 | 71 |
73 Element* enclosingBlock(Node*, EditingBoundaryCrossingRule = CannotCrossEditingB
oundary); | 72 Element* enclosingBlock(Node*, EditingBoundaryCrossingRule = CannotCrossEditingB
oundary); |
74 Element* enclosingBlock(const Position&, EditingBoundaryCrossingRule); | 73 Element* enclosingBlock(const Position&, EditingBoundaryCrossingRule); |
75 Element* enclosingBlockFlowElement(Node&); // Deprecated, use enclosingBlock ins
tead. | 74 Element* enclosingBlockFlowElement(Node&); // Deprecated, use enclosingBlock ins
tead. |
76 bool inSameContainingBlockFlowElement(Node*, Node*); | 75 bool inSameContainingBlockFlowElement(Node*, Node*); |
77 Element* enclosingTableCell(const Position&); | 76 Element* enclosingTableCell(const Position&); |
78 Element* associatedElementOf(const Position&); | 77 Element* associatedElementOf(const Position&); |
79 Node* enclosingEmptyListItem(const VisiblePosition&); | 78 Node* enclosingEmptyListItem(const VisiblePosition&); |
80 Element* enclosingAnchorElement(const Position&); | 79 Element* enclosingAnchorElement(const Position&); |
81 Element* enclosingElementWithTag(const Position&, const QualifiedName&); | 80 Element* enclosingElementWithTag(const Position&, const QualifiedName&); |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. | 308 // FIXME: this is required until 6853027 is fixed and text checking can do t
his for us. |
310 return character == '\'' || character == rightSingleQuotationMarkCharacter |
| character == hebrewPunctuationGershayimCharacter; | 309 return character == '\'' || character == rightSingleQuotationMarkCharacter |
| character == hebrewPunctuationGershayimCharacter; |
311 } | 310 } |
312 | 311 |
313 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); | 312 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap
h, bool endIsEndOfParagraph); |
314 const String& nonBreakingSpaceString(); | 313 const String& nonBreakingSpaceString(); |
315 | 314 |
316 } | 315 } |
317 | 316 |
318 #endif | 317 #endif |
OLD | NEW |