Index: third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc |
diff --git a/third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc b/third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc |
index 487f39bb2d706ed833f6477e45270007a4373a8f..f12e42a79e5f9c489a9f4a4d3a95508dae713390 100644 |
--- a/third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc |
+++ b/third_party/WebKit/Source/platform/scheduler/base/enqueue_order.cc |
@@ -8,7 +8,9 @@ namespace blink { |
namespace scheduler { |
namespace internal { |
-EnqueueOrderGenerator::EnqueueOrderGenerator() : enqueue_order_(0) {} |
+// Note we set the first |enqueue_order_| to 1 so that isValid may distinguish a |
+// valid EnqueueOrder from an invalid one. |
+EnqueueOrderGenerator::EnqueueOrderGenerator() : enqueue_order_(1) {} |
EnqueueOrderGenerator::~EnqueueOrderGenerator() {} |