| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CSSPropertyAPI_h | 5 #ifndef CSSPropertyAPI_h |
| 6 #define CSSPropertyAPI_h | 6 #define CSSPropertyAPI_h |
| 7 | 7 |
| 8 #include "core/CSSPropertyNames.h" | 8 #include "core/CSSPropertyNames.h" |
| 9 #include "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 public: | 34 public: |
| 35 // Parses a single CSS property and returns the corresponding CSSValue. If the | 35 // Parses a single CSS property and returns the corresponding CSSValue. If the |
| 36 // input is invalid it returns nullptr. | 36 // input is invalid it returns nullptr. |
| 37 static const CSSValue* parseSingleValue(CSSParserTokenRange&, | 37 static const CSSValue* parseSingleValue(CSSParserTokenRange&, |
| 38 const CSSParserContext*) { | 38 const CSSParserContext*) { |
| 39 // No code should reach here, since properties either have their own | 39 // No code should reach here, since properties either have their own |
| 40 // implementations of this method or store nullptr in their descriptor. | 40 // implementations of this method or store nullptr in their descriptor. |
| 41 NOTREACHED(); | 41 NOTREACHED(); |
| 42 return nullptr; | 42 return nullptr; |
| 43 } | 43 } |
| 44 |
| 45 static bool parseShorthand(bool, |
| 46 CSSParserTokenRange&, |
| 47 const CSSParserContext*) { |
| 48 // No code should reach here, since properties either have their own |
| 49 // implementations of this method or store nullptr in their descriptor. |
| 50 NOTREACHED(); |
| 51 return false; |
| 52 } |
| 44 }; | 53 }; |
| 45 | 54 |
| 46 } // namespace blink | 55 } // namespace blink |
| 47 | 56 |
| 48 #endif // CSSPropertyAPI_h | 57 #endif // CSSPropertyAPI_h |
| OLD | NEW |