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

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

Issue 1611953002: Rename editableRootElementForPosition() to rootEditableElementOf() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-01-21T18:23:57 Created 4 years, 11 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
Index: third_party/WebKit/Source/core/editing/EditingUtilities.cpp
diff --git a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
index 5ff2ea28f913c777615387248284f0af105b63b9..0651f1b2cd7684822d33d14314a31cb4ded5c98f 100644
--- a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
+++ b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
@@ -221,7 +221,7 @@ ContainerNode* highestEditableRoot(const Position& position, EditableType editab
if (position.isNull())
return 0;
- ContainerNode* highestRoot = editableRootElementForPosition(position, editableType);
+ ContainerNode* highestRoot = rootEditableElementOf(position, editableType);
if (!highestRoot)
return 0;
@@ -271,7 +271,7 @@ bool isEditablePosition(const PositionInComposedTree& p, EditableType editableTy
bool isAtUnsplittableElement(const Position& pos)
{
Node* node = pos.anchorNode();
- return (node == editableRootElementForPosition(pos) || node == enclosingNodeOfType(pos, &isTableCell));
+ return (node == rootEditableElementOf(pos) || node == enclosingNodeOfType(pos, &isTableCell));
}
@@ -287,7 +287,7 @@ bool isRichlyEditablePosition(const Position& p, EditableType editableType)
return node->layoutObjectIsRichlyEditable(editableType);
}
-Element* editableRootElementForPosition(const Position& p, EditableType editableType)
+Element* rootEditableElementOf(const Position& p, EditableType editableType)
{
Node* node = p.computeContainerNode();
if (!node)
@@ -299,9 +299,9 @@ Element* editableRootElementForPosition(const Position& p, EditableType editable
return node->rootEditableElement(editableType);
}
-Element* editableRootElementForPosition(const PositionInComposedTree& p, EditableType editableType)
+Element* rootEditableElementOf(const PositionInComposedTree& p, EditableType editableType)
{
- return editableRootElementForPosition(toPositionInDOMTree(p), editableType);
+ return rootEditableElementOf(toPositionInDOMTree(p), editableType);
}
// TODO(yosin) This does not handle [table, 0] correctly.
@@ -322,7 +322,7 @@ Element* unsplittableElementForPosition(const Position& p)
if (enclosingCell)
return enclosingCell;
- return editableRootElementForPosition(p);
+ return rootEditableElementOf(p);
}
template <typename Strategy>

Powered by Google App Engine
This is Rietveld 408576698