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

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

Issue 353603003: Move PositionWithAffinity class to editing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2014-06-26T05:52:09 rebase for commit Created 6 years, 6 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/core.gypi ('k') | Source/core/editing/PositionWithAffinity.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Position.h
diff --git a/Source/core/dom/Position.h b/Source/core/dom/Position.h
index 4ed91bbe69b04c8f9c909c9880f13bf21f1d27e7..90d216bd45cd95d24821ce700da5cd8b6f00daa3 100644
--- a/Source/core/dom/Position.h
+++ b/Source/core/dom/Position.h
@@ -310,33 +310,6 @@ inline bool offsetIsBeforeLastNodeOffset(int offset, Node* anchorNode)
return offset < currentOffset;
}
-class PositionWithAffinity {
- DISALLOW_ALLOCATION();
-public:
- PositionWithAffinity()
- : m_affinity(DOWNSTREAM)
- {
- }
-
- PositionWithAffinity(const Position& position, EAffinity affinity = DOWNSTREAM)
- : m_position(position)
- , m_affinity(affinity)
- {
- }
-
- EAffinity affinity() const { return m_affinity; }
- const Position& position() const { return m_position; }
-
- void trace(Visitor* visitor)
- {
- visitor->trace(m_position);
- }
-
-private:
- Position m_position;
- EAffinity m_affinity;
-};
-
} // namespace WebCore
#ifndef NDEBUG
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/editing/PositionWithAffinity.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698