Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CSSParserImpl_h | 5 #ifndef CSSParserImpl_h |
| 6 #define CSSParserImpl_h | 6 #define CSSParserImpl_h |
| 7 | 7 |
| 8 #include "core/CSSPropertyNames.h" | 8 #include "core/CSSPropertyNames.h" |
| 9 #include "core/css/CSSProperty.h" | 9 #include "core/css/CSSProperty.h" |
| 10 #include "core/css/CSSPropertySourceData.h" | 10 #include "core/css/CSSPropertySourceData.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 105 void consumeDeclarationList(CSSParserTokenRange, StyleRule::RuleType); | 105 void consumeDeclarationList(CSSParserTokenRange, StyleRule::RuleType); |
| 106 void consumeDeclaration(CSSParserTokenRange, StyleRule::RuleType); | 106 void consumeDeclaration(CSSParserTokenRange, StyleRule::RuleType); |
| 107 void consumeDeclarationValue(CSSParserTokenRange, CSSPropertyID, bool import ant, StyleRule::RuleType); | 107 void consumeDeclarationValue(CSSParserTokenRange, CSSPropertyID, bool import ant, StyleRule::RuleType); |
| 108 void consumeVariableValue(CSSParserTokenRange, const AtomicString& propertyN ame, bool important); | 108 void consumeVariableValue(CSSParserTokenRange, const AtomicString& propertyN ame, bool important); |
| 109 | 109 |
| 110 static PassOwnPtr<Vector<double>> consumeKeyframeKeyList(CSSParserTokenRange ); | 110 static PassOwnPtr<Vector<double>> consumeKeyframeKeyList(CSSParserTokenRange ); |
| 111 | 111 |
| 112 // FIXME: Can we build StylePropertySets directly? | 112 // FIXME: Can we build StylePropertySets directly? |
| 113 // FIXME: Investigate using a smaller inline buffer | 113 // FIXME: Investigate using a smaller inline buffer |
| 114 HeapVector<CSSProperty, 256> m_parsedProperties; | 114 HeapVector<CSSProperty, 256> m_parsedProperties; |
| 115 CSSParserContext m_context; | 115 const CSSParserContext& m_context; |
|
esprehn
2016/04/22 23:30:57
This only saved a tiny bit, but every copy counts.
| |
| 116 | 116 |
| 117 Member<StyleSheetContents> m_styleSheet; | 117 Member<StyleSheetContents> m_styleSheet; |
| 118 | 118 |
| 119 // For the inspector | 119 // For the inspector |
| 120 CSSParserObserverWrapper* m_observerWrapper; | 120 CSSParserObserverWrapper* m_observerWrapper; |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace blink | 123 } // namespace blink |
| 124 | 124 |
| 125 #endif // CSSParserImpl_h | 125 #endif // CSSParserImpl_h |
| OLD | NEW |