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

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

Issue 583903003: [Thread-safe] Take isolatedCopy of SecurityOrigin in ResourceLoaderOptions when passed across thread (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 2 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/fetch/ResourceLoaderOptionsTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/TextPosition.h
diff --git a/Source/wtf/text/TextPosition.h b/Source/wtf/text/TextPosition.h
index 857c04905929e32d5436ad007d8dfc1b02594233..a1c05092a620485ab4b99df1c92d5cc7f11ec8e6 100644
--- a/Source/wtf/text/TextPosition.h
+++ b/Source/wtf/text/TextPosition.h
@@ -44,8 +44,8 @@ public:
int zeroBasedInt() const { return m_zeroBasedValue; }
int oneBasedInt() const { return m_zeroBasedValue + 1; }
- bool operator==(OrdinalNumber other) { return m_zeroBasedValue == other.m_zeroBasedValue; }
- bool operator!=(OrdinalNumber other) { return !((*this) == other); }
+ bool operator==(OrdinalNumber other) const { return m_zeroBasedValue == other.m_zeroBasedValue; }
+ bool operator!=(OrdinalNumber other) const { return !((*this) == other); }
static OrdinalNumber first() { return OrdinalNumber(0); }
static OrdinalNumber beforeFirst() { return OrdinalNumber(-1); }
@@ -66,8 +66,8 @@ 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); }
+ bool operator==(const TextPosition& other) const { return m_line == other.m_line && m_column == other.m_column; }
+ bool operator!=(const TextPosition& other) const { return !((*this) == other); }
WTF_EXPORT OrdinalNumber toOffset(const Vector<unsigned>&);
// A 'minimum' value of position, used as a default value.
« no previous file with comments | « Source/core/fetch/ResourceLoaderOptionsTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698