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

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

Issue 1311543006: Introduce composed tree version of firstEditableVisiblePositionAfterPositionInRoot() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-09-08T13:00:05 Add TODO for firstEditableVisiblePositionAfterPositionInRoot() 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
« no previous file with comments | « no previous file | 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 Position trailingWhitespacePosition(const Position&, TextAffinity, WhitespacePos itionOption = NotConsiderNonCollapsibleWhitespace); 229 Position trailingWhitespacePosition(const Position&, TextAffinity, WhitespacePos itionOption = NotConsiderNonCollapsibleWhitespace);
230 unsigned numEnclosingMailBlockquotes(const Position&); 230 unsigned numEnclosingMailBlockquotes(const Position&);
231 void updatePositionForNodeRemoval(Position&, Node&); 231 void updatePositionForNodeRemoval(Position&, Node&);
232 232
233 // ------------------------------------------------------------------------- 233 // -------------------------------------------------------------------------
234 // VisiblePosition 234 // VisiblePosition
235 // ------------------------------------------------------------------------- 235 // -------------------------------------------------------------------------
236 236
237 // Functions returning VisiblePosition 237 // Functions returning VisiblePosition
238 238
239 VisiblePosition firstEditableVisiblePositionAfterPositionInRoot(const Position&, ContainerNode*); 239 // TODO(yosin) We should rename
240 // |firstEditableVisiblePositionAfterPositionInRoot()| to a better name which
241 // describes what this function returns, since it returns a position before
242 // specified position due by canonicalization.
243 CORE_EXPORT VisiblePosition firstEditableVisiblePositionAfterPositionInRoot(cons t Position&, ContainerNode*);
244 CORE_EXPORT VisiblePositionInComposedTree firstEditableVisiblePositionAfterPosit ionInRoot(const PositionInComposedTree&, ContainerNode*);
240 VisiblePosition lastEditableVisiblePositionBeforePositionInRoot(const Position&, ContainerNode*); 245 VisiblePosition lastEditableVisiblePositionBeforePositionInRoot(const Position&, ContainerNode*);
241 VisiblePosition visiblePositionBeforeNode(Node&); 246 VisiblePosition visiblePositionBeforeNode(Node&);
242 VisiblePosition visiblePositionAfterNode(Node&); 247 VisiblePosition visiblePositionAfterNode(Node&);
243 248
244 bool lineBreakExistsAtVisiblePosition(const VisiblePosition&); 249 bool lineBreakExistsAtVisiblePosition(const VisiblePosition&);
245 250
246 int comparePositions(const VisiblePosition&, const VisiblePosition&); 251 int comparePositions(const VisiblePosition&, const VisiblePosition&);
247 252
248 int indexForVisiblePosition(const VisiblePosition&, RefPtrWillBeRawPtr<Container Node>& scope); 253 int indexForVisiblePosition(const VisiblePosition&, RefPtrWillBeRawPtr<Container Node>& scope);
249 EphemeralRange makeRange(const VisiblePosition&, const VisiblePosition&); 254 EphemeralRange makeRange(const VisiblePosition&, const VisiblePosition&);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us. 320 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us.
316 return character == '\'' || character == rightSingleQuotationMarkCharacter | | character == hebrewPunctuationGershayimCharacter; 321 return character == '\'' || character == rightSingleQuotationMarkCharacter | | character == hebrewPunctuationGershayimCharacter;
317 } 322 }
318 323
319 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph); 324 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph);
320 const String& nonBreakingSpaceString(); 325 const String& nonBreakingSpaceString();
321 326
322 } 327 }
323 328
324 #endif 329 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/editing/EditingUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698