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

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

Issue 1134173002: Get rid of TreeBoundaryCrossingRules. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Missing important UA rules. Created 5 years, 6 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 | « Source/core/css/resolver/StyleResolver.cpp ('k') | Source/core/dom/StyleEngine.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 * (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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 bool ignoringPendingStylesheets() const { return m_ignorePendingStylesheets; } 114 bool ignoringPendingStylesheets() const { return m_ignorePendingStylesheets; }
115 115
116 unsigned maxDirectAdjacentSelectors() const { return m_maxDirectAdjacentSele ctors; } 116 unsigned maxDirectAdjacentSelectors() const { return m_maxDirectAdjacentSele ctors; }
117 bool usesSiblingRules() const { return m_usesSiblingRules; } 117 bool usesSiblingRules() const { return m_usesSiblingRules; }
118 bool usesFirstLineRules() const { return m_usesFirstLineRules; } 118 bool usesFirstLineRules() const { return m_usesFirstLineRules; }
119 bool usesWindowInactiveSelector() const { return m_usesWindowInactiveSelecto r; } 119 bool usesWindowInactiveSelector() const { return m_usesWindowInactiveSelecto r; }
120 120
121 bool usesRemUnits() const { return m_usesRemUnits; } 121 bool usesRemUnits() const { return m_usesRemUnits; }
122 void setUsesRemUnit(bool b) { m_usesRemUnits = b; } 122 void setUsesRemUnit(bool b) { m_usesRemUnits = b; }
123 123
124 bool hasTreeBoundaryCrossingRules() const { return m_treeBoundaryCrossingSco peCount; }
125 void addTreeBoundaryCrossingScope() { ++m_treeBoundaryCrossingScopeCount; }
126 void removeTreeBoundaryCrossingScope() { --m_treeBoundaryCrossingScopeCount; }
127
124 void combineCSSFeatureFlags(const RuleFeatureSet&); 128 void combineCSSFeatureFlags(const RuleFeatureSet&);
125 void resetCSSFeatureFlags(const RuleFeatureSet&); 129 void resetCSSFeatureFlags(const RuleFeatureSet&);
126 130
127 void didRemoveShadowRoot(ShadowRoot*); 131 void didRemoveShadowRoot(ShadowRoot*);
128 void shadowRootRemovedFromDocument(ShadowRoot*); 132 void shadowRootRemovedFromDocument(ShadowRoot*);
129 void appendActiveAuthorStyleSheets(); 133 void appendActiveAuthorStyleSheets();
130 134
131 StyleResolver* resolver() const 135 StyleResolver* resolver() const
132 { 136 {
133 return m_resolver.get(); 137 return m_resolver.get();
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 OrderedTreeScopeSet m_activeTreeScopes; 286 OrderedTreeScopeSet m_activeTreeScopes;
283 287
284 String m_preferredStylesheetSetName; 288 String m_preferredStylesheetSetName;
285 String m_selectedStylesheetSetName; 289 String m_selectedStylesheetSetName;
286 290
287 bool m_usesSiblingRules; 291 bool m_usesSiblingRules;
288 bool m_usesFirstLineRules; 292 bool m_usesFirstLineRules;
289 bool m_usesWindowInactiveSelector; 293 bool m_usesWindowInactiveSelector;
290 bool m_usesRemUnits; 294 bool m_usesRemUnits;
291 unsigned m_maxDirectAdjacentSelectors; 295 unsigned m_maxDirectAdjacentSelectors;
292 296 unsigned m_treeBoundaryCrossingScopeCount;
293 bool m_ignorePendingStylesheets; 297 bool m_ignorePendingStylesheets;
294 bool m_didCalculateResolver; 298 bool m_didCalculateResolver;
295 OwnPtrWillBeMember<StyleResolver> m_resolver; 299 OwnPtrWillBeMember<StyleResolver> m_resolver;
296 StyleInvalidator m_styleInvalidator; 300 StyleInvalidator m_styleInvalidator;
297 301
298 RefPtrWillBeMember<CSSFontSelector> m_fontSelector; 302 RefPtrWillBeMember<CSSFontSelector> m_fontSelector;
299 303
300 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents>> m_te xtToSheetCache; 304 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents>> m_te xtToSheetCache;
301 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh eetToTextCache; 305 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh eetToTextCache;
302 }; 306 };
303 307
304 } 308 }
305 309
306 #endif 310 #endif
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698