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

Unified Diff: ios/third_party/blink/src/html_token.mm

Issue 1031023002: Upstream ios/web/ HTML tokenizer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « ios/third_party/blink/src/html_token.h ('k') | ios/third_party/blink/src/html_tokenizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/third_party/blink/src/html_token.mm
diff --git a/chrome/test/data/third_party/kraken/resources/sunspider-standalone-compare.js b/ios/third_party/blink/src/html_token.mm
similarity index 72%
copy from chrome/test/data/third_party/kraken/resources/sunspider-standalone-compare.js
copy to ios/third_party/blink/src/html_token.mm
index e82c1556caa29279664ca91ef31fcf62d79e9b8d..f05f24ef462b7802d8c457fc48d3f04599aafdfe 100644
--- a/chrome/test/data/third_party/kraken/resources/sunspider-standalone-compare.js
+++ b/ios/third_party/blink/src/html_token.mm
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2007 Apple Inc. All rights reserved.
+ * Copyright (C) 2014 Google, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -10,17 +10,34 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-sunspiderCompareResults(output1, output2);
+#include "ios/third_party/blink/src/html_token.h"
+
+namespace {
+size_t kDefaultDataSize = 256;
+}
+
+namespace WebCore {
+
+HTMLToken::HTMLToken()
+ : m_type(Uninitialized)
+{
+ m_data.reserve(kDefaultDataSize);
+}
+
+HTMLToken::~HTMLToken()
+{
+}
+}
« no previous file with comments | « ios/third_party/blink/src/html_token.h ('k') | ios/third_party/blink/src/html_tokenizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698