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

Unified Diff: third_party/WebKit/WebCore/html/PreloadScanner.cpp

Issue 39293: WebKit merge 41447:41498 [third_party/WebKit] (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove CRLF Created 11 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/WebCore/html/PreloadScanner.cpp
===================================================================
--- third_party/WebKit/WebCore/html/PreloadScanner.cpp (revision 11154)
+++ third_party/WebKit/WebCore/html/PreloadScanner.cpp (working copy)
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2008 Apple Inc. All Rights Reserved.
+ * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -128,9 +129,13 @@
void PreloadScanner::write(const SegmentedString& source)
{
+#if PRELOAD_DEBUG
double startTime = currentTime();
+#endif
tokenize(source);
+#if PRELOAD_DEBUG
m_timeUsed += currentTime() - startTime;
+#endif
}
static inline bool isWhitespace(UChar c)
« no previous file with comments | « third_party/WebKit/WebCore/html/HTMLObjectElement.cpp ('k') | third_party/WebKit/WebCore/inspector/ConsoleMessage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698