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

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

Issue 951213004: Make CSSRuleSourceData use the CSSRule Type enum (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use StyleRule::Type Created 5 years, 10 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 | « Source/core/css/parser/CSSGrammar.y ('k') | Source/core/css/parser/CSSParserImpl.cpp » ('j') | 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 PassRefPtrWillBeRawPtr<StyleRuleMedia> consumeMediaRule(CSSParserTokenRange prelude, CSSParserTokenRange block); 79 PassRefPtrWillBeRawPtr<StyleRuleMedia> consumeMediaRule(CSSParserTokenRange prelude, CSSParserTokenRange block);
80 PassRefPtrWillBeRawPtr<StyleRuleSupports> consumeSupportsRule(CSSParserToken Range prelude, CSSParserTokenRange block); 80 PassRefPtrWillBeRawPtr<StyleRuleSupports> consumeSupportsRule(CSSParserToken Range prelude, CSSParserTokenRange block);
81 PassRefPtrWillBeRawPtr<StyleRuleViewport> consumeViewportRule(CSSParserToken Range prelude, CSSParserTokenRange block); 81 PassRefPtrWillBeRawPtr<StyleRuleViewport> consumeViewportRule(CSSParserToken Range prelude, CSSParserTokenRange block);
82 PassRefPtrWillBeRawPtr<StyleRuleFontFace> consumeFontFaceRule(CSSParserToken Range prelude, CSSParserTokenRange block); 82 PassRefPtrWillBeRawPtr<StyleRuleFontFace> consumeFontFaceRule(CSSParserToken Range prelude, CSSParserTokenRange block);
83 PassRefPtrWillBeRawPtr<StyleRuleKeyframes> consumeKeyframesRule(bool webkitP refixed, CSSParserTokenRange prelude, CSSParserTokenRange block); 83 PassRefPtrWillBeRawPtr<StyleRuleKeyframes> consumeKeyframesRule(bool webkitP refixed, CSSParserTokenRange prelude, CSSParserTokenRange block);
84 PassRefPtrWillBeRawPtr<StyleRulePage> consumePageRule(CSSParserTokenRange pr elude, CSSParserTokenRange block); 84 PassRefPtrWillBeRawPtr<StyleRulePage> consumePageRule(CSSParserTokenRange pr elude, CSSParserTokenRange block);
85 85
86 PassRefPtrWillBeRawPtr<StyleRuleKeyframe> consumeKeyframeStyleRule(CSSParser TokenRange prelude, CSSParserTokenRange block); 86 PassRefPtrWillBeRawPtr<StyleRuleKeyframe> consumeKeyframeStyleRule(CSSParser TokenRange prelude, CSSParserTokenRange block);
87 PassRefPtrWillBeRawPtr<StyleRule> consumeStyleRule(CSSParserTokenRange prelu de, CSSParserTokenRange block); 87 PassRefPtrWillBeRawPtr<StyleRule> consumeStyleRule(CSSParserTokenRange prelu de, CSSParserTokenRange block);
88 88
89 // FIXME: We should use a CSSRule::Type here 89 void consumeDeclarationList(CSSParserTokenRange, StyleRule::Type);
90 void consumeDeclarationList(CSSParserTokenRange, CSSRuleSourceData::Type); 90 void consumeDeclaration(CSSParserTokenRange, StyleRule::Type);
91 void consumeDeclaration(CSSParserTokenRange, CSSRuleSourceData::Type); 91 void consumeDeclarationValue(CSSParserTokenRange, CSSPropertyID, bool import ant, StyleRule::Type);
92 void consumeDeclarationValue(CSSParserTokenRange, CSSPropertyID, bool import ant, CSSRuleSourceData::Type);
93 92
94 static PassOwnPtr<Vector<double>> consumeKeyframeKeyList(CSSParserTokenRange ); 93 static PassOwnPtr<Vector<double>> consumeKeyframeKeyList(CSSParserTokenRange );
95 94
96 // FIXME: Can we build StylePropertySets directly? 95 // FIXME: Can we build StylePropertySets directly?
97 // FIXME: Investigate using a smaller inline buffer 96 // FIXME: Investigate using a smaller inline buffer
98 WillBeHeapVector<CSSProperty, 256> m_parsedProperties; 97 WillBeHeapVector<CSSProperty, 256> m_parsedProperties;
99 Vector<CSSParserToken> m_tokens; 98 Vector<CSSParserToken> m_tokens;
100 CSSParserContext m_context; 99 CSSParserContext m_context;
101 100
102 AtomicString m_defaultNamespace; 101 AtomicString m_defaultNamespace;
103 RawPtrWillBeMember<StyleSheetContents> m_styleSheet; 102 RawPtrWillBeMember<StyleSheetContents> m_styleSheet;
104 }; 103 };
105 104
106 } // namespace blink 105 } // namespace blink
107 106
108 #endif // CSSParserImpl_h 107 #endif // CSSParserImpl_h
OLDNEW
« no previous file with comments | « Source/core/css/parser/CSSGrammar.y ('k') | Source/core/css/parser/CSSParserImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698