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

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

Issue 2184823004: [Editing][CodeHealth] Remove redundant Editabletype arguments in layoutObjectIsRichlyEditable (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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 CORE_EXPORT bool needsLayoutTreeUpdate(const Node&); 68 CORE_EXPORT bool needsLayoutTreeUpdate(const Node&);
69 CORE_EXPORT bool needsLayoutTreeUpdate(const Position&); 69 CORE_EXPORT bool needsLayoutTreeUpdate(const Position&);
70 70
71 // ------------------------------------------------------------------------- 71 // -------------------------------------------------------------------------
72 // Node 72 // Node
73 // ------------------------------------------------------------------------- 73 // -------------------------------------------------------------------------
74 74
75 CORE_EXPORT bool isContentEditable(const Node&); 75 CORE_EXPORT bool isContentEditable(const Node&);
76 CORE_EXPORT bool isContentRichlyEditable(const Node&); 76 CORE_EXPORT bool isContentRichlyEditable(const Node&);
77 CORE_EXPORT bool hasEditableStyle(const Node&, EditableType = ContentIsEditable) ; 77 CORE_EXPORT bool hasEditableStyle(const Node&, EditableType = ContentIsEditable) ;
78 CORE_EXPORT bool layoutObjectIsRichlyEditable(const Node&, EditableType = Conten tIsEditable); 78 CORE_EXPORT bool hasRichlyEditableStyle(const Node&);
79 CORE_EXPORT bool isRootEditableElement(const Node&); 79 CORE_EXPORT bool isRootEditableElement(const Node&);
80 CORE_EXPORT Element* rootEditableElement(const Node&); 80 CORE_EXPORT Element* rootEditableElement(const Node&);
81 CORE_EXPORT Element* rootEditableElement(const Node&, EditableType); 81 CORE_EXPORT Element* rootEditableElement(const Node&, EditableType);
82 // highestEditableRoot returns the highest editable node. If the 82 // highestEditableRoot returns the highest editable node. If the
83 // rootEditableElement of the speicified Position is <body>, this returns the 83 // rootEditableElement of the speicified Position is <body>, this returns the
84 // <body>. Otherwise, this searches ancestors for the highest editable node in 84 // <body>. Otherwise, this searches ancestors for the highest editable node in
85 // defiance of editing boundaries. This returns a Document if designMode="on" 85 // defiance of editing boundaries. This returns a Document if designMode="on"
86 // and the specified Position is not in the <body>. 86 // and the specified Position is not in the <body>.
87 CORE_EXPORT ContainerNode* highestEditableRoot(const Position&, EditableType = C ontentIsEditable); 87 CORE_EXPORT ContainerNode* highestEditableRoot(const Position&, EditableType = C ontentIsEditable);
88 ContainerNode* highestEditableRoot(const PositionInFlatTree&, EditableType = Con tentIsEditable); 88 ContainerNode* highestEditableRoot(const PositionInFlatTree&, EditableType = Con tentIsEditable);
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 // ------------------------------------------------------------------------- 360 // -------------------------------------------------------------------------
361 361
362 // Functions dispatch InputEvent 362 // Functions dispatch InputEvent
363 DispatchEventResult dispatchBeforeInputInsertText(EventTarget*, const String& da ta); 363 DispatchEventResult dispatchBeforeInputInsertText(EventTarget*, const String& da ta);
364 DispatchEventResult dispatchBeforeInputFromComposition(EventTarget*, InputEvent: :InputType, const String& data, InputEvent::EventCancelable); 364 DispatchEventResult dispatchBeforeInputFromComposition(EventTarget*, InputEvent: :InputType, const String& data, InputEvent::EventCancelable);
365 DispatchEventResult dispatchBeforeInputEditorCommand(EventTarget*, InputEvent::I nputType, const String& data, const RangeVector*); 365 DispatchEventResult dispatchBeforeInputEditorCommand(EventTarget*, InputEvent::I nputType, const String& data, const RangeVector*);
366 366
367 } // namespace blink 367 } // namespace blink
368 368
369 #endif 369 #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