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

Unified Diff: Source/wtf/text/TextPosition.h

Issue 172593003: DevTools: [CSS] Add CSS.editRangeInStyleSheetText() to the protocol (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address vsevik comments Created 6 years, 10 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: Source/wtf/text/TextPosition.h
diff --git a/Source/wtf/text/TextPosition.h b/Source/wtf/text/TextPosition.h
index 76fecf9fcaae73ef15102e499786e5054c5a126c..20765624bd5f05bd0d1058dd568ec8bf42055497 100644
--- a/Source/wtf/text/TextPosition.h
+++ b/Source/wtf/text/TextPosition.h
@@ -68,6 +68,7 @@ public:
TextPosition() { }
bool operator==(const TextPosition& other) { return m_line == other.m_line && m_column == other.m_column; }
bool operator!=(const TextPosition& other) { return !((*this) == other); }
+ OrdinalNumber toOffsetPosition(const Vector<unsigned>&);
// A 'minimum' value of position, used as a default value.
static TextPosition minimumPosition() { return TextPosition(OrdinalNumber::first(), OrdinalNumber::first()); }

Powered by Google App Engine
This is Rietveld 408576698