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 18 matching lines...) Expand all Loading... |
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; | |
40 | 39 |
41 class ShadowTreeStyleSheetCollection final | 40 class ShadowTreeStyleSheetCollection final |
42 : public TreeScopeStyleSheetCollection { | 41 : public TreeScopeStyleSheetCollection { |
43 WTF_MAKE_NONCOPYABLE(ShadowTreeStyleSheetCollection); | 42 WTF_MAKE_NONCOPYABLE(ShadowTreeStyleSheetCollection); |
44 | 43 |
45 public: | 44 public: |
46 explicit ShadowTreeStyleSheetCollection(ShadowRoot&); | 45 explicit ShadowTreeStyleSheetCollection(ShadowRoot&); |
47 | 46 void updateActiveStyleSheets(); |
48 void updateActiveStyleSheets(StyleEngine&, StyleResolverUpdateMode); | |
49 | |
50 bool isShadowTreeStyleSheetCollection() const final { return true; } | 47 bool isShadowTreeStyleSheetCollection() const final { return true; } |
51 | 48 |
52 DEFINE_INLINE_VIRTUAL_TRACE() { | 49 DEFINE_INLINE_VIRTUAL_TRACE() { |
53 TreeScopeStyleSheetCollection::trace(visitor); | 50 TreeScopeStyleSheetCollection::trace(visitor); |
54 } | 51 } |
55 | 52 |
56 private: | 53 private: |
57 void collectStyleSheets(StyleEngine&, StyleSheetCollection&); | 54 void collectStyleSheets(StyleSheetCollection&); |
58 }; | 55 }; |
59 | 56 |
60 DEFINE_TYPE_CASTS(ShadowTreeStyleSheetCollection, | 57 DEFINE_TYPE_CASTS(ShadowTreeStyleSheetCollection, |
61 TreeScopeStyleSheetCollection, | 58 TreeScopeStyleSheetCollection, |
62 value, | 59 value, |
63 value->isShadowTreeStyleSheetCollection(), | 60 value->isShadowTreeStyleSheetCollection(), |
64 value.isShadowTreeStyleSheetCollection()); | 61 value.isShadowTreeStyleSheetCollection()); |
65 | 62 |
66 } // namespace blink | 63 } // namespace blink |
67 | 64 |
68 #endif | 65 #endif |
OLD | NEW |