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

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

Issue 340013002: Rename {first,last}EditablePosition{After,Before}Position... to denote them returned VisiblePosition (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/core/editing/VisibleSelection.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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 166
167 unsigned numEnclosingMailBlockquotes(const Position&); 167 unsigned numEnclosingMailBlockquotes(const Position&);
168 void updatePositionForNodeRemoval(Position&, Node&); 168 void updatePositionForNodeRemoval(Position&, Node&);
169 169
170 // ------------------------------------------------------------------------- 170 // -------------------------------------------------------------------------
171 // VisiblePosition 171 // VisiblePosition
172 // ------------------------------------------------------------------------- 172 // -------------------------------------------------------------------------
173 173
174 // Functions returning VisiblePosition 174 // Functions returning VisiblePosition
175 175
176 VisiblePosition firstEditablePositionAfterPositionInRoot(const Position&, Node*) ; 176 VisiblePosition firstEditableVisiblePositionAfterPositionInRoot(const Position&, Node*);
177 VisiblePosition lastEditablePositionBeforePositionInRoot(const Position&, Node*) ; 177 VisiblePosition lastEditableVisiblePositionBeforePositionInRoot(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&, RefPtrWillBeRawPtr<Container Node>& 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
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « Source/core/editing/VisibleSelection.cpp ('k') | Source/core/editing/htmlediting.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698