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

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

Issue 2618803002: Use master StyleEngine to evaluate MQ in html imports. (Closed)
Patch Set: preferred sheet change broke a test Created 3 years, 11 months 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 17 matching lines...) Expand all
28 */ 28 */
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 StyleEngine;
38 class StyleSheetCollection; 39 class StyleSheetCollection;
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 void updateActiveStyleSheets(StyleEngine& masterEngine);
47 bool isShadowTreeStyleSheetCollection() const final { return true; } 48 bool isShadowTreeStyleSheetCollection() const final { return true; }
48 49
49 DEFINE_INLINE_VIRTUAL_TRACE() { 50 DEFINE_INLINE_VIRTUAL_TRACE() {
50 TreeScopeStyleSheetCollection::trace(visitor); 51 TreeScopeStyleSheetCollection::trace(visitor);
51 } 52 }
52 53
53 private: 54 private:
54 void collectStyleSheets(StyleSheetCollection&); 55 void collectStyleSheets(StyleEngine& masterEngine, StyleSheetCollection&);
55 }; 56 };
56 57
57 DEFINE_TYPE_CASTS(ShadowTreeStyleSheetCollection, 58 DEFINE_TYPE_CASTS(ShadowTreeStyleSheetCollection,
58 TreeScopeStyleSheetCollection, 59 TreeScopeStyleSheetCollection,
59 value, 60 value,
60 value->isShadowTreeStyleSheetCollection(), 61 value->isShadowTreeStyleSheetCollection(),
61 value.isShadowTreeStyleSheetCollection()); 62 value.isShadowTreeStyleSheetCollection());
62 63
63 } // namespace blink 64 } // namespace blink
64 65
65 #endif 66 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698