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

Unified Diff: third_party/WebKit/Source/core/css/CSSPrimitiveValueUnitTrie.h

Issue 1938343002: Generate a series of nested switch statements to parse CSSPrimitiveValue units. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/css/CSSPrimitiveValueUnitTrie.h
diff --git a/third_party/WebKit/public/platform/URLConversion.h b/third_party/WebKit/Source/core/css/CSSPrimitiveValueUnitTrie.h
similarity index 51%
copy from third_party/WebKit/public/platform/URLConversion.h
copy to third_party/WebKit/Source/core/css/CSSPrimitiveValueUnitTrie.h
index 599e2796d203e5b5a44f6892787137833cfa4f91..7437177715979e7d559b30bc21b5703ca2763565 100644
--- a/third_party/WebKit/public/platform/URLConversion.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueUnitTrie.h
@@ -2,18 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef URLConversion_h
-#define URLConversion_h
+#ifndef CSSPrimitiveValueUnitTrie_h
+#define CSSPrimitiveValueUnitTrie_h
-#include "WebCommon.h"
-
-class GURL;
+#include "core/css/CSSPrimitiveValue.h"
namespace blink {
-class WebString;
-
-BLINK_COMMON_EXPORT GURL WebStringToGURL(const WebString&);
+CSSPrimitiveValue::UnitType lookupCSSPrimitiveValueUnit(const String& data, unsigned length);
Timothy Loh 2016/05/03 07:40:26 reminder note that this still creates stings and w
meade_UTC10 2016/05/04 07:24:54 Done.
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698