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

Unified Diff: third_party/WebKit/Source/core/css/cssom/CSSLengthValue.idl

Issue 1949343002: [Obsolete] Typed CSSOM: Prefix LengthValue, CalcLength and SimpleLength with "CSS" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename layout test files Created 4 years, 7 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/cssom/CSSLengthValue.idl
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSLengthValue.idl b/third_party/WebKit/Source/core/css/cssom/CSSLengthValue.idl
new file mode 100644
index 0000000000000000000000000000000000000000..3493872079fa2972df851d2d83d9a8aa4050e2e6
--- /dev/null
+++ b/third_party/WebKit/Source/core/css/cssom/CSSLengthValue.idl
@@ -0,0 +1,20 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+enum LengthType {
+ "px", "percent", "em", "ex", "ch", "rem", "vw", "vh", "vmin", "vmax", "cm", "mm", "in", "pc", "pt"
+};
+
+[
+ RuntimeEnabled=CSSTypedOM
+] interface CSSLengthValue : StyleValue {
+ [RaisesException, NewObject] CSSLengthValue add(CSSLengthValue other);
+ [RaisesException, NewObject] CSSLengthValue subtract(CSSLengthValue other);
+ [RaisesException, NewObject] CSSLengthValue multiply(double value);
+ [RaisesException, NewObject] CSSLengthValue divide(double value);
+
+ [RaisesException, NewObject] static CSSLengthValue parse(DOMString cssString);
+ [RaisesException, NewObject] static CSSLengthValue fromValue(double value, LengthType type);
+ [RaisesException, NewObject] static CSSLengthValue fromDictionary(CalcDictionary dictionary);
+};

Powered by Google App Engine
This is Rietveld 408576698