| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #define SKY_ENGINE_CORE_CSS_CSSSTYLEDECLARATION_H_ | 22 #define SKY_ENGINE_CORE_CSS_CSSSTYLEDECLARATION_H_ |
| 23 | 23 |
| 24 #include "gen/sky/core/CSSPropertyNames.h" | 24 #include "gen/sky/core/CSSPropertyNames.h" |
| 25 #include "sky/engine/bindings/core/v8/ScriptWrappable.h" | 25 #include "sky/engine/bindings/core/v8/ScriptWrappable.h" |
| 26 #include "sky/engine/wtf/Forward.h" | 26 #include "sky/engine/wtf/Forward.h" |
| 27 #include "sky/engine/wtf/Noncopyable.h" | 27 #include "sky/engine/wtf/Noncopyable.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 class CSSProperty; | 31 class CSSProperty; |
| 32 class CSSRule; | |
| 33 class CSSStyleSheet; | 32 class CSSStyleSheet; |
| 34 class CSSValue; | 33 class CSSValue; |
| 35 class ExceptionState; | 34 class ExceptionState; |
| 36 class MutableStylePropertySet; | 35 class MutableStylePropertySet; |
| 37 | 36 |
| 38 class CSSStyleDeclaration : public ScriptWrappable { | 37 class CSSStyleDeclaration : public ScriptWrappable { |
| 39 DEFINE_WRAPPERTYPEINFO(); | 38 DEFINE_WRAPPERTYPEINFO(); |
| 40 WTF_MAKE_NONCOPYABLE(CSSStyleDeclaration); WTF_MAKE_FAST_ALLOCATED; | 39 WTF_MAKE_NONCOPYABLE(CSSStyleDeclaration); WTF_MAKE_FAST_ALLOCATED; |
| 41 public: | 40 public: |
| 42 virtual ~CSSStyleDeclaration() { } | 41 virtual ~CSSStyleDeclaration() { } |
| 43 | 42 |
| 44 #if !ENABLE(OILPAN) | 43 #if !ENABLE(OILPAN) |
| 45 virtual void ref() = 0; | 44 virtual void ref() = 0; |
| 46 virtual void deref() = 0; | 45 virtual void deref() = 0; |
| 47 #endif | 46 #endif |
| 48 | 47 |
| 49 virtual CSSRule* parentRule() const = 0; | |
| 50 virtual String cssText() const = 0; | 48 virtual String cssText() const = 0; |
| 51 virtual void setCSSText(const String&, ExceptionState&) = 0; | 49 virtual void setCSSText(const String&, ExceptionState&) = 0; |
| 52 virtual unsigned length() const = 0; | 50 virtual unsigned length() const = 0; |
| 53 virtual String item(unsigned index) const = 0; | 51 virtual String item(unsigned index) const = 0; |
| 54 virtual PassRefPtr<CSSValue> getPropertyCSSValue(const String& propertyName)
= 0; | 52 virtual PassRefPtr<CSSValue> getPropertyCSSValue(const String& propertyName)
= 0; |
| 55 virtual String getPropertyValue(const String& propertyName) = 0; | 53 virtual String getPropertyValue(const String& propertyName) = 0; |
| 56 virtual String getPropertyPriority(const String& propertyName) = 0; | 54 virtual String getPropertyPriority(const String& propertyName) = 0; |
| 57 virtual String getPropertyShorthand(const String& propertyName) = 0; | 55 virtual String getPropertyShorthand(const String& propertyName) = 0; |
| 58 virtual bool isPropertyImplicit(const String& propertyName) = 0; | 56 virtual bool isPropertyImplicit(const String& propertyName) = 0; |
| 59 virtual void setProperty(const String& propertyName, const String& value, co
nst String& priority, ExceptionState&) = 0; | 57 virtual void setProperty(const String& propertyName, const String& value, co
nst String& priority, ExceptionState&) = 0; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 73 | 71 |
| 74 protected: | 72 protected: |
| 75 CSSStyleDeclaration() | 73 CSSStyleDeclaration() |
| 76 { | 74 { |
| 77 } | 75 } |
| 78 }; | 76 }; |
| 79 | 77 |
| 80 } // namespace blink | 78 } // namespace blink |
| 81 | 79 |
| 82 #endif // SKY_ENGINE_CORE_CSS_CSSSTYLEDECLARATION_H_ | 80 #endif // SKY_ENGINE_CORE_CSS_CSSSTYLEDECLARATION_H_ |
| OLD | NEW |