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

Unified Diff: third_party/WebKit/Source/core/dom/NodeWithIndex.h

Issue 2701413003: Range: node offsets should be unsigned. (Closed)
Patch Set: Resolve std::numeric_limits<int>::max() leftover Created 3 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: third_party/WebKit/Source/core/dom/NodeWithIndex.h
diff --git a/third_party/WebKit/Source/core/dom/NodeWithIndex.h b/third_party/WebKit/Source/core/dom/NodeWithIndex.h
index 9d8fc495c1820b1e054b9ac20992adb57705caa4..aa749686f01374d0ee253e89166b713ea7960037 100644
--- a/third_party/WebKit/Source/core/dom/NodeWithIndex.h
+++ b/third_party/WebKit/Source/core/dom/NodeWithIndex.h
@@ -41,6 +41,7 @@ class NodeWithIndex {
Node& node() const { return *m_node; }
+ // TODO(tkent): Should be unsigned.
int index() const {
if (!hasIndex())
m_index = node().nodeIndex();

Powered by Google App Engine
This is Rietveld 408576698