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

Side by Side Diff: third_party/WebKit/Source/core/dom/StyleEngine.h

Issue 2361733004: Adding @keyframes rules only affects TreeScope plus host. (Closed)
Patch Set: Moved scope check to CSSAnimations 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 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 bool usesRemUnits() const { return m_usesRemUnits; } 122 bool usesRemUnits() const { return m_usesRemUnits; }
123 void setUsesRemUnit(bool b) { m_usesRemUnits = b; } 123 void setUsesRemUnit(bool b) { m_usesRemUnits = b; }
124 124
125 void resetCSSFeatureFlags(const RuleFeatureSet&); 125 void resetCSSFeatureFlags(const RuleFeatureSet&);
126 126
127 void didRemoveShadowRoot(ShadowRoot*); 127 void didRemoveShadowRoot(ShadowRoot*);
128 void shadowRootRemovedFromDocument(ShadowRoot*); 128 void shadowRootRemovedFromDocument(ShadowRoot*);
129 void appendActiveAuthorStyleSheets(); 129 void appendActiveAuthorStyleSheets();
130 130
131 void setHasUnresolvedKeyframesRule() { m_hasUnresolvedKeyframesRule = true; }
132 void keyframesRulesAdded();
133
134 StyleResolver* resolver() const 131 StyleResolver* resolver() const
135 { 132 {
136 return m_resolver.get(); 133 return m_resolver.get();
137 } 134 }
138 135
139 StyleResolver& ensureResolver() 136 StyleResolver& ensureResolver()
140 { 137 {
141 if (!m_resolver) { 138 if (!m_resolver) {
142 createResolver(); 139 createResolver();
143 } else if (m_resolver->hasPendingAuthorStyleSheets()) { 140 } else if (m_resolver->hasPendingAuthorStyleSheets()) {
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 String m_selectedStylesheetSetName; 258 String m_selectedStylesheetSetName;
262 259
263 bool m_usesSiblingRules = false; 260 bool m_usesSiblingRules = false;
264 bool m_usesFirstLineRules = false; 261 bool m_usesFirstLineRules = false;
265 bool m_usesWindowInactiveSelector = false; 262 bool m_usesWindowInactiveSelector = false;
266 bool m_usesRemUnits = false; 263 bool m_usesRemUnits = false;
267 unsigned m_maxDirectAdjacentSelectors = 0; 264 unsigned m_maxDirectAdjacentSelectors = 0;
268 265
269 bool m_ignorePendingStylesheets = false; 266 bool m_ignorePendingStylesheets = false;
270 bool m_didCalculateResolver = false; 267 bool m_didCalculateResolver = false;
271 bool m_hasUnresolvedKeyframesRule = false;
272 268
273 Member<StyleResolver> m_resolver; 269 Member<StyleResolver> m_resolver;
274 StyleInvalidator m_styleInvalidator; 270 StyleInvalidator m_styleInvalidator;
275 271
276 Member<CSSFontSelector> m_fontSelector; 272 Member<CSSFontSelector> m_fontSelector;
277 273
278 HeapHashMap<AtomicString, WeakMember<StyleSheetContents>> m_textToSheetCache ; 274 HeapHashMap<AtomicString, WeakMember<StyleSheetContents>> m_textToSheetCache ;
279 HeapHashMap<WeakMember<StyleSheetContents>, AtomicString> m_sheetToTextCache ; 275 HeapHashMap<WeakMember<StyleSheetContents>, AtomicString> m_sheetToTextCache ;
280 276
281 std::unique_ptr<StyleResolverStats> m_styleResolverStats; 277 std::unique_ptr<StyleResolverStats> m_styleResolverStats;
282 unsigned m_styleForElementCount = 0; 278 unsigned m_styleForElementCount = 0;
283 279
284 friend class StyleEngineTest; 280 friend class StyleEngineTest;
285 }; 281 };
286 282
287 } // namespace blink 283 } // namespace blink
288 284
289 #endif 285 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698