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

Unified Diff: Source/core/editing/htmlediting.h

Issue 1085163002: Introduce EditingAlgorithm<Traversal> class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-04-15T16:50:42 Rebase for Position.h updates Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/editing/EditingStrategy.cpp ('k') | Source/core/editing/htmlediting.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/htmlediting.h
diff --git a/Source/core/editing/htmlediting.h b/Source/core/editing/htmlediting.h
index 773494ab1ff57a73e78ada792c268be077feba3c..0010eb675bb381af7fa288e1a2a982d6b316c70b 100644
--- a/Source/core/editing/htmlediting.h
+++ b/Source/core/editing/htmlediting.h
@@ -85,11 +85,6 @@ int caretMaxOffset(const Node*);
// boolean functions on Node
-inline bool isEmptyNonEditableNodeInEditable(const Node* node)
-{
- return !node->hasChildren() && !node->hasEditableStyle() && node->parentNode() && node->parentNode()->hasEditableStyle();
-}
-
// FIXME: editingIgnoresContent, canHaveChildrenForEditing, and isAtomicNode
// should be renamed to reflect its usage.
@@ -97,7 +92,7 @@ inline bool isEmptyNonEditableNodeInEditable(const Node* node)
// There are no VisiblePositions inside these nodes.
inline bool editingIgnoresContent(const Node* node)
{
- return !node->canContainRangeEndPoint() || isEmptyNonEditableNodeInEditable(node);
+ return EditingStrategy::editingIgnoresContent(node);
}
inline bool canHaveChildrenForEditing(const Node* node)
« no previous file with comments | « Source/core/editing/EditingStrategy.cpp ('k') | Source/core/editing/htmlediting.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698