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

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

Issue 2572473006: Revert of Collect active stylesheets and and apply asynchronously. (Closed)
Patch Set: Created 4 years 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 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 18 matching lines...) Expand all
29 29
30 #ifndef ShadowTreeStyleSheetCollection_h 30 #ifndef ShadowTreeStyleSheetCollection_h
31 #define ShadowTreeStyleSheetCollection_h 31 #define ShadowTreeStyleSheetCollection_h
32 32
33 #include "core/dom/TreeScopeStyleSheetCollection.h" 33 #include "core/dom/TreeScopeStyleSheetCollection.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class ShadowRoot; 37 class ShadowRoot;
38 class StyleSheetCollection; 38 class StyleSheetCollection;
39 class StyleEngine;
39 40
40 class ShadowTreeStyleSheetCollection final 41 class ShadowTreeStyleSheetCollection final
41 : public TreeScopeStyleSheetCollection { 42 : public TreeScopeStyleSheetCollection {
42 WTF_MAKE_NONCOPYABLE(ShadowTreeStyleSheetCollection); 43 WTF_MAKE_NONCOPYABLE(ShadowTreeStyleSheetCollection);
43 44
44 public: 45 public:
45 explicit ShadowTreeStyleSheetCollection(ShadowRoot&); 46 explicit ShadowTreeStyleSheetCollection(ShadowRoot&);
46 void updateActiveStyleSheets(); 47
48 void updateActiveStyleSheets(StyleEngine&, StyleResolverUpdateMode);
49
47 bool isShadowTreeStyleSheetCollection() const final { return true; } 50 bool isShadowTreeStyleSheetCollection() const final { return true; }
48 51
49 DEFINE_INLINE_VIRTUAL_TRACE() { 52 DEFINE_INLINE_VIRTUAL_TRACE() {
50 TreeScopeStyleSheetCollection::trace(visitor); 53 TreeScopeStyleSheetCollection::trace(visitor);
51 } 54 }
52 55
53 private: 56 private:
54 void collectStyleSheets(StyleSheetCollection&); 57 void collectStyleSheets(StyleEngine&, StyleSheetCollection&);
55 }; 58 };
56 59
57 DEFINE_TYPE_CASTS(ShadowTreeStyleSheetCollection, 60 DEFINE_TYPE_CASTS(ShadowTreeStyleSheetCollection,
58 TreeScopeStyleSheetCollection, 61 TreeScopeStyleSheetCollection,
59 value, 62 value,
60 value->isShadowTreeStyleSheetCollection(), 63 value->isShadowTreeStyleSheetCollection(),
61 value.isShadowTreeStyleSheetCollection()); 64 value.isShadowTreeStyleSheetCollection());
62 65
63 } // namespace blink 66 } // namespace blink
64 67
65 #endif 68 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698