| 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 19 matching lines...) Expand all Loading... |
| 30 class CSSProperty; | 30 class CSSProperty; |
| 31 class CSSRule; | 31 class CSSRule; |
| 32 class CSSStyleSheet; | 32 class CSSStyleSheet; |
| 33 class CSSValue; | 33 class CSSValue; |
| 34 class MutableStylePropertySet; | 34 class MutableStylePropertySet; |
| 35 class StylePropertySet; | 35 class StylePropertySet; |
| 36 class StyledElement; | 36 class StyledElement; |
| 37 | 37 |
| 38 typedef int ExceptionCode; | 38 typedef int ExceptionCode; |
| 39 | 39 |
| 40 class CSSPropertyInfo { | |
| 41 public: | |
| 42 CSSPropertyID propID; | |
| 43 bool hadPixelOrPosPrefix; | |
| 44 }; | |
| 45 | |
| 46 class CSSStyleDeclaration : public ScriptWrappable { | 40 class CSSStyleDeclaration : public ScriptWrappable { |
| 47 WTF_MAKE_NONCOPYABLE(CSSStyleDeclaration); WTF_MAKE_FAST_ALLOCATED; | 41 WTF_MAKE_NONCOPYABLE(CSSStyleDeclaration); WTF_MAKE_FAST_ALLOCATED; |
| 48 public: | 42 public: |
| 49 virtual ~CSSStyleDeclaration() { } | 43 virtual ~CSSStyleDeclaration() { } |
| 50 | 44 |
| 51 virtual void ref() = 0; | 45 virtual void ref() = 0; |
| 52 virtual void deref() = 0; | 46 virtual void deref() = 0; |
| 53 | 47 |
| 54 virtual CSSRule* parentRule() const = 0; | 48 virtual CSSRule* parentRule() const = 0; |
| 55 virtual String cssText() const = 0; | 49 virtual String cssText() const = 0; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 70 virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) = 0; | 64 virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID) = 0; |
| 71 virtual String getPropertyValueInternal(CSSPropertyID) = 0; | 65 virtual String getPropertyValueInternal(CSSPropertyID) = 0; |
| 72 virtual void setPropertyInternal(CSSPropertyID, const String& value, bool im
portant, ExceptionCode&) = 0; | 66 virtual void setPropertyInternal(CSSPropertyID, const String& value, bool im
portant, ExceptionCode&) = 0; |
| 73 | 67 |
| 74 virtual PassRefPtr<MutableStylePropertySet> copyProperties() const = 0; | 68 virtual PassRefPtr<MutableStylePropertySet> copyProperties() const = 0; |
| 75 | 69 |
| 76 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const = 0; | 70 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const = 0; |
| 77 virtual CSSStyleSheet* parentStyleSheet() const { return 0; } | 71 virtual CSSStyleSheet* parentStyleSheet() const { return 0; } |
| 78 | 72 |
| 79 virtual void reportMemoryUsage(MemoryObjectInfo*) const = 0; | 73 virtual void reportMemoryUsage(MemoryObjectInfo*) const = 0; |
| 80 void anonymousNamedGetter(const AtomicString& name, bool&, String&, bool&, f
loat&); | |
| 81 bool anonymousNamedSetter(const AtomicString& name, const String& value, Exc
eptionCode&); | |
| 82 | |
| 83 static CSSPropertyInfo* cssPropertyInfo(const String& propertyName); | |
| 84 | 74 |
| 85 protected: | 75 protected: |
| 86 CSSStyleDeclaration() | 76 CSSStyleDeclaration() |
| 87 { | 77 { |
| 88 ScriptWrappable::init(this); | 78 ScriptWrappable::init(this); |
| 89 } | 79 } |
| 90 }; | 80 }; |
| 91 | 81 |
| 92 } // namespace WebCore | 82 } // namespace WebCore |
| 93 | 83 |
| 94 #endif // CSSStyleDeclaration_h | 84 #endif // CSSStyleDeclaration_h |
| OLD | NEW |