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

Side by Side Diff: third_party/WebKit/Source/core/css/parser/CSSParserImpl.h

Issue 1920583002: NOT FOR LANDING: Hack up CSSParser for speed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missing consts. Created 4 years, 8 months 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698