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

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

Issue 2005203002: Make CSSParserImpl::m_context a const reference to avoid copies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 void consumeDeclarationList(CSSParserTokenRange, StyleRule::RuleType); 106 void consumeDeclarationList(CSSParserTokenRange, StyleRule::RuleType);
107 void consumeDeclaration(CSSParserTokenRange, StyleRule::RuleType); 107 void consumeDeclaration(CSSParserTokenRange, StyleRule::RuleType);
108 void consumeDeclarationValue(CSSParserTokenRange, CSSPropertyID, bool import ant, StyleRule::RuleType); 108 void consumeDeclarationValue(CSSParserTokenRange, CSSPropertyID, bool import ant, StyleRule::RuleType);
109 void consumeVariableValue(CSSParserTokenRange, const AtomicString& propertyN ame, bool important); 109 void consumeVariableValue(CSSParserTokenRange, const AtomicString& propertyN ame, bool important);
110 110
111 static PassOwnPtr<Vector<double>> consumeKeyframeKeyList(CSSParserTokenRange ); 111 static PassOwnPtr<Vector<double>> consumeKeyframeKeyList(CSSParserTokenRange );
112 112
113 // FIXME: Can we build StylePropertySets directly? 113 // FIXME: Can we build StylePropertySets directly?
114 // FIXME: Investigate using a smaller inline buffer 114 // FIXME: Investigate using a smaller inline buffer
115 HeapVector<CSSProperty, 256> m_parsedProperties; 115 HeapVector<CSSProperty, 256> m_parsedProperties;
116 CSSParserContext m_context; 116 const CSSParserContext& m_context;
117 117
118 Member<StyleSheetContents> m_styleSheet; 118 Member<StyleSheetContents> m_styleSheet;
119 119
120 // For the inspector 120 // For the inspector
121 CSSParserObserverWrapper* m_observerWrapper; 121 CSSParserObserverWrapper* m_observerWrapper;
122 }; 122 };
123 123
124 } // namespace blink 124 } // namespace blink
125 125
126 #endif // CSSParserImpl_h 126 #endif // CSSParserImpl_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698