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

Unified Diff: third_party/WebKit/Source/core/css/CSSValue.cpp

Issue 2089593002: Add expansion of shorthands with custom properties to longhands using a pending substition value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renames, signature update and master merge Created 4 years, 6 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
Index: third_party/WebKit/Source/core/css/CSSValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSValue.cpp b/third_party/WebKit/Source/core/css/CSSValue.cpp
index 710fe5bd547c16b26715d7d6e888d50cb9973f91..d2c1e0795fa6787e92290ecd47ed906e2902e62d 100644
--- a/third_party/WebKit/Source/core/css/CSSValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSValue.cpp
@@ -49,6 +49,7 @@
#include "core/css/CSSInitialValue.h"
#include "core/css/CSSPaintValue.h"
#include "core/css/CSSPathValue.h"
+#include "core/css/CSSPendingSubstitutionValue.h"
#include "core/css/CSSPrimitiveValue.h"
#include "core/css/CSSQuadValue.h"
#include "core/css/CSSReflectValue.h"
@@ -184,6 +185,8 @@ bool CSSValue::equals(const CSSValue& other) const
return compareCSSValues<CSSCustomPropertyDeclaration>(*this, other);
case VariableReferenceClass:
return compareCSSValues<CSSVariableReferenceValue>(*this, other);
+ case PendingSubstitutionValueClass:
+ return compareCSSValues<CSSPendingSubstitutionValue>(*this, other);
}
ASSERT_NOT_REACHED();
return false;
@@ -276,6 +279,8 @@ String CSSValue::cssText() const
return toCSSVariableReferenceValue(this)->customCSSText();
case CustomPropertyDeclarationClass:
return toCSSCustomPropertyDeclaration(this)->customCSSText();
+ case PendingSubstitutionValueClass:
+ return toCSSPendingSubstitutionValue(this)->customCSSText();
}
ASSERT_NOT_REACHED();
return String();
@@ -407,6 +412,9 @@ void CSSValue::destroy()
case CustomPropertyDeclarationClass:
delete toCSSCustomPropertyDeclaration(this);
return;
+ case PendingSubstitutionValueClass:
+ delete toCSSPendingSubstitutionValue(this);
+ return;
}
ASSERT_NOT_REACHED();
}
@@ -537,6 +545,9 @@ void CSSValue::finalizeGarbageCollectedObject()
case CustomPropertyDeclarationClass:
toCSSCustomPropertyDeclaration(this)->~CSSCustomPropertyDeclaration();
return;
+ case PendingSubstitutionValueClass:
+ toCSSPendingSubstitutionValue(this)->~CSSPendingSubstitutionValue();
+ return;
}
ASSERT_NOT_REACHED();
}
@@ -667,6 +678,9 @@ DEFINE_TRACE(CSSValue)
case CustomPropertyDeclarationClass:
toCSSCustomPropertyDeclaration(this)->traceAfterDispatch(visitor);
return;
+ case PendingSubstitutionValueClass:
+ toCSSPendingSubstitutionValue(this)->traceAfterDispatch(visitor);
+ return;
}
ASSERT_NOT_REACHED();
}
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSValue.h ('k') | third_party/WebKit/Source/core/css/StylePropertySerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698