| 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);
|
| +};
|
|
|