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

Unified Diff: Source/core/editing/EditingUtilities.cpp

Issue 1318943002: Move global function lowestEditableAncestor() to local function in VisibleSelection.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-27T17:01:49 Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/editing/EditingUtilities.h ('k') | Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/EditingUtilities.cpp
diff --git a/Source/core/editing/EditingUtilities.cpp b/Source/core/editing/EditingUtilities.cpp
index 3f77c55442fdec4f8213018f66ab2777f843384c..796055a3e6892f1986dde19f7fe3ca732a4ebd89 100644
--- a/Source/core/editing/EditingUtilities.cpp
+++ b/Source/core/editing/EditingUtilities.cpp
@@ -246,19 +246,6 @@ ContainerNode* highestEditableRoot(const PositionInComposedTree& position, Edita
return highestEditableRoot(toPositionInDOMTree(position), editableType);
}
-Element* lowestEditableAncestor(Node* node)
-{
- while (node) {
- if (node->hasEditableStyle())
- return node->rootEditableElement();
- if (isHTMLBodyElement(*node))
- break;
- node = node->parentNode();
- }
-
- return 0;
-}
-
bool isEditablePosition(const Position& p, EditableType editableType, EUpdateStyle updateStyle)
{
Node* node = p.parentAnchoredEquivalent().anchorNode();
« no previous file with comments | « Source/core/editing/EditingUtilities.h ('k') | Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698