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

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

Issue 1611953002: Rename editableRootElementForPosition() to rootEditableElementOf() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-01-21T18:23:57 Created 4 years, 11 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 274
275 // ------------------------------------------------------------------------- 275 // -------------------------------------------------------------------------
276 // Element 276 // Element
277 // ------------------------------------------------------------------------- 277 // -------------------------------------------------------------------------
278 278
279 // Functions returning Element 279 // Functions returning Element
280 280
281 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&); 281 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&);
282 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&, const St ring& tabText); 282 PassRefPtrWillBeRawPtr<HTMLSpanElement> createTabSpanElement(Document&, const St ring& tabText);
283 283
284 Element* editableRootElementForPosition(const Position&, EditableType = ContentI sEditable); 284 Element* rootEditableElementOf(const Position&, EditableType = ContentIsEditable );
285 Element* editableRootElementForPosition(const PositionInComposedTree&, EditableT ype = ContentIsEditable); 285 Element* rootEditableElementOf(const PositionInComposedTree&, EditableType = Con tentIsEditable);
286 Element* rootEditableElementOf(const VisiblePosition&); 286 Element* rootEditableElementOf(const VisiblePosition&);
287 Element* unsplittableElementForPosition(const Position&); 287 Element* unsplittableElementForPosition(const Position&);
288 288
289 // Boolean functions on Element 289 // Boolean functions on Element
290 290
291 bool canMergeLists(Element* firstList, Element* secondList); 291 bool canMergeLists(Element* firstList, Element* secondList);
292 292
293 // ------------------------------------------------------------------------- 293 // -------------------------------------------------------------------------
294 // VisibleSelection 294 // VisibleSelection
295 // ------------------------------------------------------------------------- 295 // -------------------------------------------------------------------------
(...skipping 23 matching lines...) Expand all
319 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us. 319 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us.
320 return character == '\'' || character == rightSingleQuotationMarkCharacter | | character == hebrewPunctuationGershayimCharacter; 320 return character == '\'' || character == rightSingleQuotationMarkCharacter | | character == hebrewPunctuationGershayimCharacter;
321 } 321 }
322 322
323 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph); 323 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph);
324 const String& nonBreakingSpaceString(); 324 const String& nonBreakingSpaceString();
325 325
326 } 326 }
327 327
328 #endif 328 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698