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

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

Issue 2183453004: [Editing][CodeHealth] Remove redundant Editabletype arguments in EditingUtilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | third_party/WebKit/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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // ------------------------------------------------------------------------- 73 // -------------------------------------------------------------------------
74 74
75 // Functions returning Node 75 // Functions returning Node
76 76
77 // highestEditableRoot returns the highest editable node. If the 77 // highestEditableRoot returns the highest editable node. If the
78 // rootEditableElement of the speicified Position is <body>, this returns the 78 // rootEditableElement of the speicified Position is <body>, this returns the
79 // <body>. Otherwise, this searches ancestors for the highest editable node in 79 // <body>. Otherwise, this searches ancestors for the highest editable node in
80 // defiance of editing boundaries. This returns a Document if designMode="on" 80 // defiance of editing boundaries. This returns a Document if designMode="on"
81 // and the specified Position is not in the <body>. 81 // and the specified Position is not in the <body>.
82 CORE_EXPORT ContainerNode* highestEditableRoot(const Position&, EditableType = C ontentIsEditable); 82 CORE_EXPORT ContainerNode* highestEditableRoot(const Position&, EditableType = C ontentIsEditable);
83 ContainerNode* highestEditableRoot(const PositionInFlatTree&, EditableType = Con tentIsEditable); 83 ContainerNode* highestEditableRoot(const PositionInFlatTree&);
84 84
85 Node* highestEnclosingNodeOfType(const Position&, bool (*nodeIsOfType)(const Nod e*), 85 Node* highestEnclosingNodeOfType(const Position&, bool (*nodeIsOfType)(const Nod e*),
86 EditingBoundaryCrossingRule = CannotCrossEditingBoundary, Node* stayWithin = nullptr); 86 EditingBoundaryCrossingRule = CannotCrossEditingBoundary, Node* stayWithin = nullptr);
87 Node* highestNodeToRemoveInPruning(Node*, Node* excludeNode = nullptr); 87 Node* highestNodeToRemoveInPruning(Node*, Node* excludeNode = nullptr);
88 88
89 Element* enclosingBlock(Node*, EditingBoundaryCrossingRule = CannotCrossEditingB oundary); 89 Element* enclosingBlock(Node*, EditingBoundaryCrossingRule = CannotCrossEditingB oundary);
90 CORE_EXPORT Element* enclosingBlock(const Position&, EditingBoundaryCrossingRule ); 90 CORE_EXPORT Element* enclosingBlock(const Position&, EditingBoundaryCrossingRule );
91 CORE_EXPORT Element* enclosingBlock(const PositionInFlatTree&, EditingBoundaryCr ossingRule); 91 CORE_EXPORT Element* enclosingBlock(const PositionInFlatTree&, EditingBoundaryCr ossingRule);
92 Element* enclosingBlockFlowElement(const Node&); // Deprecated, use enclosingBlo ck instead. 92 Element* enclosingBlockFlowElement(const Node&); // Deprecated, use enclosingBlo ck instead.
93 Element* enclosingTableCell(const Position&); 93 Element* enclosingTableCell(const Position&);
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 // ------------------------------------------------------------------------- 302 // -------------------------------------------------------------------------
303 // Element 303 // Element
304 // ------------------------------------------------------------------------- 304 // -------------------------------------------------------------------------
305 305
306 // Functions returning Element 306 // Functions returning Element
307 307
308 HTMLSpanElement* createTabSpanElement(Document&); 308 HTMLSpanElement* createTabSpanElement(Document&);
309 HTMLSpanElement* createTabSpanElement(Document&, const String& tabText); 309 HTMLSpanElement* createTabSpanElement(Document&, const String& tabText);
310 310
311 Element* rootEditableElementOf(const Position&, EditableType = ContentIsEditable ); 311 Element* rootEditableElementOf(const Position&, EditableType = ContentIsEditable );
312 Element* rootEditableElementOf(const PositionInFlatTree&, EditableType = Content IsEditable); 312 Element* rootEditableElementOf(const PositionInFlatTree&);
313 Element* rootEditableElementOf(const VisiblePosition&); 313 Element* rootEditableElementOf(const VisiblePosition&);
314 Element* unsplittableElementForPosition(const Position&); 314 Element* unsplittableElementForPosition(const Position&);
315 315
316 // Boolean functions on Element 316 // Boolean functions on Element
317 317
318 bool canMergeLists(Element* firstList, Element* secondList); 318 bool canMergeLists(Element* firstList, Element* secondList);
319 319
320 // ------------------------------------------------------------------------- 320 // -------------------------------------------------------------------------
321 // VisibleSelection 321 // VisibleSelection
322 // ------------------------------------------------------------------------- 322 // -------------------------------------------------------------------------
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 // ------------------------------------------------------------------------- 355 // -------------------------------------------------------------------------
356 356
357 // Functions dispatch InputEvent 357 // Functions dispatch InputEvent
358 DispatchEventResult dispatchBeforeInputInsertText(EventTarget*, const String& da ta); 358 DispatchEventResult dispatchBeforeInputInsertText(EventTarget*, const String& da ta);
359 DispatchEventResult dispatchBeforeInputFromComposition(EventTarget*, InputEvent: :InputType, const String& data, InputEvent::EventCancelable); 359 DispatchEventResult dispatchBeforeInputFromComposition(EventTarget*, InputEvent: :InputType, const String& data, InputEvent::EventCancelable);
360 DispatchEventResult dispatchBeforeInputEditorCommand(EventTarget*, InputEvent::I nputType, const String& data, const RangeVector*); 360 DispatchEventResult dispatchBeforeInputEditorCommand(EventTarget*, InputEvent::I nputType, const String& data, const RangeVector*);
361 361
362 } // namespace blink 362 } // namespace blink
363 363
364 #endif 364 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditingUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698