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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h

Issue 2420413005: Collect @viewport before constructing RuleSets. (Closed)
Patch Set: Rebased Created 4 years, 2 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 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * Copyright (C) 2012 Google Inc. All rights reserved. 5 * Copyright (C) 2012 Google Inc. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void collectMatchingShadowHostRules(ElementRuleCollector&, 65 void collectMatchingShadowHostRules(ElementRuleCollector&,
66 CascadeOrder = ignoreCascadeOrder); 66 CascadeOrder = ignoreCascadeOrder);
67 void collectMatchingTreeBoundaryCrossingRules( 67 void collectMatchingTreeBoundaryCrossingRules(
68 ElementRuleCollector&, 68 ElementRuleCollector&,
69 CascadeOrder = ignoreCascadeOrder); 69 CascadeOrder = ignoreCascadeOrder);
70 void matchPageRules(PageRuleCollector&); 70 void matchPageRules(PageRuleCollector&);
71 void collectFeaturesTo(RuleFeatureSet&, 71 void collectFeaturesTo(RuleFeatureSet&,
72 HeapHashSet<Member<const StyleSheetContents>>& 72 HeapHashSet<Member<const StyleSheetContents>>&
73 visitedSharedStyleSheetContents) const; 73 visitedSharedStyleSheetContents) const;
74 void resetAuthorStyle(); 74 void resetAuthorStyle();
75 void collectViewportRulesTo(ViewportStyleResolver*) const;
76 bool hasDeepOrShadowSelector() const { return m_hasDeepOrShadowSelector; } 75 bool hasDeepOrShadowSelector() const { return m_hasDeepOrShadowSelector; }
77 void setHasUnresolvedKeyframesRule() { m_hasUnresolvedKeyframesRule = true; } 76 void setHasUnresolvedKeyframesRule() { m_hasUnresolvedKeyframesRule = true; }
78 static void keyframesRulesAdded(const TreeScope&); 77 static void keyframesRulesAdded(const TreeScope&);
79 static ContainerNode& invalidationRootForTreeScope(const TreeScope&); 78 static ContainerNode& invalidationRootForTreeScope(const TreeScope&);
80 79
81 DECLARE_TRACE(); 80 DECLARE_TRACE();
82 81
83 private: 82 private:
84 explicit ScopedStyleResolver(TreeScope& scope) : m_scope(scope) {} 83 explicit ScopedStyleResolver(TreeScope& scope) : m_scope(scope) {}
85 84
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 using CSSStyleSheetRuleSubSet = HeapVector<Member<RuleSubSet>>; 118 using CSSStyleSheetRuleSubSet = HeapVector<Member<RuleSubSet>>;
120 119
121 Member<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet; 120 Member<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet;
122 bool m_hasDeepOrShadowSelector = false; 121 bool m_hasDeepOrShadowSelector = false;
123 bool m_hasUnresolvedKeyframesRule = false; 122 bool m_hasUnresolvedKeyframesRule = false;
124 }; 123 };
125 124
126 } // namespace blink 125 } // namespace blink
127 126
128 #endif // ScopedStyleResolver_h 127 #endif // ScopedStyleResolver_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/RuleSet.cpp ('k') | third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698