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

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

Issue 2833883002: Reduce StyleRule class size by eliminating padding in the layout. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/StyleRule.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/StyleRule.h
diff --git a/third_party/WebKit/Source/core/css/StyleRule.h b/third_party/WebKit/Source/core/css/StyleRule.h
index 3d971e04a8b788595ba99953d956344eea44b0c2..2965c927a6f9ec4ab93f829e81c09dcc849b6b42 100644
--- a/third_party/WebKit/Source/core/css/StyleRule.h
+++ b/third_party/WebKit/Source/core/css/StyleRule.h
@@ -132,10 +132,6 @@ class CORE_EXPORT StyleRule : public StyleRuleBase {
StyleRule(CSSSelectorList, CSSLazyPropertyParser*);
StyleRule(const StyleRule&);
- CSSSelectorList selector_list_;
- mutable Member<StylePropertySet> properties_;
- mutable Member<CSSLazyPropertyParser> lazy_property_parser_;
-
// Whether or not we should consider this for matching rules. Usually we try
// to avoid considering empty property sets, as an optimization. This is
// not possible for lazy properties, which always need to be considered. The
@@ -146,6 +142,10 @@ class CORE_EXPORT StyleRule : public StyleRuleBase {
kConsiderIfNonEmpty,
};
mutable ConsiderForMatching should_consider_for_matching_rules_;
+
+ CSSSelectorList selector_list_;
+ mutable Member<StylePropertySet> properties_;
+ mutable Member<CSSLazyPropertyParser> lazy_property_parser_;
};
class StyleRuleFontFace : public StyleRuleBase {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/StyleRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698