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/CSSVariableData.h

Issue 1645433002: Basic implementation of @apply (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix expted.txt for failing test Created 4 years, 10 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/CSSVariableData.h
diff --git a/third_party/WebKit/Source/core/css/CSSVariableData.h b/third_party/WebKit/Source/core/css/CSSVariableData.h
index 5e195110da8a8bf82d3396f8542f655d22ba2a0e..974a9bd4e16a6781bc48b939965d9ce0c9329391 100644
--- a/third_party/WebKit/Source/core/css/CSSVariableData.h
+++ b/third_party/WebKit/Source/core/css/CSSVariableData.h
@@ -5,6 +5,7 @@
#ifndef CSSVariableData_h
#define CSSVariableData_h
+#include "core/css/StylePropertySet.h"
#include "core/css/parser/CSSParserToken.h"
#include "core/css/parser/CSSParserTokenRange.h"
#include "wtf/RefCounted.h"
@@ -35,6 +36,9 @@ public:
bool operator==(const CSSVariableData& other) const;
bool needsVariableResolution() const { return m_needsVariableResolution; }
+
+ const StylePropertySet* propertySet();
+
private:
CSSVariableData(const CSSParserTokenRange&, bool needsVariableResolution);
@@ -46,6 +50,7 @@ private:
: m_backingString(backingString)
, m_tokens(resolvedTokens)
, m_needsVariableResolution(false)
+ , m_cachedPropertySet(false)
{ }
void consumeAndUpdateTokens(const CSSParserTokenRange&);
@@ -54,6 +59,10 @@ private:
String m_backingString;
Vector<CSSParserToken> m_tokens;
const bool m_needsVariableResolution;
+
+ // Parsed representation for @apply
+ bool m_cachedPropertySet;
+ RefPtrWillBePersistent<StylePropertySet> m_propertySet;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698