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

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

Issue 1287053007: Move rootUserSelectAllForNode() to EditingStrategy template class from PositionAlgorithm template cl (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-20T17:38:38 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/Position.h ('k') | Source/core/editing/SelectionController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/Position.cpp
diff --git a/Source/core/editing/Position.cpp b/Source/core/editing/Position.cpp
index 8cb39b2b910b99ef366201e2fc6beda3b017c0b3..6708e109ae17fc5a529f810c9d553c643556f585 100644
--- a/Source/core/editing/Position.cpp
+++ b/Source/core/editing/Position.cpp
@@ -549,29 +549,6 @@ bool hasRenderedNonAnonymousDescendantsWithHeight(LayoutObject* layoutObject)
}
template <typename Strategy>
-Node* PositionAlgorithm<Strategy>::rootUserSelectAllForNode(Node* node)
-{
- if (!node || !nodeIsUserSelectAll(node))
- return 0;
- Node* parent = Strategy::parent(*node);
- if (!parent)
- return node;
-
- Node* candidateRoot = node;
- while (parent) {
- if (!parent->layoutObject()) {
- parent = Strategy::parent(*parent);
- continue;
- }
- if (!nodeIsUserSelectAll(parent))
- break;
- candidateRoot = parent;
- parent = Strategy::parent(*candidateRoot);
- }
- return candidateRoot;
-}
-
-template <typename Strategy>
bool PositionAlgorithm<Strategy>::isCandidate() const
{
if (isNull())
« no previous file with comments | « Source/core/editing/Position.h ('k') | Source/core/editing/SelectionController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698