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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSReflectValue.h

Issue 2346193002: Split CSSPrimitiveValue into CSSPrimitiveValue and CSSIdentifierValue (Closed)
Patch Set: Rebase please work Created 4 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 14 matching lines...) Expand all
25 25
26 #ifndef CSSReflectValue_h 26 #ifndef CSSReflectValue_h
27 #define CSSReflectValue_h 27 #define CSSReflectValue_h
28 28
29 #include "core/css/CSSValue.h" 29 #include "core/css/CSSValue.h"
30 #include "wtf/PassRefPtr.h" 30 #include "wtf/PassRefPtr.h"
31 #include "wtf/RefPtr.h" 31 #include "wtf/RefPtr.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class CSSIdentifierValue;
35 class CSSPrimitiveValue; 36 class CSSPrimitiveValue;
36 37
37 class CSSReflectValue : public CSSValue { 38 class CSSReflectValue : public CSSValue {
38 public: 39 public:
39 static CSSReflectValue* create(CSSPrimitiveValue* direction, 40 static CSSReflectValue* create(CSSIdentifierValue* direction,
40 CSSPrimitiveValue* offset, CSSValue* mask) 41 CSSPrimitiveValue* offset, CSSValue* mask)
41 { 42 {
42 return new CSSReflectValue(direction, offset, mask); 43 return new CSSReflectValue(direction, offset, mask);
43 } 44 }
44 45
45 CSSPrimitiveValue* direction() const { return m_direction.get(); } 46 CSSIdentifierValue* direction() const { return m_direction.get(); }
46 CSSPrimitiveValue* offset() const { return m_offset.get(); } 47 CSSPrimitiveValue* offset() const { return m_offset.get(); }
47 CSSValue* mask() const { return m_mask.get(); } 48 CSSValue* mask() const { return m_mask.get(); }
48 49
49 String customCSSText() const; 50 String customCSSText() const;
50 51
51 bool equals(const CSSReflectValue&) const; 52 bool equals(const CSSReflectValue&) const;
52 53
53 DECLARE_TRACE_AFTER_DISPATCH(); 54 DECLARE_TRACE_AFTER_DISPATCH();
54 55
55 private: 56 private:
56 CSSReflectValue(CSSPrimitiveValue* direction, CSSPrimitiveValue* offset, CSS Value* mask) 57 CSSReflectValue(CSSIdentifierValue* direction, CSSPrimitiveValue* offset, CS SValue* mask)
57 : CSSValue(ReflectClass) 58 : CSSValue(ReflectClass)
58 , m_direction(direction) 59 , m_direction(direction)
59 , m_offset(offset) 60 , m_offset(offset)
60 , m_mask(mask) 61 , m_mask(mask)
61 { 62 {
62 } 63 }
63 64
64 Member<CSSPrimitiveValue> m_direction; 65 Member<CSSIdentifierValue> m_direction;
65 Member<CSSPrimitiveValue> m_offset; 66 Member<CSSPrimitiveValue> m_offset;
66 Member<CSSValue> m_mask; 67 Member<CSSValue> m_mask;
67 }; 68 };
68 69
69 DEFINE_CSS_VALUE_TYPE_CASTS(CSSReflectValue, isReflectValue()); 70 DEFINE_CSS_VALUE_TYPE_CASTS(CSSReflectValue, isReflectValue());
70 71
71 } // namespace blink 72 } // namespace blink
72 73
73 #endif // CSSReflectValue_h 74 #endif // CSSReflectValue_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSQuadValue.h ('k') | third_party/WebKit/Source/core/css/CSSReflectValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698