| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> | 2 * Copyright (C) 2004 Zack Rusin <zack@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 Lesser General Public | 6 * modify it under the terms of the GNU Lesser 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, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Lesser General Public License for more details. | 13 * Lesser General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Lesser General Public | 15 * You should have received a copy of the GNU Lesser General Public |
| 16 * License along with this library; if not, write to the Free Software | 16 * License along with this library; if not, write to the Free Software |
| 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
| 18 * 02110-1301 USA | 18 * 02110-1301 USA |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #ifndef CSSComputedStyleDeclaration_h | 21 #ifndef CSSComputedStyleDeclaration_h |
| 22 #define CSSComputedStyleDeclaration_h | 22 #define CSSComputedStyleDeclaration_h |
| 23 | 23 |
| 24 #include "core/css/CSSStyleDeclaration.h" | 24 #include "core/css/CSSStyleDeclaration.h" |
| 25 #include "core/rendering/style/RenderStyleConstants.h" | 25 #include "core/rendering/style/RenderStyleConstants.h" |
| 26 #include "wtf/HashMap.h" |
| 26 #include "wtf/RefPtr.h" | 27 #include "wtf/RefPtr.h" |
| 28 #include "wtf/text/AtomicString.h" |
| 29 #include "wtf/text/AtomicStringHash.h" |
| 27 #include "wtf/text/WTFString.h" | 30 #include "wtf/text/WTFString.h" |
| 28 | 31 |
| 29 namespace WebCore { | 32 namespace WebCore { |
| 30 | 33 |
| 31 class CSSPrimitiveValue; | 34 class CSSPrimitiveValue; |
| 32 class CSSValueList; | 35 class CSSValueList; |
| 33 class Color; | 36 class Color; |
| 34 class MutableStylePropertySet; | 37 class MutableStylePropertySet; |
| 35 class Node; | 38 class Node; |
| 36 class RenderObject; | 39 class RenderObject; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 virtual String getPropertyShorthand(const String& propertyName); | 93 virtual String getPropertyShorthand(const String& propertyName); |
| 91 virtual bool isPropertyImplicit(const String& propertyName); | 94 virtual bool isPropertyImplicit(const String& propertyName); |
| 92 virtual void setProperty(const String& propertyName, const String& value, co
nst String& priority, ExceptionCode&); | 95 virtual void setProperty(const String& propertyName, const String& value, co
nst String& priority, ExceptionCode&); |
| 93 virtual String removeProperty(const String& propertyName, ExceptionCode&); | 96 virtual String removeProperty(const String& propertyName, ExceptionCode&); |
| 94 virtual String cssText() const; | 97 virtual String cssText() const; |
| 95 virtual void setCssText(const String&, ExceptionCode&); | 98 virtual void setCssText(const String&, ExceptionCode&); |
| 96 virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID); | 99 virtual PassRefPtr<CSSValue> getPropertyCSSValueInternal(CSSPropertyID); |
| 97 virtual String getPropertyValueInternal(CSSPropertyID); | 100 virtual String getPropertyValueInternal(CSSPropertyID); |
| 98 virtual void setPropertyInternal(CSSPropertyID, const String& value, bool im
portant, ExceptionCode&); | 101 virtual void setPropertyInternal(CSSPropertyID, const String& value, bool im
portant, ExceptionCode&); |
| 99 | 102 |
| 103 const HashMap<AtomicString, String>* variableMap() const; |
| 104 virtual unsigned variableCount() const OVERRIDE; |
| 105 virtual String variableValue(const AtomicString& name) const OVERRIDE; |
| 106 virtual void setVariableValue(const AtomicString& name, const String& value,
ExceptionCode&) OVERRIDE; |
| 107 virtual bool removeVariable(const AtomicString& name) OVERRIDE; |
| 108 virtual void clearVariables(ExceptionCode&) OVERRIDE; |
| 109 |
| 100 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const OVERRI
DE; | 110 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const OVERRI
DE; |
| 101 | 111 |
| 102 PassRefPtr<CSSValue> valueForShadow(const ShadowData*, CSSPropertyID, const
RenderStyle*) const; | 112 PassRefPtr<CSSValue> valueForShadow(const ShadowData*, CSSPropertyID, const
RenderStyle*) const; |
| 103 PassRefPtr<CSSPrimitiveValue> currentColorOrValidColor(RenderStyle*, const C
olor&) const; | 113 PassRefPtr<CSSPrimitiveValue> currentColorOrValidColor(RenderStyle*, const C
olor&) const; |
| 104 PassRefPtr<SVGPaint> adjustSVGPaintForCurrentColor(PassRefPtr<SVGPaint>, Ren
derStyle*) const; | 114 PassRefPtr<SVGPaint> adjustSVGPaintForCurrentColor(PassRefPtr<SVGPaint>, Ren
derStyle*) const; |
| 105 | 115 |
| 106 PassRefPtr<CSSValue> valueForFilter(const RenderObject*, const RenderStyle*)
const; | 116 PassRefPtr<CSSValue> valueForFilter(const RenderObject*, const RenderStyle*)
const; |
| 107 | 117 |
| 108 PassRefPtr<CSSValueList> getCSSPropertyValuesForShorthandProperties(const St
ylePropertyShorthand&) const; | 118 PassRefPtr<CSSValueList> getCSSPropertyValuesForShorthandProperties(const St
ylePropertyShorthand&) const; |
| 109 PassRefPtr<CSSValueList> getCSSPropertyValuesForSidesShorthand(const StylePr
opertyShorthand&) const; | 119 PassRefPtr<CSSValueList> getCSSPropertyValuesForSidesShorthand(const StylePr
opertyShorthand&) const; |
| 110 PassRefPtr<CSSValueList> getBackgroundShorthandValue() const; | 120 PassRefPtr<CSSValueList> getBackgroundShorthandValue() const; |
| 111 PassRefPtr<CSSValueList> getCSSPropertyValuesForGridShorthand(const StylePro
pertyShorthand&) const; | 121 PassRefPtr<CSSValueList> getCSSPropertyValuesForGridShorthand(const StylePro
pertyShorthand&) const; |
| 112 | 122 |
| 113 RefPtr<Node> m_node; | 123 RefPtr<Node> m_node; |
| 114 PseudoId m_pseudoElementSpecifier; | 124 PseudoId m_pseudoElementSpecifier; |
| 115 bool m_allowVisitedStyle; | 125 bool m_allowVisitedStyle; |
| 116 unsigned m_refCount; | 126 unsigned m_refCount; |
| 117 }; | 127 }; |
| 118 | 128 |
| 119 } // namespace WebCore | 129 } // namespace WebCore |
| 120 | 130 |
| 121 #endif // CSSComputedStyleDeclaration_h | 131 #endif // CSSComputedStyleDeclaration_h |
| OLD | NEW |