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

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

Issue 1304993002: Change Rect and Quad to be CSSValues (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@split_counter_out_attempt_3
Patch Set: Small change to generated style builder functions Created 5 years, 4 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/core.gypi ('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 a4df48550befb9b18061a78d0bb29a8a05b66980..f9832ba21f679c00c2171e554a46f91e844454fb 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/CSSQuadValue.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
@@ -34,14 +34,14 @@ namespace blink {
class CSSBorderImageSliceValue : public CSSValue {
public:
- static PassRefPtrWillBeRawPtr<CSSBorderImageSliceValue> create(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> slices, bool fill)
+ static PassRefPtrWillBeRawPtr<CSSBorderImageSliceValue> create(PassRefPtrWillBeRawPtr<CSSQuadValue> slices, bool fill)
{
return adoptRefWillBeNoop(new CSSBorderImageSliceValue(slices, fill));
}
String customCSSText() const;
- Quad* slices() const { return m_slices ? m_slices->getQuadValue() : nullptr; }
+ CSSQuadValue* slices() const { return m_slices.get(); }
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;
+ RefPtrWillBeMember<CSSQuadValue> m_slices;
bool m_fill;
private:
- CSSBorderImageSliceValue(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> slices, bool fill);
+ CSSBorderImageSliceValue(PassRefPtrWillBeRawPtr<CSSQuadValue> slices, bool fill);
};
DEFINE_CSS_VALUE_TYPE_CASTS(CSSBorderImageSliceValue, isBorderImageSliceValue());
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/css/CSSBorderImageSliceValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698