summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/core/css/shadow_tree_style_sheet_collection.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/core/css/shadow_tree_style_sheet_collection.cc')
-rw-r--r--chromium/third_party/blink/renderer/core/css/shadow_tree_style_sheet_collection.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chromium/third_party/blink/renderer/core/css/shadow_tree_style_sheet_collection.cc b/chromium/third_party/blink/renderer/core/css/shadow_tree_style_sheet_collection.cc
index f4c0d29f459..d379c61a0e3 100644
--- a/chromium/third_party/blink/renderer/core/css/shadow_tree_style_sheet_collection.cc
+++ b/chromium/third_party/blink/renderer/core/css/shadow_tree_style_sheet_collection.cc
@@ -45,7 +45,7 @@ ShadowTreeStyleSheetCollection::ShadowTreeStyleSheetCollection(
: TreeScopeStyleSheetCollection(shadow_root) {}
void ShadowTreeStyleSheetCollection::CollectStyleSheets(
- StyleEngine& master_engine,
+ StyleEngine& engine,
StyleSheetCollection& collection) {
for (Node* n : style_sheet_candidate_nodes_) {
StyleSheetCandidate candidate(*n);
@@ -59,7 +59,7 @@ void ShadowTreeStyleSheetCollection::CollectStyleSheets(
if (candidate.CanBeActivated(g_null_atom)) {
CSSStyleSheet* css_sheet = To<CSSStyleSheet>(sheet);
collection.AppendActiveStyleSheet(
- std::make_pair(css_sheet, master_engine.RuleSetForSheet(*css_sheet)));
+ std::make_pair(css_sheet, engine.RuleSetForSheet(*css_sheet)));
}
}
if (!GetTreeScope().HasAdoptedStyleSheets())
@@ -70,15 +70,15 @@ void ShadowTreeStyleSheetCollection::CollectStyleSheets(
continue;
DCHECK_EQ(GetTreeScope().GetDocument(), sheet->AssociatedDocument());
collection.AppendActiveStyleSheet(
- std::make_pair(sheet, master_engine.RuleSetForSheet(*sheet)));
+ std::make_pair(sheet, engine.RuleSetForSheet(*sheet)));
}
}
void ShadowTreeStyleSheetCollection::UpdateActiveStyleSheets(
- StyleEngine& master_engine) {
+ StyleEngine& engine) {
// StyleSheetCollection is GarbageCollected<>, allocate it on the heap.
auto* collection = MakeGarbageCollected<StyleSheetCollection>();
- CollectStyleSheets(master_engine, *collection);
+ CollectStyleSheets(engine, *collection);
ApplyActiveStyleSheetChanges(*collection);
}