| 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 CSSVariableParser_h | 5 #ifndef CSSVariableParser_h |
| 6 #define CSSVariableParser_h | 6 #define CSSVariableParser_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/css/parser/CSSParserTokenRange.h" | 9 #include "core/css/parser/CSSParserTokenRange.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| 11 #include "platform/wtf/RefPtr.h" | 11 #include "platform/wtf/RefPtr.h" |
| 12 #include "platform/wtf/text/AtomicString.h" | 12 #include "platform/wtf/text/AtomicString.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class CSSCustomPropertyDeclaration; | 16 class CSSCustomPropertyDeclaration; |
| 17 class CSSParserContext; |
| 17 class CSSVariableReferenceValue; | 18 class CSSVariableReferenceValue; |
| 18 | 19 |
| 19 class CORE_EXPORT CSSVariableParser { | 20 class CORE_EXPORT CSSVariableParser { |
| 20 public: | 21 public: |
| 21 static bool ContainsValidVariableReferences(CSSParserTokenRange); | 22 static bool ContainsValidVariableReferences(CSSParserTokenRange); |
| 22 | 23 |
| 23 static CSSCustomPropertyDeclaration* ParseDeclarationValue( | 24 static CSSCustomPropertyDeclaration* ParseDeclarationValue( |
| 24 const AtomicString&, | 25 const AtomicString&, |
| 25 CSSParserTokenRange, | 26 CSSParserTokenRange, |
| 26 bool is_animation_tainted); | 27 bool is_animation_tainted); |
| 27 static CSSVariableReferenceValue* ParseRegisteredPropertyValue( | 28 static CSSVariableReferenceValue* ParseRegisteredPropertyValue( |
| 28 CSSParserTokenRange, | 29 CSSParserTokenRange, |
| 30 const CSSParserContext&, |
| 29 bool require_var_reference, | 31 bool require_var_reference, |
| 30 bool is_animation_tainted); | 32 bool is_animation_tainted); |
| 31 | 33 |
| 32 static bool IsValidVariableName(const CSSParserToken&); | 34 static bool IsValidVariableName(const CSSParserToken&); |
| 33 static bool IsValidVariableName(const String&); | 35 static bool IsValidVariableName(const String&); |
| 34 }; | 36 }; |
| 35 | 37 |
| 36 } // namespace blink | 38 } // namespace blink |
| 37 | 39 |
| 38 #endif // CSSVariableParser_h | 40 #endif // CSSVariableParser_h |
| OLD | NEW |