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

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

Issue 1328493002: Move static member function normalizeRange() out from VisibleSelection (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-09-01T16:34:49 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 VisiblePosition lastEditableVisiblePositionBeforePositionInRoot(const Position&, ContainerNode*); 240 VisiblePosition lastEditableVisiblePositionBeforePositionInRoot(const Position&, ContainerNode*);
241 VisiblePosition visiblePositionBeforeNode(Node&); 241 VisiblePosition visiblePositionBeforeNode(Node&);
242 VisiblePosition visiblePositionAfterNode(Node&); 242 VisiblePosition visiblePositionAfterNode(Node&);
243 243
244 bool lineBreakExistsAtVisiblePosition(const VisiblePosition&); 244 bool lineBreakExistsAtVisiblePosition(const VisiblePosition&);
245 245
246 int comparePositions(const VisiblePosition&, const VisiblePosition&); 246 int comparePositions(const VisiblePosition&, const VisiblePosition&);
247 247
248 int indexForVisiblePosition(const VisiblePosition&, RefPtrWillBeRawPtr<Container Node>& scope); 248 int indexForVisiblePosition(const VisiblePosition&, RefPtrWillBeRawPtr<Container Node>& scope);
249 EphemeralRange makeRange(const VisiblePosition&, const VisiblePosition&); 249 EphemeralRange makeRange(const VisiblePosition&, const VisiblePosition&);
250 EphemeralRange normalizeRange(const EphemeralRange&);
251 EphemeralRangeInComposedTree normalizeRange(const EphemeralRangeInComposedTree&) ;
250 VisiblePosition visiblePositionForIndex(int index, ContainerNode* scope); 252 VisiblePosition visiblePositionForIndex(int index, ContainerNode* scope);
251 253
252 // ------------------------------------------------------------------------- 254 // -------------------------------------------------------------------------
253 // HTMLElement 255 // HTMLElement
254 // ------------------------------------------------------------------------- 256 // -------------------------------------------------------------------------
255 257
256 // Functions returning HTMLElement 258 // Functions returning HTMLElement
257 259
258 PassRefPtrWillBeRawPtr<HTMLElement> createDefaultParagraphElement(Document&); 260 PassRefPtrWillBeRawPtr<HTMLElement> createDefaultParagraphElement(Document&);
259 PassRefPtrWillBeRawPtr<HTMLBRElement> createBreakElement(Document&); 261 PassRefPtrWillBeRawPtr<HTMLBRElement> createBreakElement(Document&);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us. 315 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us.
314 return character == '\'' || character == rightSingleQuotationMarkCharacter | | character == hebrewPunctuationGershayimCharacter; 316 return character == '\'' || character == rightSingleQuotationMarkCharacter | | character == hebrewPunctuationGershayimCharacter;
315 } 317 }
316 318
317 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph); 319 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph);
318 const String& nonBreakingSpaceString(); 320 const String& nonBreakingSpaceString();
319 321
320 } 322 }
321 323
322 #endif 324 #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