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

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

Issue 2394353003: Apply RuleSet changes for active stylesheet changes. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | 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
index 9febf3f3ac63a623282354c58943a2d80109a317..c17057aa34ac8e23e40355296213fe001c2229c2 100644
--- a/third_party/WebKit/Source/core/css/ActiveStyleSheets.h
+++ b/third_party/WebKit/Source/core/css/ActiveStyleSheets.h
@@ -12,9 +12,11 @@ namespace blink {
class CSSStyleSheet;
class RuleSet;
+class StyleEngine;
+class TreeScope;
-using ActiveStyleSheetVector =
- HeapVector<std::pair<Member<CSSStyleSheet>, Member<RuleSet>>>;
+using ActiveStyleSheet = std::pair<Member<CSSStyleSheet>, Member<RuleSet>>;
+using ActiveStyleSheetVector = HeapVector<ActiveStyleSheet>;
enum ActiveSheetsChange {
NoActiveSheetsChanged, // Nothing changed.
@@ -27,6 +29,12 @@ compareActiveStyleSheets(const ActiveStyleSheetVector& oldStyleSheets,
const ActiveStyleSheetVector& newStyleSheets,
HeapVector<Member<RuleSet>>& changedRuleSets);
+CORE_EXPORT void applyRuleSetChanges(
+ StyleEngine&,
+ TreeScope&,
+ const ActiveStyleSheetVector& oldStyleSheets,
+ const ActiveStyleSheetVector& newStyleSheets);
+
} // namespace blink
#endif // ActiveStyleSheets_h
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/ActiveStyleSheets.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698