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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleResolverState.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: Fix dates and remove unnecessary comments 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/resolver/StyleResolverState.h
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleResolverState.h b/third_party/WebKit/Source/core/css/resolver/StyleResolverState.h
index f81711704b1f1a135f13223399229f40246de861..69762ecf69bae444964608845d9f7078b02da3ee 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleResolverState.h
+++ b/third_party/WebKit/Source/core/css/resolver/StyleResolverState.h
@@ -160,6 +160,9 @@ public:
void setCustomPropertySetForApplyAtRule(const String&, StylePropertySet*);
StylePropertySet* customPropertySetForApplyAtRule(const String&);
+ void setCssValueForLonghandPropertyId(CSSPropertyID, const CSSValue*);
Timothy Loh 2016/06/22 00:06:12 Css -> CSS
Andy Mutton 2016/06/24 04:53:26 Blurgh! Done.
+ const CSSValue* cssValueForLonghandPropertyId(CSSPropertyID);
+
private:
ElementResolveContext m_elementContext;
Member<Document> m_document;
@@ -186,6 +189,8 @@ private:
ElementStyleResources m_elementStyleResources;
HeapHashMap<String, Member<StylePropertySet>> m_customPropertySetsForApplyAtRule;
+
+ HeapHashMap<CSSPropertyID, Member<const CSSValue>> m_parsedLonghandCssValueForVariableResolver;
Timothy Loh 2016/06/22 00:06:12 I think this is insufficient for cases like: $0.s
Andy Mutton 2016/06/24 04:53:26 Done. Weird, more complicated caching structure ad
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698