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

Unified Diff: sky/engine/core/css/CSSStyleDeclaration.idl

Issue 942553002: Make element.style["color"] work in Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Add back removeProperty Created 5 years, 10 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
« no previous file with comments | « sky/engine/core/animation/Timing.idl ('k') | sky/engine/core/frame/Window.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/CSSStyleDeclaration.idl
diff --git a/sky/engine/core/css/CSSStyleDeclaration.idl b/sky/engine/core/css/CSSStyleDeclaration.idl
index 9a804c79400db05601beccbe21ac859bcaf77415..985255e92928f332e98b216fb696c1bdc192781c 100644
--- a/sky/engine/core/css/CSSStyleDeclaration.idl
+++ b/sky/engine/core/css/CSSStyleDeclaration.idl
@@ -1,34 +1,10 @@
-/*
- * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
- * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Library General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Library General Public License for more details.
- *
- * You should have received a copy of the GNU Library General Public License
- * along with this library; see the file COPYING.LIB. If not, write to
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
- * Boston, MA 02110-1301, USA.
- */
+// 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.
-// Introduced in DOM Level 2:
-[
- DependentLifetime,
-] interface CSSStyleDeclaration {
- [RaisesException=Setter] attribute DOMString? cssText;
+interface CSSStyleDeclaration {
+ [ImplementedAs=getPropertyValue] getter DOMString (DOMString name);
+ [RaisesException, ImplementedAs=setProperty] setter void (DOMString name, DOMString? value);
- DOMString? getPropertyValue([Default=Undefined] optional DOMString propertyName);
- [RaisesException] DOMString? removeProperty([Default=Undefined] optional DOMString propertyName);
- [RaisesException] void setProperty(DOMString propertyName, DOMString? value);
-
- readonly attribute unsigned long length;
- getter DOMString item([Default=Undefined] optional unsigned long index);
- [Custom] setter void (DOMString propertyName, DOMString? propertyValue);
+ [RaisesException] void removeProperty(DOMString name);
};
« no previous file with comments | « sky/engine/core/animation/Timing.idl ('k') | sky/engine/core/frame/Window.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698