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

Unified Diff: Source/core/css/CSSReflectValue.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/CSSPrimitiveValueMappings.h ('k') | Source/core/css/CSSReflectValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSReflectValue.h
diff --git a/Source/core/css/CSSReflectValue.h b/Source/core/css/CSSReflectValue.h
index 26c088c93a872c114829fc968912fc1672e4fcfc..6dd80ebea70c7955ae1451214301449caf1458a2 100644
--- a/Source/core/css/CSSReflectValue.h
+++ b/Source/core/css/CSSReflectValue.h
@@ -36,14 +36,14 @@ class CSSPrimitiveValue;
class CSSReflectValue : public CSSValueObject {
public:
- static PassRefPtrWillBeRawPtr<CSSReflectValue> create(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> direction,
- PassRefPtrWillBeRawPtr<CSSPrimitiveValue> offset, NullableCSSValue mask)
+ static PassRefPtrWillBeRawPtr<CSSReflectValue> create(CSSPrimitiveValue direction,
+ CSSPrimitiveValue offset, NullableCSSValue mask)
{
return adoptRefWillBeNoop(new CSSReflectValue(direction, offset, mask));
}
- CSSPrimitiveValue* direction() const { return m_direction.get(); }
- CSSPrimitiveValue* offset() const { return m_offset.get(); }
+ CSSPrimitiveValue direction() const { return toCSSPrimitiveValue(m_direction); }
+ CSSPrimitiveValue offset() const { return toCSSPrimitiveValue(m_offset); }
NullableCSSValue mask() const { return m_mask; }
String customCSSText() const;
@@ -53,7 +53,7 @@ public:
DECLARE_TRACE_AFTER_DISPATCH();
private:
- CSSReflectValue(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> direction, PassRefPtrWillBeRawPtr<CSSPrimitiveValue> offset, NullableCSSValue mask)
+ CSSReflectValue(CSSPrimitiveValue direction, CSSPrimitiveValue offset, NullableCSSValue mask)
: CSSValueObject(ReflectClass)
, m_direction(direction)
, m_offset(offset)
@@ -61,8 +61,8 @@ private:
{
}
- RefPtrWillBeMember<CSSPrimitiveValue> m_direction;
- RefPtrWillBeMember<CSSPrimitiveValue> m_offset;
+ CSSValue m_direction;
+ CSSValue m_offset;
NullableCSSValue m_mask;
};
« no previous file with comments | « Source/core/css/CSSPrimitiveValueMappings.h ('k') | Source/core/css/CSSReflectValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698