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

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

Issue 1301933002: Move a static member function nodeIsUserSelectNone() out from PositionAlgorithm template class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-19T18:58:27 Move to EditingUtilities.{cpp,h} 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/Position.h » ('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 313dfc53ac8416ec2b6aca471fd60549d21fec6d..127ab16c45a3d4390c454c93eb2ef306cf65dcc1 100644
--- a/Source/core/editing/EditingUtilities.cpp
+++ b/Source/core/editing/EditingUtilities.cpp
@@ -545,6 +545,11 @@ bool inSameContainingBlockFlowElement(Node* a, Node* b)
return a && b && enclosingBlockFlowElement(*a) == enclosingBlockFlowElement(*b);
}
+bool nodeIsUserSelectNone(Node* node)
+{
+ return node && node->layoutObject() && !node->layoutObject()->isSelectable();
+}
+
TextDirection directionOfEnclosingBlock(const Position& position)
{
Element* enclosingBlockElement = enclosingBlock(position.computeContainerNode());
« no previous file with comments | « Source/core/editing/EditingUtilities.h ('k') | Source/core/editing/Position.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698