| 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..f20c427488fd88548eaa4d0bb1210725330c26a4
|
| --- /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 from(DOMString cssString);
|
| + [RaisesException, NewObject] static CSSLengthValue from(double value, LengthType type);
|
| + [RaisesException, NewObject] static CSSLengthValue from(CalcDictionary dictionary);
|
| +};
|
|
|