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

Unified Diff: third_party/WebKit/Source/core/css/CSSPendingSubstitutionValue.h

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/CSSPendingSubstitutionValue.h
diff --git a/third_party/WebKit/Source/core/css/CSSPendingSubstitutionValue.h b/third_party/WebKit/Source/core/css/CSSPendingSubstitutionValue.h
new file mode 100644
index 0000000000000000000000000000000000000000..736ed647a07f379b99b709c32efac1d11c7f35ef
--- /dev/null
+++ b/third_party/WebKit/Source/core/css/CSSPendingSubstitutionValue.h
@@ -0,0 +1,51 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CSSPendingSubstitutionValue_h
+#define CSSPendingSubstitutionValue_h
+
+#include "core/CSSPropertyNames.h"
+#include "core/css/CSSValue.h"
+#include "core/css/CSSVariableReferenceValue.h"
+
+namespace blink {
+
+class CSSPendingSubstitutionValue : public CSSValue {
+public:
+ static CSSPendingSubstitutionValue* create(CSSPropertyID shorthandPropertyId, CSSVariableReferenceValue* shorthandValue)
+ {
+ return new CSSPendingSubstitutionValue(shorthandPropertyId, shorthandValue);
+ }
+
+ CSSVariableReferenceValue* shorthandValue() const
+ {
+ return m_shorthandValue.get();
+ }
+
+ CSSPropertyID shorthandPropertyId() const
+ {
+ return m_shorthandPropertyId;
+ }
+
+ bool equals(const CSSPendingSubstitutionValue& other) const { return m_shorthandValue == other.m_shorthandValue; }
+ String customCSSText() const;
+
+ DECLARE_TRACE_AFTER_DISPATCH();
+private:
+ CSSPendingSubstitutionValue(CSSPropertyID shorthandPropertyId, CSSVariableReferenceValue* shorthandValue)
+ : CSSValue(PendingSubstitutionValueClass)
+ , m_shorthandPropertyId(shorthandPropertyId)
+ , m_shorthandValue(shorthandValue)
+ {
+ }
+
+ CSSPropertyID m_shorthandPropertyId;
+ Member<CSSVariableReferenceValue> m_shorthandValue;
+};
+
+DEFINE_CSS_VALUE_TYPE_CASTS(CSSPendingSubstitutionValue, isPendingSubstitutionValue());
+
+} // namespace blink
+
+#endif // CSSPendingSubstitutionValue_h
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/css/CSSPendingSubstitutionValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698