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

Unified Diff: Source/core/css/CSSShadowValue.h

Issue 1225553002: CSSValue Immediates: Make CSSPrimitiveValue a container (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cssvalue_patch_1
Patch Set: Rebase Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSReflectValue.cpp ('k') | Source/core/css/CSSShadowValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSShadowValue.h
diff --git a/Source/core/css/CSSShadowValue.h b/Source/core/css/CSSShadowValue.h
index 3650863664d2760ac49710a5d95fc116c231eec8..7e92a680aab3a65067cae327186d5828afcd6814 100644
--- a/Source/core/css/CSSShadowValue.h
+++ b/Source/core/css/CSSShadowValue.h
@@ -33,12 +33,12 @@ class CSSPrimitiveValue;
// Used for text-shadow and box-shadow
class CORE_EXPORT CSSShadowValue : public CSSValueObject {
public:
- static PassRefPtrWillBeRawPtr<CSSShadowValue> create(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> x,
- PassRefPtrWillBeRawPtr<CSSPrimitiveValue> y,
- PassRefPtrWillBeRawPtr<CSSPrimitiveValue> blur,
- PassRefPtrWillBeRawPtr<CSSPrimitiveValue> spread,
- PassRefPtrWillBeRawPtr<CSSPrimitiveValue> style,
- PassRefPtrWillBeRawPtr<CSSPrimitiveValue> color)
+ static PassRefPtrWillBeRawPtr<CSSShadowValue> create(NullableCSSValue x,
+ NullableCSSValue y,
+ NullableCSSValue blur,
+ NullableCSSValue spread,
+ NullableCSSValue style,
+ NullableCSSValue color)
{
return adoptRefWillBeNoop(new CSSShadowValue(x, y, blur, spread, style, color));
}
@@ -47,22 +47,22 @@ public:
bool equals(const CSSShadowValue&) const;
- RefPtrWillBeMember<CSSPrimitiveValue> x;
- RefPtrWillBeMember<CSSPrimitiveValue> y;
- RefPtrWillBeMember<CSSPrimitiveValue> blur;
- RefPtrWillBeMember<CSSPrimitiveValue> spread;
- RefPtrWillBeMember<CSSPrimitiveValue> style;
- RefPtrWillBeMember<CSSPrimitiveValue> color;
+ NullableCSSValue x;
+ NullableCSSValue y;
+ NullableCSSValue blur;
+ NullableCSSValue spread;
+ NullableCSSValue style;
+ NullableCSSValue color;
DECLARE_TRACE_AFTER_DISPATCH();
private:
- CSSShadowValue(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> x,
- PassRefPtrWillBeRawPtr<CSSPrimitiveValue> y,
- PassRefPtrWillBeRawPtr<CSSPrimitiveValue> blur,
- PassRefPtrWillBeRawPtr<CSSPrimitiveValue> spread,
- PassRefPtrWillBeRawPtr<CSSPrimitiveValue> style,
- PassRefPtrWillBeRawPtr<CSSPrimitiveValue> color);
+ CSSShadowValue(NullableCSSValue x,
+ NullableCSSValue y,
+ NullableCSSValue blur,
+ NullableCSSValue spread,
+ NullableCSSValue style,
+ NullableCSSValue color);
};
DEFINE_CSS_VALUE_TYPE_CASTS(CSSShadowValue, isShadowValue());
« no previous file with comments | « Source/core/css/CSSReflectValue.cpp ('k') | Source/core/css/CSSShadowValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698