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

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

Issue 2812743003: Rename cleanup in comments in css/ directory. (Closed)
Patch Set: Created 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CSSLazyParsingState_h 5 #ifndef CSSLazyParsingState_h
6 #define CSSLazyParsingState_h 6 #define CSSLazyParsingState_h
7 7
8 #include "core/css/CSSSelectorList.h" 8 #include "core/css/CSSSelectorList.h"
9 #include "core/css/StyleSheetContents.h" 9 #include "core/css/StyleSheetContents.h"
10 #include "core/css/parser/CSSParserMode.h" 10 #include "core/css/parser/CSSParserMode.h"
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 CSSLazyParsingState(const CSSParserContext*, 25 CSSLazyParsingState(const CSSParserContext*,
26 Vector<String> escaped_strings, 26 Vector<String> escaped_strings,
27 const String& sheet_text, 27 const String& sheet_text,
28 StyleSheetContents*); 28 StyleSheetContents*);
29 29
30 // Called when all lazy property parsers are initialized. At this point we 30 // Called when all lazy property parsers are initialized. At this point we
31 // know the total number of style rules that deferred parsing. 31 // know the total number of style rules that deferred parsing.
32 void FinishInitialParsing(); 32 void FinishInitialParsing();
33 33
34 // Helper method used to bump m_totalStyleRules. 34 // Helper method used to bump total_style_rules_.
35 CSSLazyPropertyParserImpl* CreateLazyParser(const CSSParserTokenRange& block); 35 CSSLazyPropertyParserImpl* CreateLazyParser(const CSSParserTokenRange& block);
36 36
37 const CSSParserContext* Context(); 37 const CSSParserContext* Context();
38 38
39 void CountRuleParsed(); 39 void CountRuleParsed();
40 40
41 bool ShouldLazilyParseProperties(const CSSSelectorList&, 41 bool ShouldLazilyParseProperties(const CSSSelectorList&,
42 const CSSParserTokenRange& block) const; 42 const CSSParserTokenRange& block) const;
43 43
44 DECLARE_TRACE(); 44 DECLARE_TRACE();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 // Whether or not use counting is enabled for parsing. This will usually be 85 // Whether or not use counting is enabled for parsing. This will usually be
86 // true, except for when stylesheets with @imports are removed from the page. 86 // true, except for when stylesheets with @imports are removed from the page.
87 // See StyleRuleImport::setCSSStyleSheet. 87 // See StyleRuleImport::setCSSStyleSheet.
88 const bool should_use_count_; 88 const bool should_use_count_;
89 }; 89 };
90 90
91 } // namespace blink 91 } // namespace blink
92 92
93 #endif // CSSLazyParsingState_h 93 #endif // CSSLazyParsingState_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698