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

Side by Side Diff: third_party/WebKit/Source/core/dom/StyleSheetCollection.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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 } 58 }
59 const HeapVector<TraceWrapperMember<StyleSheet>>& 59 const HeapVector<TraceWrapperMember<StyleSheet>>&
60 StyleSheetsForStyleSheetList() const { 60 StyleSheetsForStyleSheetList() const {
61 return style_sheets_for_style_sheet_list_; 61 return style_sheets_for_style_sheet_list_;
62 } 62 }
63 63
64 void Swap(StyleSheetCollection&); 64 void Swap(StyleSheetCollection&);
65 void SwapSheetsForSheetList(HeapVector<Member<StyleSheet>>&); 65 void SwapSheetsForSheetList(HeapVector<Member<StyleSheet>>&);
66 void AppendActiveStyleSheet(const ActiveStyleSheet&); 66 void AppendActiveStyleSheet(const ActiveStyleSheet&);
67 void AppendSheetForList(StyleSheet*); 67 void AppendSheetForList(StyleSheet*);
68 void MarkSheetListDirty() { sheet_list_dirty_ = true; }
68 69
69 DECLARE_VIRTUAL_TRACE(); 70 DECLARE_VIRTUAL_TRACE();
70 DECLARE_VIRTUAL_TRACE_WRAPPERS(); 71 DECLARE_VIRTUAL_TRACE_WRAPPERS();
71 72
72 void Dispose(); 73 void Dispose();
73 74
74 protected: 75 protected:
75 StyleSheetCollection(); 76 StyleSheetCollection();
76 77
77 HeapVector<TraceWrapperMember<StyleSheet>> style_sheets_for_style_sheet_list_; 78 HeapVector<TraceWrapperMember<StyleSheet>> style_sheets_for_style_sheet_list_;
78 ActiveStyleSheetVector active_author_style_sheets_; 79 ActiveStyleSheetVector active_author_style_sheets_;
80 bool sheet_list_dirty_ = true;
79 }; 81 };
80 82
81 } // namespace blink 83 } // namespace blink
82 84
83 #endif // StyleSheetCollection_h 85 #endif // StyleSheetCollection_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngineTest.cpp ('k') | third_party/WebKit/Source/core/dom/StyleSheetCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698