OLD | NEW |
---|---|
1 /* | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. | 2 // Use of this source code is governed by a BSD-style license that can be |
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> | 3 // found in the LICENSE file. |
4 * | |
5 * This library is free software; you can redistribute it and/or | |
6 * modify it under the terms of the GNU Library General Public | |
7 * License as published by the Free Software Foundation; either | |
8 * version 2 of the License, or (at your option) any later version. | |
9 * | |
10 * This library is distributed in the hope that it will be useful, | |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 * Library General Public License for more details. | |
14 * | |
15 * You should have received a copy of the GNU Library General Public License | |
16 * along with this library; see the file COPYING.LIB. If not, write to | |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
18 * Boston, MA 02110-1301, USA. | |
19 */ | |
20 | 4 |
21 // Introduced in DOM Level 2: | 5 interface CSSStyleDeclaration { |
22 [ | 6 [ImplementedAs=getPropertyValue] getter DOMString (DOMString name); |
23 DependentLifetime, | 7 [RaisesException, ImplementedAs=setProperty] setter void (DOMString name, DO MString? value); |
esprehn
2015/02/19 20:12:48
How do I remove a property now?
abarth-chromium
2015/02/19 20:19:57
I'll add back removeProperty.
| |
24 ] interface CSSStyleDeclaration { | |
25 [RaisesException=Setter] attribute DOMString? cssText; | |
26 | |
27 DOMString? getPropertyValue([Default=Undefined] optional DOMString propertyName); | |
28 [RaisesException] DOMString? removeProperty([Default=Undefined] opt ional DOMString propertyName); | |
29 [RaisesException] void setProperty(DOMString propertyName, DOMString? value) ; | |
30 | |
31 readonly attribute unsigned long length; | |
32 getter DOMString item([Default=Undefined] optional unsigned long in dex); | |
33 [Custom] setter void (DOMString propertyName, DOMString? propertyValue); | |
34 }; | 8 }; |
OLD | NEW |