| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 class CORE_EXPORT TreeScopeStyleSheetCollection : public StyleSheetCollection { | 43 class CORE_EXPORT TreeScopeStyleSheetCollection : public StyleSheetCollection { |
| 44 public: | 44 public: |
| 45 void AddStyleSheetCandidateNode(Node&); | 45 void AddStyleSheetCandidateNode(Node&); |
| 46 void RemoveStyleSheetCandidateNode(Node& node) { | 46 void RemoveStyleSheetCandidateNode(Node& node) { |
| 47 style_sheet_candidate_nodes_.Remove(&node); | 47 style_sheet_candidate_nodes_.Remove(&node); |
| 48 } | 48 } |
| 49 bool HasStyleSheetCandidateNodes() const { | 49 bool HasStyleSheetCandidateNodes() const { |
| 50 return !style_sheet_candidate_nodes_.IsEmpty(); | 50 return !style_sheet_candidate_nodes_.IsEmpty(); |
| 51 } | 51 } |
| 52 bool HasStyleSheets() const; |
| 52 | 53 |
| 53 bool MediaQueryAffectingValueChanged(); | 54 bool MediaQueryAffectingValueChanged(); |
| 54 | 55 |
| 55 virtual bool IsShadowTreeStyleSheetCollection() const { return false; } | 56 virtual bool IsShadowTreeStyleSheetCollection() const { return false; } |
| 56 | 57 |
| 57 DECLARE_VIRTUAL_TRACE(); | 58 DECLARE_VIRTUAL_TRACE(); |
| 58 | 59 |
| 59 protected: | 60 protected: |
| 60 explicit TreeScopeStyleSheetCollection(TreeScope&); | 61 explicit TreeScopeStyleSheetCollection(TreeScope&); |
| 61 | 62 |
| 62 Document& GetDocument() const { return GetTreeScope().GetDocument(); } | 63 Document& GetDocument() const { return GetTreeScope().GetDocument(); } |
| 63 TreeScope& GetTreeScope() const { return *tree_scope_; } | 64 TreeScope& GetTreeScope() const { return *tree_scope_; } |
| 64 | 65 |
| 65 void ApplyActiveStyleSheetChanges(StyleSheetCollection&); | 66 void ApplyActiveStyleSheetChanges(StyleSheetCollection&); |
| 66 | 67 |
| 67 Member<TreeScope> tree_scope_; | 68 Member<TreeScope> tree_scope_; |
| 68 DocumentOrderedList style_sheet_candidate_nodes_; | 69 DocumentOrderedList style_sheet_candidate_nodes_; |
| 69 | 70 |
| 70 private: | 71 private: |
| 71 friend class TreeScopeStyleSheetCollectionTest; | 72 friend class TreeScopeStyleSheetCollectionTest; |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 } // namespace blink | 75 } // namespace blink |
| 75 | 76 |
| 76 #endif | 77 #endif |
| OLD | NEW |