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

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

Issue 1298233004: Move a member function parentEditingBoundary() out from PositionAlgorithm<Strategy> template class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-19T22:31:05 Rebase 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 | « no previous file | Source/core/editing/Position.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/Position.h
diff --git a/Source/core/editing/Position.h b/Source/core/editing/Position.h
index f794a3fe20e6200be42ea711543987b11b365dd8..e4835dd67e130a26cf25b698115484ec5ef85db5 100644
--- a/Source/core/editing/Position.h
+++ b/Source/core/editing/Position.h
@@ -182,8 +182,6 @@ public:
bool atFirstEditingPositionForNode() const;
bool atLastEditingPositionForNode() const;
- Node* parentEditingBoundary() const;
-
bool atStartOfTree() const;
bool atEndOfTree() const;
@@ -252,6 +250,11 @@ using PositionInComposedTree = PositionAlgorithm<EditingInComposedTreeStrategy>;
// since it is used only in "editing/commands/"
CORE_EXPORT bool isRenderedCharacter(const Position&);
+// TODO(yosin) We should make |parentEditingBoundary()| as static function
+// in "VisibleUnits.cpp", since it is used only there.
+CORE_EXPORT Node* parentEditingBoundary(const Position&);
+CORE_EXPORT Node* parentEditingBoundary(const PositionInComposedTree&);
+
template <typename Strategy>
bool operator==(const PositionAlgorithm<Strategy>& a, const PositionAlgorithm<Strategy>& b)
{
« no previous file with comments | « no previous file | Source/core/editing/Position.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698