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

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

Issue 1616423003: Fix selector namespace prefix resolution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review issues Created 4 years, 11 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 CSSParser_h 5 #ifndef CSSParser_h
6 #define CSSParser_h 6 #define CSSParser_h
7 7
8 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/css/CSSValue.h" 10 #include "core/css/CSSValue.h"
(...skipping 12 matching lines...) Expand all
23 class StyleRuleKeyframe; 23 class StyleRuleKeyframe;
24 class StyleSheetContents; 24 class StyleSheetContents;
25 25
26 // This class serves as the public API for the css/parser subsystem 26 // This class serves as the public API for the css/parser subsystem
27 class CORE_EXPORT CSSParser { 27 class CORE_EXPORT CSSParser {
28 STATIC_ONLY(CSSParser); 28 STATIC_ONLY(CSSParser);
29 public: 29 public:
30 // As well as regular rules, allows @import and @namespace but not @charset 30 // As well as regular rules, allows @import and @namespace but not @charset
31 static PassRefPtrWillBeRawPtr<StyleRuleBase> parseRule(const CSSParserContex t&, StyleSheetContents*, const String&); 31 static PassRefPtrWillBeRawPtr<StyleRuleBase> parseRule(const CSSParserContex t&, StyleSheetContents*, const String&);
32 static void parseSheet(const CSSParserContext&, StyleSheetContents*, const S tring&); 32 static void parseSheet(const CSSParserContext&, StyleSheetContents*, const S tring&);
33 static CSSSelectorList parseSelector(const CSSParserContext&, const String&) ; 33 static CSSSelectorList parseSelector(const CSSParserContext&, StyleSheetCont ents*, const String&);
34 static bool parseDeclarationList(const CSSParserContext&, MutableStyleProper tySet*, const String&); 34 static bool parseDeclarationList(const CSSParserContext&, MutableStyleProper tySet*, const String&);
35 // Returns whether anything was changed. 35 // Returns whether anything was changed.
36 static bool parseValue(MutableStylePropertySet*, CSSPropertyID unresolvedPro perty, const String&, bool important, StyleSheetContents*); 36 static bool parseValue(MutableStylePropertySet*, CSSPropertyID unresolvedPro perty, const String&, bool important, StyleSheetContents*);
37 37
38 static bool parseValueForCustomProperty(MutableStylePropertySet*, const Atom icString& propertyName, const String& value, bool important, StyleSheetContents* ); 38 static bool parseValueForCustomProperty(MutableStylePropertySet*, const Atom icString& propertyName, const String& value, bool important, StyleSheetContents* );
39 39
40 // This is for non-shorthands only 40 // This is for non-shorthands only
41 static PassRefPtrWillBeRawPtr<CSSValue> parseSingleValue(CSSPropertyID, cons t String&, const CSSParserContext& = strictCSSParserContext()); 41 static PassRefPtrWillBeRawPtr<CSSValue> parseSingleValue(CSSPropertyID, cons t String&, const CSSParserContext& = strictCSSParserContext());
42 42
43 static PassRefPtrWillBeRawPtr<CSSValue> parseFontFaceDescriptor(CSSPropertyI D, const String&, const CSSParserContext&); 43 static PassRefPtrWillBeRawPtr<CSSValue> parseFontFaceDescriptor(CSSPropertyI D, const String&, const CSSParserContext&);
(...skipping 13 matching lines...) Expand all
57 static void parseSheetForInspector(const CSSParserContext&, StyleSheetConten ts*, const String&, CSSParserObserver&); 57 static void parseSheetForInspector(const CSSParserContext&, StyleSheetConten ts*, const String&, CSSParserObserver&);
58 static void parseDeclarationListForInspector(const CSSParserContext&, const String&, CSSParserObserver&); 58 static void parseDeclarationListForInspector(const CSSParserContext&, const String&, CSSParserObserver&);
59 59
60 private: 60 private:
61 static bool parseValue(MutableStylePropertySet*, CSSPropertyID unresolvedPro perty, const String&, bool important, const CSSParserContext&); 61 static bool parseValue(MutableStylePropertySet*, CSSPropertyID unresolvedPro perty, const String&, bool important, const CSSParserContext&);
62 }; 62 };
63 63
64 } // namespace blink 64 } // namespace blink
65 65
66 #endif // CSSParser_h 66 #endif // CSSParser_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/StyleSheetContents.cpp ('k') | third_party/WebKit/Source/core/css/parser/CSSParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698