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

Unified Diff: third_party/WebKit/Source/core/css/CSSVariableData.h

Issue 1406993009: Revert "CSS Custom Properties (Variables)" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/CSSVariableData.h
diff --git a/third_party/WebKit/Source/core/css/CSSVariableData.h b/third_party/WebKit/Source/core/css/CSSVariableData.h
deleted file mode 100644
index 9b350338e285513065ce3200fb5dc244ba6951cf..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/css/CSSVariableData.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CSSVariableData_h
-#define CSSVariableData_h
-
-#include "core/css/parser/CSSParserToken.h"
-#include "core/css/parser/CSSParserTokenRange.h"
-#include "wtf/RefCounted.h"
-#include "wtf/text/WTFString.h"
-
-namespace blink {
-
-class CSSParserTokenRange;
-
-class CSSVariableData : public RefCounted<CSSVariableData> {
- WTF_MAKE_NONCOPYABLE(CSSVariableData);
- USING_FAST_MALLOC(CSSVariableData);
-public:
- static PassRefPtr<CSSVariableData> create(const CSSParserTokenRange& range, bool needsVariableResolution = true)
- {
- return adoptRef(new CSSVariableData(range, needsVariableResolution));
- }
-
- static PassRefPtr<CSSVariableData> createResolved(const Vector<CSSParserToken>& resolvedTokens)
- {
- return adoptRef(new CSSVariableData(resolvedTokens));
- }
-
- CSSParserTokenRange tokenRange() { return m_tokens; }
-
- const Vector<CSSParserToken>& tokens() { return m_tokens; }
-
- bool needsVariableResolution() const { return m_needsVariableResolution; }
-private:
- CSSVariableData(const CSSParserTokenRange&, bool needsVariableResolution);
-
- // We can safely copy the tokens (which have raw pointers to substrings) because
- // StylePropertySets contain references to CSSCustomPropertyDeclarations, which
- // point to the unresolved CSSVariableData values that own the backing strings
- // this will potentially reference.
- CSSVariableData(const Vector<CSSParserToken>& resolvedTokens)
- : m_tokens(resolvedTokens)
- , m_needsVariableResolution(false)
- { }
-
- void consumeAndUpdateTokens(const CSSParserTokenRange&);
- template<typename CharacterType> void updateTokens(const CSSParserTokenRange&);
-
- String m_backingString;
- Vector<CSSParserToken> m_tokens;
- const bool m_needsVariableResolution;
-};
-
-} // namespace blink
-
-#endif // CSSVariableData_h
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSValueKeywords.in ('k') | third_party/WebKit/Source/core/css/CSSVariableData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698