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

Side by Side Diff: Source/core/css/CSSComputedStyleDeclaration.h

Issue 20061003: Move isValid/isCurrentColor from Color to StyleColor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
25 #include "core/rendering/style/RenderStyleConstants.h" 26 #include "core/rendering/style/RenderStyleConstants.h"
26 #include "wtf/HashMap.h" 27 #include "wtf/HashMap.h"
27 #include "wtf/RefPtr.h" 28 #include "wtf/RefPtr.h"
28 #include "wtf/text/AtomicString.h" 29 #include "wtf/text/AtomicString.h"
29 #include "wtf/text/AtomicStringHash.h" 30 #include "wtf/text/AtomicStringHash.h"
30 #include "wtf/text/WTFString.h" 31 #include "wtf/text/WTFString.h"
31 32
32 namespace WebCore { 33 namespace WebCore {
33 34
34 class CSSPrimitiveValue; 35 class CSSPrimitiveValue;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 103
103 const HashMap<AtomicString, String>* variableMap() const; 104 const HashMap<AtomicString, String>* variableMap() const;
104 virtual unsigned variableCount() const OVERRIDE; 105 virtual unsigned variableCount() const OVERRIDE;
105 virtual String variableValue(const AtomicString& name) const OVERRIDE; 106 virtual String variableValue(const AtomicString& name) const OVERRIDE;
106 virtual void setVariableValue(const AtomicString& name, const String& value, ExceptionCode&) OVERRIDE; 107 virtual void setVariableValue(const AtomicString& name, const String& value, ExceptionCode&) OVERRIDE;
107 virtual bool removeVariable(const AtomicString& name) OVERRIDE; 108 virtual bool removeVariable(const AtomicString& name) OVERRIDE;
108 virtual void clearVariables(ExceptionCode&) OVERRIDE; 109 virtual void clearVariables(ExceptionCode&) OVERRIDE;
109 110
110 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const OVERRI DE; 111 virtual bool cssPropertyMatches(CSSPropertyID, const CSSValue*) const OVERRI DE;
111 112
112 PassRefPtr<CSSValue> valueForShadow(const ShadowData*, CSSPropertyID, const RenderStyle*) const; 113 PassRefPtr<CSSValue> valueForShadow(const RenderObject*, const ShadowData*, CSSPropertyID, const RenderStyle*) const;
113 PassRefPtr<CSSPrimitiveValue> currentColorOrValidColor(RenderStyle*, const C olor&) const; 114 PassRefPtr<CSSPrimitiveValue> currentColorOrValidColor(RenderStyle*, const S tyleColor&) const;
115 PassRefPtr<CSSPrimitiveValue> currentColorOrValidColor(const RenderObject*, const RenderStyle*, int colorProperty) const;
114 PassRefPtr<SVGPaint> adjustSVGPaintForCurrentColor(PassRefPtr<SVGPaint>, Ren derStyle*) const; 116 PassRefPtr<SVGPaint> adjustSVGPaintForCurrentColor(PassRefPtr<SVGPaint>, Ren derStyle*) const;
115 117
116 PassRefPtr<CSSValue> valueForFilter(const RenderObject*, const RenderStyle*) const; 118 PassRefPtr<CSSValue> valueForFilter(const RenderObject*, const RenderStyle*) const;
117 119
118 PassRefPtr<CSSValueList> getCSSPropertyValuesForShorthandProperties(const St ylePropertyShorthand&) const; 120 PassRefPtr<CSSValueList> getCSSPropertyValuesForShorthandProperties(const St ylePropertyShorthand&) const;
119 PassRefPtr<CSSValueList> getCSSPropertyValuesForSidesShorthand(const StylePr opertyShorthand&) const; 121 PassRefPtr<CSSValueList> getCSSPropertyValuesForSidesShorthand(const StylePr opertyShorthand&) const;
120 PassRefPtr<CSSValueList> getBackgroundShorthandValue() const; 122 PassRefPtr<CSSValueList> getBackgroundShorthandValue() const;
121 PassRefPtr<CSSValueList> getCSSPropertyValuesForGridShorthand(const StylePro pertyShorthand&) const; 123 PassRefPtr<CSSValueList> getCSSPropertyValuesForGridShorthand(const StylePro pertyShorthand&) const;
122 124
123 RefPtr<Node> m_node; 125 RefPtr<Node> m_node;
124 PseudoId m_pseudoElementSpecifier; 126 PseudoId m_pseudoElementSpecifier;
125 bool m_allowVisitedStyle; 127 bool m_allowVisitedStyle;
126 unsigned m_refCount; 128 unsigned m_refCount;
127 }; 129 };
128 130
129 } // namespace WebCore 131 } // namespace WebCore
130 132
131 #endif // CSSComputedStyleDeclaration_h 133 #endif // CSSComputedStyleDeclaration_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698