| 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/css/StyleColor.h" | |
| 26 #include "core/rendering/style/RenderStyleConstants.h" | 25 #include "core/rendering/style/RenderStyleConstants.h" |
| 27 #include "wtf/HashMap.h" | 26 #include "wtf/HashMap.h" |
| 28 #include "wtf/RefPtr.h" | 27 #include "wtf/RefPtr.h" |
| 29 #include "wtf/text/AtomicString.h" | 28 #include "wtf/text/AtomicString.h" |
| 30 #include "wtf/text/AtomicStringHash.h" | 29 #include "wtf/text/AtomicStringHash.h" |
| 31 #include "wtf/text/WTFString.h" | 30 #include "wtf/text/WTFString.h" |
| 32 | 31 |
| 33 namespace WebCore { | 32 namespace WebCore { |
| 34 | 33 |
| 35 class CSSPrimitiveValue; | 34 class CSSPrimitiveValue; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 102 |
| 104 const HashMap<AtomicString, String>* variableMap() const; | 103 const HashMap<AtomicString, String>* variableMap() const; |
| 105 virtual unsigned variableCount() const OVERRIDE; | 104 virtual unsigned variableCount() const OVERRIDE; |
| 106 virtual String variableValue(const AtomicString& name) const OVERRIDE; | 105 virtual String variableValue(const AtomicString& name) const OVERRIDE; |
| 107 virtual void setVariableValue(const AtomicString& name, const String& value,
ExceptionState&) OVERRIDE; | 106 virtual void setVariableValue(const AtomicString& name, const String& value,
ExceptionState&) OVERRIDE; |
| 108 virtual bool removeVariable(const AtomicString& name) OVERRIDE; | 107 virtual bool removeVariable(const AtomicString& name) OVERRIDE; |
| 109 virtual void clearVariables(ExceptionState&) OVERRIDE; | 108 virtual void clearVariables(ExceptionState&) OVERRIDE; |
| 110 | 109 |
| 111 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const OVERRI
DE; | 110 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const OVERRI
DE; |
| 112 | 111 |
| 113 PassRefPtr<CSSValue> valueForShadow(const RenderObject*, const ShadowData*,
CSSPropertyID, const RenderStyle*) const; | 112 PassRefPtr<CSSValue> valueForShadow(const ShadowData*, CSSPropertyID, const
RenderStyle*) const; |
| 114 PassRefPtr<CSSPrimitiveValue> currentColorOrValidColor(RenderStyle*, const S
tyleColor&) const; | 113 PassRefPtr<CSSPrimitiveValue> currentColorOrValidColor(RenderStyle*, const C
olor&) const; |
| 115 PassRefPtr<CSSPrimitiveValue> currentColorOrValidColor(const RenderObject*,
const RenderStyle*, int colorProperty) const; | |
| 116 PassRefPtr<SVGPaint> adjustSVGPaintForCurrentColor(PassRefPtr<SVGPaint>, Ren
derStyle*) const; | 114 PassRefPtr<SVGPaint> adjustSVGPaintForCurrentColor(PassRefPtr<SVGPaint>, Ren
derStyle*) const; |
| 117 | 115 |
| 118 PassRefPtr<CSSValue> valueForFilter(const RenderObject*, const RenderStyle*)
const; | 116 PassRefPtr<CSSValue> valueForFilter(const RenderObject*, const RenderStyle*)
const; |
| 119 | 117 |
| 120 PassRefPtr<CSSValueList> valuesForShorthandProperty(const StylePropertyShort
hand&) const; | 118 PassRefPtr<CSSValueList> valuesForShorthandProperty(const StylePropertyShort
hand&) const; |
| 121 PassRefPtr<CSSValueList> valuesForSidesShorthand(const StylePropertyShorthan
d&) const; | 119 PassRefPtr<CSSValueList> valuesForSidesShorthand(const StylePropertyShorthan
d&) const; |
| 122 PassRefPtr<CSSValueList> valuesForBackgroundShorthand() const; | 120 PassRefPtr<CSSValueList> valuesForBackgroundShorthand() const; |
| 123 PassRefPtr<CSSValueList> valuesForGridShorthand(const StylePropertyShorthand
&) const; | 121 PassRefPtr<CSSValueList> valuesForGridShorthand(const StylePropertyShorthand
&) const; |
| 124 | 122 |
| 125 RefPtr<Node> m_node; | 123 RefPtr<Node> m_node; |
| 126 PseudoId m_pseudoElementSpecifier; | 124 PseudoId m_pseudoElementSpecifier; |
| 127 bool m_allowVisitedStyle; | 125 bool m_allowVisitedStyle; |
| 128 unsigned m_refCount; | 126 unsigned m_refCount; |
| 129 }; | 127 }; |
| 130 | 128 |
| 131 } // namespace WebCore | 129 } // namespace WebCore |
| 132 | 130 |
| 133 #endif // CSSComputedStyleDeclaration_h | 131 #endif // CSSComputedStyleDeclaration_h |
| OLD | NEW |