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..7ba26d20b96d695bc6c6f8881a79db9b25e3bf1c |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/css/ActiveStyleSheets.h |
@@ -0,0 +1,31 @@ |
+// 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 "core/CoreExport.h" |
+#include "platform/heap/HeapAllocator.h" |
+ |
+namespace blink { |
+ |
+class CSSStyleSheet; |
+class RuleSet; |
+ |
+using ActiveStyleSheetVector = HeapVector<std::pair<Member<CSSStyleSheet>, Member<RuleSet>>>; |
+ |
+enum ActiveSheetsChange { |
+ NoActiveSheetsChanged, // Nothing changed. |
+ ActiveSheetsChanged, // Sheets were added and/or inserted. |
+ ActiveSheetsAppended // Only additions, and all appended. |
+}; |
+ |
+CORE_EXPORT ActiveSheetsChange compareActiveStyleSheets( |
+ const ActiveStyleSheetVector& oldStyleSheets, |
+ const ActiveStyleSheetVector& newStyleSheets, |
+ HeapVector<Member<RuleSet>>& changedRuleSets); |
+ |
+} // namespace blink |
+ |
+#endif // ActiveStyleSheets_h |