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

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

Issue 2901473002: create promo for debug.
Patch Set: .. Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 bool HasDeepOrShadowSelector() const { return has_deep_or_shadow_selector_; } 74 bool HasDeepOrShadowSelector() const { return has_deep_or_shadow_selector_; }
75 void SetHasUnresolvedKeyframesRule() { 75 void SetHasUnresolvedKeyframesRule() {
76 has_unresolved_keyframes_rule_ = true; 76 has_unresolved_keyframes_rule_ = true;
77 } 77 }
78 bool NeedsAppendAllSheets() const { return needs_append_all_sheets_; } 78 bool NeedsAppendAllSheets() const { return needs_append_all_sheets_; }
79 void SetNeedsAppendAllSheets() { needs_append_all_sheets_ = true; } 79 void SetNeedsAppendAllSheets() { needs_append_all_sheets_ = true; }
80 static void KeyframesRulesAdded(const TreeScope&); 80 static void KeyframesRulesAdded(const TreeScope&);
81 static ContainerNode& InvalidationRootForTreeScope(const TreeScope&); 81 static ContainerNode& InvalidationRootForTreeScope(const TreeScope&);
82 CORE_EXPORT static bool HaveSameStyles(const ScopedStyleResolver*, 82 CORE_EXPORT static bool HaveSameStyles(const ScopedStyleResolver*,
83 const ScopedStyleResolver*); 83 const ScopedStyleResolver*);
84 void AddKeyframeRules(const RuleSet&);
84 85
85 DECLARE_TRACE(); 86 DECLARE_TRACE();
86 87
87 private: 88 private:
88 explicit ScopedStyleResolver(TreeScope& scope) : scope_(scope) {} 89 explicit ScopedStyleResolver(TreeScope& scope) : scope_(scope) {}
89 90
90 void AddTreeBoundaryCrossingRules(const RuleSet&, 91 void AddTreeBoundaryCrossingRules(const RuleSet&,
91 CSSStyleSheet*, 92 CSSStyleSheet*,
92 unsigned sheet_index); 93 unsigned sheet_index);
93 void AddKeyframeRules(const RuleSet&);
94 void AddFontFaceRules(const RuleSet&); 94 void AddFontFaceRules(const RuleSet&);
95 void AddKeyframeStyle(StyleRuleKeyframes*); 95 void AddKeyframeStyle(StyleRuleKeyframes*);
96 96
97 Member<TreeScope> scope_; 97 Member<TreeScope> scope_;
98 98
99 HeapVector<Member<CSSStyleSheet>> author_style_sheets_; 99 HeapVector<Member<CSSStyleSheet>> author_style_sheets_;
100 MediaQueryResultList viewport_dependent_media_query_results_; 100 MediaQueryResultList viewport_dependent_media_query_results_;
101 MediaQueryResultList device_dependent_media_query_results_; 101 MediaQueryResultList device_dependent_media_query_results_;
102 102
103 using KeyframesRuleMap = 103 using KeyframesRuleMap =
(...skipping 22 matching lines...) Expand all
126 126
127 Member<CSSStyleSheetRuleSubSet> tree_boundary_crossing_rule_set_; 127 Member<CSSStyleSheetRuleSubSet> tree_boundary_crossing_rule_set_;
128 bool has_deep_or_shadow_selector_ = false; 128 bool has_deep_or_shadow_selector_ = false;
129 bool has_unresolved_keyframes_rule_ = false; 129 bool has_unresolved_keyframes_rule_ = false;
130 bool needs_append_all_sheets_ = false; 130 bool needs_append_all_sheets_ = false;
131 }; 131 };
132 132
133 } // namespace blink 133 } // namespace blink
134 134
135 #endif // ScopedStyleResolver_h 135 #endif // ScopedStyleResolver_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698