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..c1a8ad4df9ca15952ae8f462e13bb8e53a394b2c 100644 |
--- a/Source/core/css/resolver/StyleResolverState.cpp |
+++ b/Source/core/css/resolver/StyleResolverState.cpp |
@@ -23,8 +23,11 @@ |
#include "core/css/resolver/StyleResolverState.h" |
#include "core/animation/css/CSSAnimations.h" |
+#include "core/css/CSSVariableValue.h" |
+#include "core/css/resolver/CSSVariableResolver.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 +66,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(); |