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

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

Issue 1316063002: Introduce firstEditablePositionAfterPositionInRoot() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-26T17:01:44 Created 5 years, 3 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
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 inline Position firstPositionInOrBeforeNode(Node* node) 174 inline Position firstPositionInOrBeforeNode(Node* node)
175 { 175 {
176 return Position::firstPositionInOrBeforeNode(node); 176 return Position::firstPositionInOrBeforeNode(node);
177 } 177 }
178 178
179 inline Position lastPositionInOrAfterNode(Node* node) 179 inline Position lastPositionInOrAfterNode(Node* node)
180 { 180 {
181 return Position::lastPositionInOrAfterNode(node); 181 return Position::lastPositionInOrAfterNode(node);
182 } 182 }
183 183
184 CORE_EXPORT Position firstEditablePositionAfterPositionInRoot(const Position&, N ode*);
184 Position lastEditablePositionBeforePositionInRoot(const Position&, Node*); 185 Position lastEditablePositionBeforePositionInRoot(const Position&, Node*);
186 CORE_EXPORT PositionInComposedTree firstEditablePositionAfterPositionInRoot(cons t PositionInComposedTree&, Node*);
185 PositionInComposedTree lastEditablePositionBeforePositionInRoot(const PositionIn ComposedTree&, Node*); 187 PositionInComposedTree lastEditablePositionBeforePositionInRoot(const PositionIn ComposedTree&, Node*);
186 188
187 // Move up or down the DOM by one position. 189 // Move up or down the DOM by one position.
188 // Offsets are computed using layout text for nodes that have layoutObjects - 190 // Offsets are computed using layout text for nodes that have layoutObjects -
189 // but note that even when using composed characters, the result may be inside 191 // but note that even when using composed characters, the result may be inside
190 // a single user-visible character if a ligature is formed. 192 // a single user-visible character if a ligature is formed.
191 CORE_EXPORT Position previousPositionOf(const Position&, PositionMoveType); 193 CORE_EXPORT Position previousPositionOf(const Position&, PositionMoveType);
192 CORE_EXPORT Position nextPositionOf(const Position&, PositionMoveType); 194 CORE_EXPORT Position nextPositionOf(const Position&, PositionMoveType);
193 CORE_EXPORT PositionInComposedTree previousPositionOf(const PositionInComposedTr ee&, PositionMoveType); 195 CORE_EXPORT PositionInComposedTree previousPositionOf(const PositionInComposedTr ee&, PositionMoveType);
194 CORE_EXPORT PositionInComposedTree nextPositionOf(const PositionInComposedTree&, PositionMoveType); 196 CORE_EXPORT PositionInComposedTree nextPositionOf(const PositionInComposedTree&, PositionMoveType);
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us. 309 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us.
308 return character == '\'' || character == rightSingleQuotationMarkCharacter | | character == hebrewPunctuationGershayimCharacter; 310 return character == '\'' || character == rightSingleQuotationMarkCharacter | | character == hebrewPunctuationGershayimCharacter;
309 } 311 }
310 312
311 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph); 313 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph);
312 const String& nonBreakingSpaceString(); 314 const String& nonBreakingSpaceString();
313 315
314 } 316 }
315 317
316 #endif 318 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/editing/EditingUtilities.cpp » ('j') | Source/core/editing/EditingUtilitiesTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698