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

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

Issue 1312213008: Move member function rootEditableElement() out from VisiblePosition class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-31T17:55:42 Include VisiblePosition.h 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 | « Source/core/editing/DragCaretController.cpp ('k') | 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // ------------------------------------------------------------------------- 270 // -------------------------------------------------------------------------
271 271
272 // Functions returning Element 272 // Functions returning Element
273 273
274 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&); 274 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&);
275 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&, const St ring& tabText); 275 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&, const St ring& tabText);
276 PassRefPtrWillBeRawPtr<HTMLBRElement> createBlockPlaceholderElement(Document&); 276 PassRefPtrWillBeRawPtr<HTMLBRElement> createBlockPlaceholderElement(Document&);
277 277
278 Element* editableRootForPosition(const Position&, EditableType = ContentIsEditab le); 278 Element* editableRootForPosition(const Position&, EditableType = ContentIsEditab le);
279 Element* editableRootForPosition(const PositionInComposedTree&, EditableType = C ontentIsEditable); 279 Element* editableRootForPosition(const PositionInComposedTree&, EditableType = C ontentIsEditable);
280 Element* rootEditableElementOf(const VisiblePosition&);
280 Element* unsplittableElementForPosition(const Position&); 281 Element* unsplittableElementForPosition(const Position&);
281 282
282 // Boolean functions on Element 283 // Boolean functions on Element
283 284
284 bool canMergeLists(Element* firstList, Element* secondList); 285 bool canMergeLists(Element* firstList, Element* secondList);
285 286
286 // ------------------------------------------------------------------------- 287 // -------------------------------------------------------------------------
287 // VisibleSelection 288 // VisibleSelection
288 // ------------------------------------------------------------------------- 289 // -------------------------------------------------------------------------
289 290
(...skipping 22 matching lines...) Expand all
312 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us. 313 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us.
313 return character == '\'' || character == rightSingleQuotationMarkCharacter | | character == hebrewPunctuationGershayimCharacter; 314 return character == '\'' || character == rightSingleQuotationMarkCharacter | | character == hebrewPunctuationGershayimCharacter;
314 } 315 }
315 316
316 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph); 317 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph);
317 const String& nonBreakingSpaceString(); 318 const String& nonBreakingSpaceString();
318 319
319 } 320 }
320 321
321 #endif 322 #endif
OLDNEW
« no previous file with comments | « Source/core/editing/DragCaretController.cpp ('k') | Source/core/editing/EditingUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698