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

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

Issue 1998503002: CSS: Checked downcast for ShadowTreeStyleSheetCollection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 class StyleRuleFontFace; 45 class StyleRuleFontFace;
46 46
47 class CORE_EXPORT TreeScopeStyleSheetCollection : public StyleSheetCollection { 47 class CORE_EXPORT TreeScopeStyleSheetCollection : public StyleSheetCollection {
48 public: 48 public:
49 void addStyleSheetCandidateNode(Node*); 49 void addStyleSheetCandidateNode(Node*);
50 void removeStyleSheetCandidateNode(Node* node) { m_styleSheetCandidateNodes. remove(node); } 50 void removeStyleSheetCandidateNode(Node* node) { m_styleSheetCandidateNodes. remove(node); }
51 bool hasStyleSheetCandidateNodes() const { return !m_styleSheetCandidateNode s.isEmpty(); } 51 bool hasStyleSheetCandidateNodes() const { return !m_styleSheetCandidateNode s.isEmpty(); }
52 52
53 void clearMediaQueryRuleSetStyleSheets(); 53 void clearMediaQueryRuleSetStyleSheets();
54 54
55 virtual bool isShadowTreeStyleSheetCollection() const { return false; }
56
55 DECLARE_VIRTUAL_TRACE(); 57 DECLARE_VIRTUAL_TRACE();
56 58
57 protected: 59 protected:
58 explicit TreeScopeStyleSheetCollection(TreeScope&); 60 explicit TreeScopeStyleSheetCollection(TreeScope&);
59 61
60 Document& document() const { return treeScope().document(); } 62 Document& document() const { return treeScope().document(); }
61 TreeScope& treeScope() const { return *m_treeScope; } 63 TreeScope& treeScope() const { return *m_treeScope; }
62 64
63 enum StyleResolverUpdateType { 65 enum StyleResolverUpdateType {
64 Reconstruct, 66 Reconstruct,
(...skipping 24 matching lines...) Expand all
89 protected: 91 protected:
90 Member<TreeScope> m_treeScope; 92 Member<TreeScope> m_treeScope;
91 bool m_hadActiveLoadingStylesheet; 93 bool m_hadActiveLoadingStylesheet;
92 94
93 DocumentOrderedList m_styleSheetCandidateNodes; 95 DocumentOrderedList m_styleSheetCandidateNodes;
94 }; 96 };
95 97
96 } // namespace blink 98 } // namespace blink
97 99
98 #endif 100 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698