Commit cfae9184 authored by Hayato Ito's avatar Hayato Ito Committed by Commit Bot

Use SlotAssignmentRecalcForbiddenScope

No behavior change.

Change-Id: I2f4f1500608c7537e15ac4e2f28374e992b1a3ad
Reviewed-on: https://chromium-review.googlesource.com/c/1354718Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Reviewed-by: default avatarYoshifumi Inoue <yosin@chromium.org>
Commit-Queue: Hayato Ito <hayato@chromium.org>
Cr-Commit-Position: refs/heads/master@{#612078}
parent cbf0f912
...@@ -120,6 +120,7 @@ ...@@ -120,6 +120,7 @@
#include "third_party/blink/renderer/core/dom/shadow_root.h" #include "third_party/blink/renderer/core/dom/shadow_root.h"
#include "third_party/blink/renderer/core/dom/slot_assignment.h" #include "third_party/blink/renderer/core/dom/slot_assignment.h"
#include "third_party/blink/renderer/core/dom/slot_assignment_engine.h" #include "third_party/blink/renderer/core/dom/slot_assignment_engine.h"
#include "third_party/blink/renderer/core/dom/slot_assignment_recalc_forbidden_scope.h"
#include "third_party/blink/renderer/core/dom/static_node_list.h" #include "third_party/blink/renderer/core/dom/static_node_list.h"
#include "third_party/blink/renderer/core/dom/transform_source.h" #include "third_party/blink/renderer/core/dom/transform_source.h"
#include "third_party/blink/renderer/core/dom/tree_walker.h" #include "third_party/blink/renderer/core/dom/tree_walker.h"
...@@ -2200,10 +2201,7 @@ void Document::UpdateStyleAndLayoutTree() { ...@@ -2200,10 +2201,7 @@ void Document::UpdateStyleAndLayoutTree() {
// NeedsLayoutTreeUpdate(). // NeedsLayoutTreeUpdate().
GetSlotAssignmentEngine().RecalcSlotAssignments(); GetSlotAssignmentEngine().RecalcSlotAssignments();
#if DCHECK_IS_ON() SlotAssignmentRecalcForbiddenScope forbid_slot_recalc(*this);
NestingLevelIncrementer slot_assignment_recalc_forbidden_scope(
slot_assignment_recalc_forbidden_recursion_depth_);
#endif
if (!NeedsLayoutTreeUpdate()) { if (!NeedsLayoutTreeUpdate()) {
if (Lifecycle().GetState() < DocumentLifecycle::kStyleClean) { if (Lifecycle().GetState() < DocumentLifecycle::kStyleClean) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment