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

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: ToT-ed again... Created 5 years, 5 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..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();

Powered by Google App Engine
This is Rietveld 408576698