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

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

Issue 2706023003: Expand FrameSeleciton::isContentRichlyEditable() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-21T11:28:21 Created 3 years, 10 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, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 108 }
109 Element* rootEditableElementOrDocumentElement() const; 109 Element* rootEditableElementOrDocumentElement() const;
110 ContainerNode* rootEditableElementOrTreeScopeRootNode() const; 110 ContainerNode* rootEditableElementOrTreeScopeRootNode() const;
111 111
112 bool hasEditableStyle() const { 112 bool hasEditableStyle() const {
113 return computeVisibleSelectionInDOMTreeDeprecated().hasEditableStyle(); 113 return computeVisibleSelectionInDOMTreeDeprecated().hasEditableStyle();
114 } 114 }
115 bool isContentEditable() const { 115 bool isContentEditable() const {
116 return computeVisibleSelectionInDOMTreeDeprecated().isContentEditable(); 116 return computeVisibleSelectionInDOMTreeDeprecated().isContentEditable();
117 } 117 }
118 bool isContentRichlyEditable() const {
119 return computeVisibleSelectionInDOMTreeDeprecated()
120 .isContentRichlyEditable();
121 }
122 118
123 // An implementation of |WebFrame::moveCaretSelection()| 119 // An implementation of |WebFrame::moveCaretSelection()|
124 void moveCaretSelection(const IntPoint&); 120 void moveCaretSelection(const IntPoint&);
125 121
126 const VisibleSelection& computeVisibleSelectionInDOMTree() const; 122 const VisibleSelection& computeVisibleSelectionInDOMTree() const;
127 const VisibleSelectionInFlatTree& computeVisibleSelectionInFlatTree() const; 123 const VisibleSelectionInFlatTree& computeVisibleSelectionInFlatTree() const;
128 124
129 // TODO(editing-dev): We should replace 125 // TODO(editing-dev): We should replace
130 // |computeVisibleSelectionInDOMTreeDeprecated()| with update layout and 126 // |computeVisibleSelectionInDOMTreeDeprecated()| with update layout and
131 // |computeVisibleSelectionInDOMTree()| to increase places hoisting update 127 // |computeVisibleSelectionInDOMTree()| to increase places hoisting update
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 366
371 } // namespace blink 367 } // namespace blink
372 368
373 #ifndef NDEBUG 369 #ifndef NDEBUG
374 // Outside the WebCore namespace for ease of invocation from gdb. 370 // Outside the WebCore namespace for ease of invocation from gdb.
375 void showTree(const blink::FrameSelection&); 371 void showTree(const blink::FrameSelection&);
376 void showTree(const blink::FrameSelection*); 372 void showTree(const blink::FrameSelection*);
377 #endif 373 #endif
378 374
379 #endif // FrameSelection_h 375 #endif // FrameSelection_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/Editor.cpp ('k') | third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698