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

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

Issue 1150313002: *** NOT FOR LANDING *** Unprefix multicol behind a flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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
« no previous file with comments | « Source/core/css/CSSProperties.in ('k') | Source/core/css/ComputedStyleCSSValueMapping.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ComputedStyleCSSValueMapping_h 5 #ifndef ComputedStyleCSSValueMapping_h
6 #define ComputedStyleCSSValueMapping_h 6 #define ComputedStyleCSSValueMapping_h
7 7
8 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
9 #include "core/css/CSSValue.h" 9 #include "core/css/CSSValue.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class CSSPrimitiveValue; 13 class CSSPrimitiveValue;
14 class LayoutObject; 14 class LayoutObject;
15 class ComputedStyle; 15 class ComputedStyle;
16 class ShadowData; 16 class ShadowData;
17 class ShadowList; 17 class ShadowList;
18 class StyleColor; 18 class StyleColor;
19 class Node; 19 class Node;
20 20
21 class ComputedStyleCSSValueMapping { 21 class ComputedStyleCSSValueMapping {
22 public: 22 public:
23 enum ShorthandState { NotDoingShorthand, DoingShorthand };
23 // FIXME: Resolve computed auto alignment in applyProperty/ComputedStyle and remove this non-const styledNode parameter. 24 // FIXME: Resolve computed auto alignment in applyProperty/ComputedStyle and remove this non-const styledNode parameter.
24 static PassRefPtrWillBeRawPtr<CSSValue> get(CSSPropertyID, const ComputedSty le&, const LayoutObject* = nullptr, Node* styledNode = nullptr, bool allowVisite dStyle = false); 25 static PassRefPtrWillBeRawPtr<CSSValue> get(CSSPropertyID, const ComputedSty le&, const LayoutObject* = nullptr, Node* styledNode = nullptr, ShorthandState = NotDoingShorthand, bool allowVisitedStyle = false);
25 private: 26 private:
26 static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> currentColorOrValidColor(co nst ComputedStyle&, const StyleColor&); 27 static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> currentColorOrValidColor(co nst ComputedStyle&, const StyleColor&);
27 static PassRefPtrWillBeRawPtr<CSSValue> valueForShadowData(const ShadowData& , const ComputedStyle&, bool useSpread); 28 static PassRefPtrWillBeRawPtr<CSSValue> valueForShadowData(const ShadowData& , const ComputedStyle&, bool useSpread);
28 static PassRefPtrWillBeRawPtr<CSSValue> valueForShadowList(const ShadowList* , const ComputedStyle&, bool useSpread); 29 static PassRefPtrWillBeRawPtr<CSSValue> valueForShadowList(const ShadowList* , const ComputedStyle&, bool useSpread);
29 static PassRefPtrWillBeRawPtr<CSSValue> valueForFilter(const ComputedStyle&) ; 30 static PassRefPtrWillBeRawPtr<CSSValue> valueForFilter(const ComputedStyle&) ;
30 }; 31 };
31 32
32 } // namespace blink 33 } // namespace blink
33 34
34 #endif // ComputedStyleCSSValueMapping_h 35 #endif // ComputedStyleCSSValueMapping_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSProperties.in ('k') | Source/core/css/ComputedStyleCSSValueMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698