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

Side by Side Diff: third_party/WebKit/Source/core/css/ActiveStyleSheets.h

Issue 1889993002: Implemented RuleSet diff for active stylesheets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 years, 3 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ActiveStyleSheets_h
6 #define ActiveStyleSheets_h
7
8 #include "core/CoreExport.h"
9 #include "platform/heap/HeapAllocator.h"
10
11 namespace blink {
12
13 class CSSStyleSheet;
14 class RuleSet;
15
16 using ActiveStyleSheetVector = HeapVector<std::pair<Member<CSSStyleSheet>, Membe r<RuleSet>>>;
17
18 enum ActiveSheetsChange {
19 NoActiveSheetsChanged, // Nothing changed.
20 ActiveSheetsChanged, // Sheets were added and/or inserted.
21 ActiveSheetsAppended // Only additions, and all appended.
22 };
23
24 CORE_EXPORT ActiveSheetsChange compareActiveStyleSheets(
25 const ActiveStyleSheetVector& oldStyleSheets,
26 const ActiveStyleSheetVector& newStyleSheets,
27 HeapVector<Member<RuleSet>>& changedRuleSets);
28
29 } // namespace blink
30
31 #endif // ActiveStyleSheets_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698