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

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

Issue 1317463002: Introduce composed tree version of nextVisuallyDistinctCandidate() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-25T14:42:38 Follow review comment Created 5 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
« 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // Position 155 // Position
156 // ------------------------------------------------------------------------- 156 // -------------------------------------------------------------------------
157 157
158 // Functions returning Position 158 // Functions returning Position
159 159
160 Position nextCandidate(const Position&); 160 Position nextCandidate(const Position&);
161 PositionInComposedTree nextCandidate(const PositionInComposedTree&); 161 PositionInComposedTree nextCandidate(const PositionInComposedTree&);
162 Position previousCandidate(const Position&); 162 Position previousCandidate(const Position&);
163 PositionInComposedTree previousCandidate(const PositionInComposedTree&); 163 PositionInComposedTree previousCandidate(const PositionInComposedTree&);
164 164
165 Position nextVisuallyDistinctCandidate(const Position&); 165 CORE_EXPORT Position nextVisuallyDistinctCandidate(const Position&);
166 CORE_EXPORT PositionInComposedTree nextVisuallyDistinctCandidate(const PositionI nComposedTree&);
166 Position previousVisuallyDistinctCandidate(const Position&); 167 Position previousVisuallyDistinctCandidate(const Position&);
167 PositionInComposedTree previousVisuallyDistinctCandidate(const PositionInCompose dTree&); 168 PositionInComposedTree previousVisuallyDistinctCandidate(const PositionInCompose dTree&);
168 169
169 Position positionBeforeContainingSpecialElement(const Position&, HTMLElement** c ontainingSpecialElement = nullptr); 170 Position positionBeforeContainingSpecialElement(const Position&, HTMLElement** c ontainingSpecialElement = nullptr);
170 Position positionAfterContainingSpecialElement(const Position&, HTMLElement** co ntainingSpecialElement = nullptr); 171 Position positionAfterContainingSpecialElement(const Position&, HTMLElement** co ntainingSpecialElement = nullptr);
171 172
172 inline Position firstPositionInOrBeforeNode(Node* node) 173 inline Position firstPositionInOrBeforeNode(Node* node)
173 { 174 {
174 return Position::firstPositionInOrBeforeNode(node); 175 return Position::firstPositionInOrBeforeNode(node);
175 } 176 }
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us. 306 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us.
306 return character == '\'' || character == rightSingleQuotationMarkCharacter | | character == hebrewPunctuationGershayimCharacter; 307 return character == '\'' || character == rightSingleQuotationMarkCharacter | | character == hebrewPunctuationGershayimCharacter;
307 } 308 }
308 309
309 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph); 310 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph);
310 const String& nonBreakingSpaceString(); 311 const String& nonBreakingSpaceString();
311 312
312 } 313 }
313 314
314 #endif 315 #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