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

Unified Diff: third_party/WebKit/Source/core/css/ActiveStyleSheets.h

Issue 1913833002: Current work-in-progress crbug.com/567021 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More assert fixes 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/ActiveStyleSheets.h
diff --git a/third_party/WebKit/Source/core/css/ActiveStyleSheets.h b/third_party/WebKit/Source/core/css/ActiveStyleSheets.h
new file mode 100644
index 0000000000000000000000000000000000000000..7a76237892c0576c6c6b3bbcedabf196e1499e97
--- /dev/null
+++ b/third_party/WebKit/Source/core/css/ActiveStyleSheets.h
@@ -0,0 +1,37 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ActiveStyleSheets_h
+#define ActiveStyleSheets_h
+
+#include "platform/heap/HeapAllocator.h"
+
+namespace blink {
+
+class CSSStyleSheet;
+class RuleSet;
+class StyleEngine;
+class TreeScope;
+
+using ActiveStyleSheet = std::pair<Member<CSSStyleSheet>, Member<RuleSet>>;
+using ActiveStyleSheetVector = HeapVector<ActiveStyleSheet>;
+
+enum ActiveSheetsChange {
+ NoActiveSheetsChanged, // Nothing changed.
+ ActiveSheetsChanged, // Sheets were added and/or inserted.
+ ActiveSheetsAppended // Only additions, and all appended.
+};
+
+ActiveSheetsChange compareActiveStyleSheets(
+ const ActiveStyleSheetVector& oldStyleSheets,
+ const ActiveStyleSheetVector& newStyleSheets,
+ HeapVector<Member<RuleSet>>& changedRuleSets);
+
+void applyRuleSetChanges(StyleEngine&, TreeScope&,
+ const ActiveStyleSheetVector& oldStyleSheets,
+ const ActiveStyleSheetVector& newStyleSheets);
+
+} // namespace blink
+
+#endif // ActiveStyleSheets_h
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698