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

Unified Diff: Source/core/css/CSSBorderImageSliceValue.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/CSSBasicShapes.cpp ('k') | Source/core/css/CSSBorderImageSliceValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSBorderImageSliceValue.h
diff --git a/Source/core/css/CSSBorderImageSliceValue.h b/Source/core/css/CSSBorderImageSliceValue.h
index 3dfd38103ea888a3c50d3c147b45ee98e34e4cc7..6fd9856fedf668d49f4a2c4f0cbc760a897cc1e0 100644
--- a/Source/core/css/CSSBorderImageSliceValue.h
+++ b/Source/core/css/CSSBorderImageSliceValue.h
@@ -26,7 +26,7 @@
#ifndef CSSBorderImageSliceValue_h
#define CSSBorderImageSliceValue_h
-#include "core/css/CSSPrimitiveValue.h"
+#include "core/css/CSSValue.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
@@ -34,14 +34,14 @@ namespace blink {
class CSSBorderImageSliceValue : public CSSValueObject {
public:
- static PassRefPtrWillBeRawPtr<CSSBorderImageSliceValue> create(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> slices, bool fill)
+ static PassRefPtrWillBeRawPtr<CSSBorderImageSliceValue> create(CSSPrimitiveValue slices, bool fill)
{
return adoptRefWillBeNoop(new CSSBorderImageSliceValue(slices, fill));
}
String customCSSText() const;
- Quad* slices() const { return m_slices ? m_slices->getQuadValue() : nullptr; }
+ Quad* slices() const { return toCSSPrimitiveValue(m_slices).getQuadValue(); }
bool equals(const CSSBorderImageSliceValue&) const;
@@ -49,11 +49,11 @@ public:
// These four values are used to make "cuts" in the border image. They can be numbers
// or percentages.
- RefPtrWillBeMember<CSSPrimitiveValue> m_slices;
+ CSSValue m_slices;
bool m_fill;
private:
- CSSBorderImageSliceValue(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> slices, bool fill);
+ CSSBorderImageSliceValue(CSSPrimitiveValue slices, bool fill);
};
DEFINE_CSS_VALUE_TYPE_CASTS(CSSBorderImageSliceValue, isBorderImageSliceValue());
« no previous file with comments | « Source/core/css/CSSBasicShapes.cpp ('k') | Source/core/css/CSSBorderImageSliceValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698