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

Side by Side Diff: third_party/WebKit/Source/core/editing/EditingUtilities.h

Issue 1864963002: Rename unchecked functions to appropriate name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo /nextGraphmeBoundaryOf/nextGraphemeBoundaryOf/ Created 4 years, 8 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 | « no previous file | third_party/WebKit/Source/core/editing/EditingUtilities.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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 // Move up or down the DOM by one position. 207 // Move up or down the DOM by one position.
208 // Offsets are computed using layout text for nodes that have layoutObjects - 208 // Offsets are computed using layout text for nodes that have layoutObjects -
209 // but note that even when using composed characters, the result may be inside 209 // but note that even when using composed characters, the result may be inside
210 // a single user-visible character if a ligature is formed. 210 // a single user-visible character if a ligature is formed.
211 CORE_EXPORT Position previousPositionOf(const Position&, PositionMoveType); 211 CORE_EXPORT Position previousPositionOf(const Position&, PositionMoveType);
212 CORE_EXPORT Position nextPositionOf(const Position&, PositionMoveType); 212 CORE_EXPORT Position nextPositionOf(const Position&, PositionMoveType);
213 CORE_EXPORT PositionInFlatTree previousPositionOf(const PositionInFlatTree&, Pos itionMoveType); 213 CORE_EXPORT PositionInFlatTree previousPositionOf(const PositionInFlatTree&, Pos itionMoveType);
214 CORE_EXPORT PositionInFlatTree nextPositionOf(const PositionInFlatTree&, Positio nMoveType); 214 CORE_EXPORT PositionInFlatTree nextPositionOf(const PositionInFlatTree&, Positio nMoveType);
215 215
216 CORE_EXPORT int uncheckedPreviousOffset(const Node*, int current); 216 CORE_EXPORT int previousGraphemeBoundaryOf(const Node*, int current);
217 CORE_EXPORT int uncheckedNextOffset(const Node*, int current); 217 CORE_EXPORT int nextGraphemeBoundaryOf(const Node*, int current);
218 218
219 // comparision functions on Position 219 // comparision functions on Position
220 220
221 // |disconnected| is optional output parameter having true if specified 221 // |disconnected| is optional output parameter having true if specified
222 // positions don't have common ancestor. 222 // positions don't have common ancestor.
223 int comparePositionsInDOMTree(Node* containerA, int offsetA, Node* containerB, i nt offsetB, bool* disconnected = nullptr); 223 int comparePositionsInDOMTree(Node* containerA, int offsetA, Node* containerB, i nt offsetB, bool* disconnected = nullptr);
224 int comparePositionsInFlatTree(Node* containerA, int offsetA, Node* containerB, int offsetB, bool* disconnected = nullptr); 224 int comparePositionsInFlatTree(Node* containerA, int offsetA, Node* containerB, int offsetB, bool* disconnected = nullptr);
225 int comparePositions(const Position&, const Position&); 225 int comparePositions(const Position&, const Position&);
226 int comparePositions(const PositionWithAffinity&, const PositionWithAffinity&); 226 int comparePositions(const PositionWithAffinity&, const PositionWithAffinity&);
227 227
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us. 345 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us.
346 return character == '\'' || character == rightSingleQuotationMarkCharacter | | character == hebrewPunctuationGershayimCharacter; 346 return character == '\'' || character == rightSingleQuotationMarkCharacter | | character == hebrewPunctuationGershayimCharacter;
347 } 347 }
348 348
349 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph); 349 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph);
350 const String& nonBreakingSpaceString(); 350 const String& nonBreakingSpaceString();
351 351
352 } // namespace blink 352 } // namespace blink
353 353
354 #endif 354 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditingUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698