| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index dc93f7f60247dbb58496f84d79446d6400a61ee5..f947b0eb159cb8b89159567ec7bfbf5a5b188cf0 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -76,6 +76,7 @@
|
| #include "core/dom/ExceptionCode.h"
|
| #include "core/dom/ExecutionContextTask.h"
|
| #include "core/dom/FrameRequestCallback.h"
|
| +#include "core/dom/LayoutTreeBuilderTraversal.h"
|
| #include "core/dom/MainThreadTaskRunner.h"
|
| #include "core/dom/Microtask.h"
|
| #include "core/dom/MutationObserver.h"
|
| @@ -84,7 +85,6 @@
|
| #include "core/dom/NodeIterator.h"
|
| #include "core/dom/NodeComputedStyle.h"
|
| #include "core/dom/NodeRareData.h"
|
| -#include "core/dom/NodeRenderingTraversal.h"
|
| #include "core/dom/NodeTraversal.h"
|
| #include "core/dom/NodeWithIndex.h"
|
| #include "core/dom/NthIndexCache.h"
|
| @@ -1856,7 +1856,7 @@ void Document::updateRenderTreeForNodeIfNeeded(Node* node)
|
| bool needsRecalc = needsFullRenderTreeUpdate() || node->needsStyleRecalc() || node->needsStyleInvalidation();
|
|
|
| if (!needsRecalc) {
|
| - for (const ContainerNode* ancestor = NodeRenderingTraversal::parent(*node); ancestor && !needsRecalc; ancestor = NodeRenderingTraversal::parent(*ancestor))
|
| + for (const ContainerNode* ancestor = LayoutTreeBuilderTraversal::parent(*node); ancestor && !needsRecalc; ancestor = LayoutTreeBuilderTraversal::parent(*ancestor))
|
| needsRecalc = ancestor->needsStyleRecalc() || ancestor->needsStyleInvalidation() || ancestor->needsAdjacentStyleRecalc();
|
| }
|
|
|
|
|