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

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

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove unnecessary enum Created 5 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: Source/core/css/StylePropertySet.cpp
diff --git a/Source/core/css/StylePropertySet.cpp b/Source/core/css/StylePropertySet.cpp
index e7b588b4bb69e3459690728e2bdf7208d76414d5..c2fa5aa2a642921dfde210f6c6f8d53e10fafef7 100644
--- a/Source/core/css/StylePropertySet.cpp
+++ b/Source/core/css/StylePropertySet.cpp
@@ -481,6 +481,17 @@ int MutableStylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const
return (it == end) ? -1 : it - begin;
}
+unsigned StylePropertySet::variableCount() const
alancutter (OOO until 2018) 2015/07/14 06:12:57 Is this used?
+{
+ ASSERT(RuntimeEnabledFeatures::cssVariablesEnabled());
+ unsigned count = 0;
+ for (unsigned i = 0; i < propertyCount(); ++i) {
+ if (propertyAt(i).id() == CSSPropertyVariable)
+ count++;
+ }
+ return count;
+}
+
DEFINE_TRACE_AFTER_DISPATCH(MutableStylePropertySet)
{
#if ENABLE(OILPAN)

Powered by Google App Engine
This is Rietveld 408576698