| OLD | NEW |
| 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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All |
| 7 * rights reserved. | 7 * rights reserved. |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
| 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 } | 150 } |
| 151 | 151 |
| 152 bool usesRemUnits() const { return m_usesRemUnits; } | 152 bool usesRemUnits() const { return m_usesRemUnits; } |
| 153 void setUsesRemUnit(bool b) { m_usesRemUnits = b; } | 153 void setUsesRemUnit(bool b) { m_usesRemUnits = b; } |
| 154 | 154 |
| 155 void resetCSSFeatureFlags(const RuleFeatureSet&); | 155 void resetCSSFeatureFlags(const RuleFeatureSet&); |
| 156 | 156 |
| 157 void didRemoveShadowRoot(ShadowRoot*); | 157 void didRemoveShadowRoot(ShadowRoot*); |
| 158 void shadowRootRemovedFromDocument(ShadowRoot*); | 158 void shadowRootRemovedFromDocument(ShadowRoot*); |
| 159 void appendActiveAuthorStyleSheets(); | 159 void appendActiveAuthorStyleSheets(); |
| 160 void addTreeBoundaryCrossingScope(const TreeScope&); |
| 161 const DocumentOrderedList& treeBoundaryCrossingScopes() const { |
| 162 return m_treeBoundaryCrossingScopes; |
| 163 } |
| 164 void resetAuthorStyle(TreeScope&); |
| 160 | 165 |
| 161 StyleResolver* resolver() const { return m_resolver.get(); } | 166 StyleResolver* resolver() const { return m_resolver.get(); } |
| 162 | 167 |
| 163 StyleResolver& ensureResolver() { | 168 StyleResolver& ensureResolver() { |
| 164 if (!m_resolver) { | 169 if (!m_resolver) { |
| 165 createResolver(); | 170 createResolver(); |
| 166 } else if (m_resolver->hasPendingAuthorStyleSheets()) { | 171 } else if (m_resolver->hasPendingAuthorStyleSheets()) { |
| 167 viewportRulesChanged(); | 172 viewportRulesChanged(); |
| 168 m_resolver->appendPendingAuthorStyleSheets(); | 173 m_resolver->appendPendingAuthorStyleSheets(); |
| 169 } | 174 } |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 Member<DocumentStyleSheetCollection> m_documentStyleSheetCollection; | 301 Member<DocumentStyleSheetCollection> m_documentStyleSheetCollection; |
| 297 | 302 |
| 298 typedef HeapHashMap<WeakMember<TreeScope>, | 303 typedef HeapHashMap<WeakMember<TreeScope>, |
| 299 Member<ShadowTreeStyleSheetCollection>> | 304 Member<ShadowTreeStyleSheetCollection>> |
| 300 StyleSheetCollectionMap; | 305 StyleSheetCollectionMap; |
| 301 StyleSheetCollectionMap m_styleSheetCollectionMap; | 306 StyleSheetCollectionMap m_styleSheetCollectionMap; |
| 302 | 307 |
| 303 bool m_documentScopeDirty = true; | 308 bool m_documentScopeDirty = true; |
| 304 UnorderedTreeScopeSet m_dirtyTreeScopes; | 309 UnorderedTreeScopeSet m_dirtyTreeScopes; |
| 305 UnorderedTreeScopeSet m_activeTreeScopes; | 310 UnorderedTreeScopeSet m_activeTreeScopes; |
| 311 DocumentOrderedList m_treeBoundaryCrossingScopes; |
| 306 | 312 |
| 307 String m_preferredStylesheetSetName; | 313 String m_preferredStylesheetSetName; |
| 308 String m_selectedStylesheetSetName; | 314 String m_selectedStylesheetSetName; |
| 309 | 315 |
| 310 bool m_usesSiblingRules = false; | 316 bool m_usesSiblingRules = false; |
| 311 bool m_usesFirstLineRules = false; | 317 bool m_usesFirstLineRules = false; |
| 312 bool m_usesWindowInactiveSelector = false; | 318 bool m_usesWindowInactiveSelector = false; |
| 313 bool m_usesRemUnits = false; | 319 bool m_usesRemUnits = false; |
| 314 unsigned m_maxDirectAdjacentSelectors = 0; | 320 unsigned m_maxDirectAdjacentSelectors = 0; |
| 315 | 321 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 327 | 333 |
| 328 std::unique_ptr<StyleResolverStats> m_styleResolverStats; | 334 std::unique_ptr<StyleResolverStats> m_styleResolverStats; |
| 329 unsigned m_styleForElementCount = 0; | 335 unsigned m_styleForElementCount = 0; |
| 330 | 336 |
| 331 friend class StyleEngineTest; | 337 friend class StyleEngineTest; |
| 332 }; | 338 }; |
| 333 | 339 |
| 334 } // namespace blink | 340 } // namespace blink |
| 335 | 341 |
| 336 #endif | 342 #endif |
| OLD | NEW |