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..a27c7b5e8849bd3a55a7a1a5fc3941721edb5294 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/CSSCustomVariableValue.h" |
Timothy Loh
2015/07/23 08:11:47
some unused includes
|
+#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(); |