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

Unified Diff: third_party/WebKit/Source/core/css/CSSStyleSheet.h

Issue 2469693002: Reduce CSSStyleSheet size by moving bool member. (Closed)
Patch Set: Curly brace sneaked in. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSStyleSheet.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSStyleSheet.h
diff --git a/third_party/WebKit/Source/core/css/CSSStyleSheet.h b/third_party/WebKit/Source/core/css/CSSStyleSheet.h
index 84e6884b9d99b432ba7b5e35d6810efe581a44d0..1ad6f458e2668f216503bd018bab13f3d7b49023 100644
--- a/third_party/WebKit/Source/core/css/CSSStyleSheet.h
+++ b/third_party/WebKit/Source/core/css/CSSStyleSheet.h
@@ -152,8 +152,9 @@ class CORE_EXPORT CSSStyleSheet final : public StyleSheet {
void setLoadCompleted(bool);
Member<StyleSheetContents> m_contents;
- bool m_isInlineStylesheet;
- bool m_isDisabled;
+ bool m_isInlineStylesheet = false;
+ bool m_isDisabled = false;
+ bool m_loadCompleted = false;
String m_title;
Member<MediaQuerySet> m_mediaQueries;
@@ -163,7 +164,6 @@ class CORE_EXPORT CSSStyleSheet final : public StyleSheet {
Member<CSSRule> m_ownerRule;
TextPosition m_startPosition;
- bool m_loadCompleted;
mutable Member<MediaList> m_mediaCSSOMWrapper;
mutable HeapVector<Member<CSSRule>> m_childRuleCSSOMWrappers;
mutable Member<CSSRuleList> m_ruleListCSSOMWrapper;
@@ -176,7 +176,7 @@ inline CSSStyleSheet::RuleMutationScope::RuleMutationScope(CSSStyleSheet* sheet)
}
inline CSSStyleSheet::RuleMutationScope::RuleMutationScope(CSSRule* rule)
- : m_styleSheet(rule ? rule->parentStyleSheet() : 0) {
+ : m_styleSheet(rule ? rule->parentStyleSheet() : nullptr) {
if (m_styleSheet)
m_styleSheet->willMutateRules();
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSStyleSheet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698