| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CSSVariableData_h | 5 #ifndef CSSVariableData_h |
| 6 #define CSSVariableData_h | 6 #define CSSVariableData_h |
| 7 | 7 |
| 8 #include "core/css/StylePropertySet.h" | 8 #include "core/css/StylePropertySet.h" |
| 9 #include "core/css/parser/CSSParserToken.h" | 9 #include "core/css/parser/CSSParserToken.h" |
| 10 #include "core/css/parser/CSSParserTokenRange.h" | 10 #include "core/css/parser/CSSParserTokenRange.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 bool isAnimationTainted) { | 35 bool isAnimationTainted) { |
| 36 return adoptRef(new CSSVariableData( | 36 return adoptRef(new CSSVariableData( |
| 37 resolvedTokens, unresolvedData.m_backingString, isAnimationTainted)); | 37 resolvedTokens, unresolvedData.m_backingString, isAnimationTainted)); |
| 38 } | 38 } |
| 39 | 39 |
| 40 CSSParserTokenRange tokenRange() const { return m_tokens; } | 40 CSSParserTokenRange tokenRange() const { return m_tokens; } |
| 41 | 41 |
| 42 const Vector<CSSParserToken>& tokens() const { return m_tokens; } | 42 const Vector<CSSParserToken>& tokens() const { return m_tokens; } |
| 43 | 43 |
| 44 bool operator==(const CSSVariableData& other) const; | 44 bool operator==(const CSSVariableData& other) const; |
| 45 bool operator!=(const CSSVariableData& other) const { |
| 46 return !(*this == other); |
| 47 } |
| 45 | 48 |
| 46 bool isAnimationTainted() const { return m_isAnimationTainted; } | 49 bool isAnimationTainted() const { return m_isAnimationTainted; } |
| 47 | 50 |
| 48 bool needsVariableResolution() const { return m_needsVariableResolution; } | 51 bool needsVariableResolution() const { return m_needsVariableResolution; } |
| 49 | 52 |
| 50 const CSSValue* parseForSyntax(const CSSSyntaxDescriptor&) const; | 53 const CSSValue* parseForSyntax(const CSSSyntaxDescriptor&) const; |
| 51 | 54 |
| 52 StylePropertySet* propertySet(); | 55 StylePropertySet* propertySet(); |
| 53 | 56 |
| 54 private: | 57 private: |
| (...skipping 25 matching lines...) Expand all Loading... |
| 80 const bool m_needsVariableResolution; | 83 const bool m_needsVariableResolution; |
| 81 | 84 |
| 82 // Parsed representation for @apply | 85 // Parsed representation for @apply |
| 83 bool m_cachedPropertySet; | 86 bool m_cachedPropertySet; |
| 84 Persistent<StylePropertySet> m_propertySet; | 87 Persistent<StylePropertySet> m_propertySet; |
| 85 }; | 88 }; |
| 86 | 89 |
| 87 } // namespace blink | 90 } // namespace blink |
| 88 | 91 |
| 89 #endif // CSSVariableData_h | 92 #endif // CSSVariableData_h |
| OLD | NEW |