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

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

Issue 2358203003: CSS Properties and Values API: Use initial value where appropriate for var() (Closed)
Patch Set: bla Created 4 years, 3 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/PropertyRegistry.cpp
diff --git a/third_party/WebKit/Source/core/css/PropertyRegistry.cpp b/third_party/WebKit/Source/core/css/PropertyRegistry.cpp
index a06c989520cc36573d4179800724041a869be9a8..c23bc1173f125d737e57c7edddcb5cd2fdb61764 100644
--- a/third_party/WebKit/Source/core/css/PropertyRegistry.cpp
+++ b/third_party/WebKit/Source/core/css/PropertyRegistry.cpp
@@ -6,12 +6,12 @@
namespace blink {
-void PropertyRegistry::registerProperty(const AtomicString& name, const CSSSyntaxDescriptor& syntax, bool inherits, const CSSValue* initial)
+void PropertyRegistry::registerProperty(const AtomicString& name, const CSSSyntaxDescriptor& syntax, bool inherits, const CSSValue* initial, PassRefPtr<CSSVariableData> initialVariableData)
{
DCHECK(!registration(name));
// TODO(timloh): We only support inherited properties for now.
inherits = true;
- m_registrations.set(name, new Registration(syntax, inherits, initial));
+ m_registrations.set(name, new Registration(syntax, inherits, initial, initialVariableData));
}
void PropertyRegistry::unregisterProperty(const AtomicString& name)

Powered by Google App Engine
This is Rietveld 408576698