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

Unified Diff: third_party/WebKit/Source/core/dom/StyleSheetCollection.h

Issue 2572473006: Revert of Collect active stylesheets and and apply asynchronously. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/StyleSheetCollection.h
diff --git a/third_party/WebKit/Source/core/dom/StyleSheetCollection.h b/third_party/WebKit/Source/core/dom/StyleSheetCollection.h
index 947009e9c943246a215a65dea190cdb320fdb02a..d79f04b5c9e9c49b478f313b755e5e39da0d3a1a 100644
--- a/third_party/WebKit/Source/core/dom/StyleSheetCollection.h
+++ b/third_party/WebKit/Source/core/dom/StyleSheetCollection.h
@@ -33,13 +33,13 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "bindings/core/v8/TraceWrapperMember.h"
#include "core/CoreExport.h"
-#include "core/css/ActiveStyleSheets.h"
#include "platform/heap/Handle.h"
#include "wtf/Allocator.h"
#include "wtf/Vector.h"
namespace blink {
+class CSSStyleSheet;
class StyleSheet;
class CORE_EXPORT StyleSheetCollection
@@ -53,7 +53,7 @@
static StyleSheetCollection* create() { return new StyleSheetCollection; }
- const ActiveStyleSheetVector& activeAuthorStyleSheets() const {
+ const HeapVector<Member<CSSStyleSheet>>& activeAuthorStyleSheets() const {
return m_activeAuthorStyleSheets;
}
const HeapVector<TraceWrapperMember<StyleSheet>>&
@@ -63,7 +63,10 @@
void swap(StyleSheetCollection&);
void swapSheetsForSheetList(HeapVector<Member<StyleSheet>>&);
- void appendActiveStyleSheet(const ActiveStyleSheet&);
+ void appendActiveStyleSheet(CSSStyleSheet*);
+ void appendActiveStyleSheets(const HeapVector<Member<CSSStyleSheet>>&);
+ void appendActiveStyleSheets(
+ const HeapVector<TraceWrapperMember<CSSStyleSheet>>&);
void appendSheetForList(StyleSheet*);
DECLARE_VIRTUAL_TRACE();
@@ -75,7 +78,7 @@
StyleSheetCollection();
HeapVector<TraceWrapperMember<StyleSheet>> m_styleSheetsForStyleSheetList;
- ActiveStyleSheetVector m_activeAuthorStyleSheets;
+ HeapVector<Member<CSSStyleSheet>> m_activeAuthorStyleSheets;
};
} // namespace blink
« 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