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

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

Issue 2884993002: Don't trigger full active style update on styleSheets access. (Closed)
Patch Set: Not clearing document_scope_dirty_ flag in import styleSheets anymore. Created 3 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
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 bool HasStyleSheets() const;
53 53
54 bool MediaQueryAffectingValueChanged(); 54 bool MediaQueryAffectingValueChanged();
55 55
56 virtual bool IsShadowTreeStyleSheetCollection() const { return false; } 56 virtual bool IsShadowTreeStyleSheetCollection() const { return false; }
57 void CollectStyleSheetsForList(); 57 void UpdateStyleSheetList();
58 58
59 DECLARE_VIRTUAL_TRACE(); 59 DECLARE_VIRTUAL_TRACE();
60 60
61 protected: 61 protected:
62 explicit TreeScopeStyleSheetCollection(TreeScope&); 62 explicit TreeScopeStyleSheetCollection(TreeScope&);
63 63
64 Document& GetDocument() const { return GetTreeScope().GetDocument(); } 64 Document& GetDocument() const { return GetTreeScope().GetDocument(); }
65 TreeScope& GetTreeScope() const { return *tree_scope_; } 65 TreeScope& GetTreeScope() const { return *tree_scope_; }
66 66
67 void ApplyActiveStyleSheetChanges(StyleSheetCollection&); 67 void ApplyActiveStyleSheetChanges(StyleSheetCollection&);
68 68
69 Member<TreeScope> tree_scope_; 69 Member<TreeScope> tree_scope_;
70 DocumentOrderedList style_sheet_candidate_nodes_; 70 DocumentOrderedList style_sheet_candidate_nodes_;
71 71
72 private: 72 private:
73 friend class TreeScopeStyleSheetCollectionTest; 73 friend class TreeScopeStyleSheetCollectionTest;
74 }; 74 };
75 75
76 } // namespace blink 76 } // namespace blink
77 77
78 #endif 78 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698