Chromium Code Reviews| 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 248 typedef HeapHashSet<Member<TreeScope>> UnorderedTreeScopeSet; | 248 typedef HeapHashSet<Member<TreeScope>> UnorderedTreeScopeSet; |
| 249 | 249 |
| 250 void clearMediaQueryRuleSetOnTreeScopeStyleSheets(UnorderedTreeScopeSet&); | 250 void clearMediaQueryRuleSetOnTreeScopeStyleSheets(UnorderedTreeScopeSet&); |
| 251 | 251 |
| 252 void createResolver(); | 252 void createResolver(); |
| 253 | 253 |
| 254 CSSStyleSheet* parseSheet(Element&, | 254 CSSStyleSheet* parseSheet(Element&, |
| 255 const String& text, | 255 const String& text, |
| 256 TextPosition startPosition); | 256 TextPosition startPosition); |
| 257 | 257 |
| 258 const DocumentStyleSheetCollection* documentStyleSheetCollection() const { | 258 const DocumentStyleSheetCollection& documentStyleSheetCollection() const { |
| 259 return m_documentStyleSheetCollection.get(); | 259 DCHECK(m_documentStyleSheetCollection.get()); |
| 260 return *m_documentStyleSheetCollection.get(); | |
|
meade_UTC10
2016/10/11 05:53:24
The .get seems redundant - can this just be
DCHE
rune
2016/10/12 09:19:19
Done.
| |
| 260 } | 261 } |
| 261 | 262 |
| 262 DocumentStyleSheetCollection* documentStyleSheetCollection() { | 263 DocumentStyleSheetCollection& documentStyleSheetCollection() { |
| 263 return m_documentStyleSheetCollection.get(); | 264 DCHECK(m_documentStyleSheetCollection.get()); |
| 265 return *m_documentStyleSheetCollection.get(); | |
| 264 } | 266 } |
| 265 | 267 |
| 266 void updateActiveStyleSheetsInShadow( | 268 void updateActiveStyleSheetsInShadow( |
| 267 StyleResolverUpdateMode, | 269 StyleResolverUpdateMode, |
| 268 TreeScope*, | 270 TreeScope*, |
| 269 UnorderedTreeScopeSet& treeScopesRemoved); | 271 UnorderedTreeScopeSet& treeScopesRemoved); |
| 270 | 272 |
| 271 bool shouldSkipInvalidationFor(const Element&) const; | 273 bool shouldSkipInvalidationFor(const Element&) const; |
| 272 void scheduleRuleSetInvalidationsForElement( | 274 void scheduleRuleSetInvalidationsForElement( |
| 273 Element&, | 275 Element&, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 320 | 322 |
| 321 std::unique_ptr<StyleResolverStats> m_styleResolverStats; | 323 std::unique_ptr<StyleResolverStats> m_styleResolverStats; |
| 322 unsigned m_styleForElementCount = 0; | 324 unsigned m_styleForElementCount = 0; |
| 323 | 325 |
| 324 friend class StyleEngineTest; | 326 friend class StyleEngineTest; |
| 325 }; | 327 }; |
| 326 | 328 |
| 327 } // namespace blink | 329 } // namespace blink |
| 328 | 330 |
| 329 #endif | 331 #endif |
| OLD | NEW |