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

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

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/CSSBorderImageSliceValue.h ('k') | Source/core/css/CSSCalculationValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSBorderImageSliceValue.cpp
diff --git a/Source/core/css/CSSBorderImageSliceValue.cpp b/Source/core/css/CSSBorderImageSliceValue.cpp
index f68080a669f8cd48371307116400da75f9873b1e..43fd6acda2c5315047b8a8ae90eed268be7aedd7 100644
--- a/Source/core/css/CSSBorderImageSliceValue.cpp
+++ b/Source/core/css/CSSBorderImageSliceValue.cpp
@@ -30,7 +30,7 @@
namespace blink {
-CSSBorderImageSliceValue::CSSBorderImageSliceValue(PassRefPtrWillBeRawPtr<CSSPrimitiveValue> slices, bool fill)
+CSSBorderImageSliceValue::CSSBorderImageSliceValue(CSSPrimitiveValue slices, bool fill)
: CSSValueObject(BorderImageSliceClass)
, m_slices(slices)
, m_fill(fill)
@@ -40,7 +40,7 @@ CSSBorderImageSliceValue::CSSBorderImageSliceValue(PassRefPtrWillBeRawPtr<CSSPri
String CSSBorderImageSliceValue::customCSSText() const
{
// Dump the slices first.
- String text = m_slices->cssText();
+ String text = m_slices.cssText();
// Now the fill keywords if it is present.
if (m_fill)
@@ -50,7 +50,7 @@ String CSSBorderImageSliceValue::customCSSText() const
bool CSSBorderImageSliceValue::equals(const CSSBorderImageSliceValue& other) const
{
- return m_fill == other.m_fill && compareCSSValuePtr(m_slices, other.m_slices);
+ return m_fill == other.m_fill && m_slices.equals(other.m_slices);
}
DEFINE_TRACE_AFTER_DISPATCH(CSSBorderImageSliceValue)
« no previous file with comments | « Source/core/css/CSSBorderImageSliceValue.h ('k') | Source/core/css/CSSCalculationValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698