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

Unified Diff: third_party/WebKit/Source/devtools/front_end/platform/utilities.js

Issue 2413233003: DevTools: introduce WI.Resource.contentSize() and WI.Resource.lastModified() (Closed)
Patch Set: always send last-modified in php script Created 4 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
Index: third_party/WebKit/Source/devtools/front_end/platform/utilities.js
diff --git a/third_party/WebKit/Source/devtools/front_end/platform/utilities.js b/third_party/WebKit/Source/devtools/front_end/platform/utilities.js
index fb56ae4f8f3c84660b7f5ee12a491e7f6fad03f7..f83537766a6994a1595edd4c0b80ecc2efe8b3cb 100644
--- a/third_party/WebKit/Source/devtools/front_end/platform/utilities.js
+++ b/third_party/WebKit/Source/devtools/front_end/platform/utilities.js
@@ -408,6 +408,14 @@ Number.toFixedIfFloating = function(value)
}
/**
+ * @return {boolean}
+ */
+Date.prototype.isValid = function()
+{
+ return !isNaN(this.getTime())
+}
+
+/**
* @return {string}
*/
Date.prototype.toISO8601Compact = function()

Powered by Google App Engine
This is Rietveld 408576698