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

Unified Diff: Source/core/css/resolver/StyleResolverState.cpp

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ToTed Created 5 years, 4 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/resolver/StyleResolverState.cpp
diff --git a/Source/core/css/resolver/StyleResolverState.cpp b/Source/core/css/resolver/StyleResolverState.cpp
index d883d7cf5ad09cfa353b0324eff7b2f3fb371b5b..cd028b86e348af6086f21baf9363ce10adbeee9b 100644
--- a/Source/core/css/resolver/StyleResolverState.cpp
+++ b/Source/core/css/resolver/StyleResolverState.cpp
@@ -25,6 +25,7 @@
#include "core/animation/css/CSSAnimations.h"
#include "core/dom/Node.h"
#include "core/dom/NodeComputedStyle.h"
+#include "core/dom/StyleEngine.h"
#include "core/frame/FrameHost.h"
namespace blink {
@@ -63,6 +64,11 @@ void StyleResolverState::setAnimationUpdate(PassOwnPtrWillBeRawPtr<CSSAnimationU
m_animationUpdate = update;
}
+bool StyleResolverState::documentUsesCSSVariables() const
+{
+ return m_document->styleEngine().usesVariables();
+}
+
PassOwnPtrWillBeRawPtr<CSSAnimationUpdate> StyleResolverState::takeAnimationUpdate()
{
return m_animationUpdate.release();

Powered by Google App Engine
This is Rietveld 408576698