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