Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(755)

Side by Side Diff: Source/core/editing/htmlediting.h

Issue 434393003: Use tighter typing in editing: VisiblePosition & VisibleSelection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/editing/VisibleUnits.cpp ('k') | Source/core/editing/htmlediting.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 Element* enclosingBlock(Node*, EditingBoundaryCrossingRule = CannotCrossEditingB oundary); 69 Element* enclosingBlock(Node*, EditingBoundaryCrossingRule = CannotCrossEditingB oundary);
70 Element* enclosingBlockFlowElement(Node&); // Deprecated, use enclosingBlock ins tead. 70 Element* enclosingBlockFlowElement(Node&); // Deprecated, use enclosingBlock ins tead.
71 bool inSameContainingBlockFlowElement(Node*, Node*); 71 bool inSameContainingBlockFlowElement(Node*, Node*);
72 Element* enclosingTableCell(const Position&); 72 Element* enclosingTableCell(const Position&);
73 Node* enclosingEmptyListItem(const VisiblePosition&); 73 Node* enclosingEmptyListItem(const VisiblePosition&);
74 Element* enclosingAnchorElement(const Position&); 74 Element* enclosingAnchorElement(const Position&);
75 Element* enclosingElementWithTag(const Position&, const QualifiedName&); 75 Element* enclosingElementWithTag(const Position&, const QualifiedName&);
76 Node* enclosingNodeOfType(const Position&, bool (*nodeIsOfType)(const Node*), Ed itingBoundaryCrossingRule = CannotCrossEditingBoundary); 76 Node* enclosingNodeOfType(const Position&, bool (*nodeIsOfType)(const Node*), Ed itingBoundaryCrossingRule = CannotCrossEditingBoundary);
77 77
78 HTMLSpanElement* tabSpanElement(const Node*); 78 HTMLSpanElement* tabSpanElement(const Node*);
79 Node* isLastPositionBeforeTable(const VisiblePosition&); 79 Element* isLastPositionBeforeTable(const VisiblePosition&);
80 Node* isFirstPositionAfterTable(const VisiblePosition&); 80 Element* isFirstPositionAfterTable(const VisiblePosition&);
81 81
82 // offset functions on Node 82 // offset functions on Node
83 83
84 int lastOffsetForEditing(const Node*); 84 int lastOffsetForEditing(const Node*);
85 int caretMinOffset(const Node*); 85 int caretMinOffset(const Node*);
86 int caretMaxOffset(const Node*); 86 int caretMaxOffset(const Node*);
87 87
88 // boolean functions on Node 88 // boolean functions on Node
89 89
90 // FIXME: editingIgnoresContent, canHaveChildrenForEditing, and isAtomicNode 90 // FIXME: editingIgnoresContent, canHaveChildrenForEditing, and isAtomicNode
(...skipping 11 matching lines...) Expand all
102 return !node->isTextNode() && node->canContainRangeEndPoint(); 102 return !node->isTextNode() && node->canContainRangeEndPoint();
103 } 103 }
104 104
105 bool isAtomicNode(const Node*); 105 bool isAtomicNode(const Node*);
106 bool isBlock(const Node*); 106 bool isBlock(const Node*);
107 bool isInline(const Node*); 107 bool isInline(const Node*);
108 bool isSpecialHTMLElement(const Node*); 108 bool isSpecialHTMLElement(const Node*);
109 bool isTabHTMLSpanElement(const Node*); 109 bool isTabHTMLSpanElement(const Node*);
110 bool isTabHTMLSpanElementTextNode(const Node*); 110 bool isTabHTMLSpanElementTextNode(const Node*);
111 bool isMailHTMLBlockquoteElement(const Node*); 111 bool isMailHTMLBlockquoteElement(const Node*);
112 bool isRenderedTable(const Node*);
113 bool isRenderedTableElement(const Node*); 112 bool isRenderedTableElement(const Node*);
113 bool isRenderedHTMLTableElement(const Node*);
114 bool isTableCell(const Node*); 114 bool isTableCell(const Node*);
115 bool isEmptyTableCell(const Node*); 115 bool isEmptyTableCell(const Node*);
116 bool isTableStructureNode(const Node*); 116 bool isTableStructureNode(const Node*);
117 bool isHTMLListElement(Node*); 117 bool isHTMLListElement(Node*);
118 bool isListItem(const Node*); 118 bool isListItem(const Node*);
119 bool isNodeRendered(const Node*); 119 bool isNodeRendered(const Node*);
120 bool isNodeVisiblyContainedWithin(Node&, const Range&); 120 bool isNodeVisiblyContainedWithin(Node&, const Range&);
121 bool isRenderedAsNonInlineTableImageOrHR(const Node*); 121 bool isRenderedAsNonInlineTableImageOrHR(const Node*);
122 bool areIdenticalElements(const Node*, const Node*); 122 bool areIdenticalElements(const Node*, const Node*);
123 bool isNonTableCellHTMLBlockElement(const Node*); 123 bool isNonTableCellHTMLBlockElement(const Node*);
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us. 272 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us.
273 return character == '\'' || character == rightSingleQuotationMark || charact er == hebrewPunctuationGershayim; 273 return character == '\'' || character == rightSingleQuotationMark || charact er == hebrewPunctuationGershayim;
274 } 274 }
275 275
276 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph); 276 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph);
277 const String& nonBreakingSpaceString(); 277 const String& nonBreakingSpaceString();
278 278
279 } 279 }
280 280
281 #endif 281 #endif
OLDNEW
« no previous file with comments | « Source/core/editing/VisibleUnits.cpp ('k') | Source/core/editing/htmlediting.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698