| Index: third_party/WebKit/Source/core/layout/LayoutCounter.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutCounter.cpp b/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
|
| index 8a74e0c7a1e6f3b42a2a25a2e6b84d0a24bd5198..a6629e0bf6867a0783127f8f7a8b6f37732286fe 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutCounter.cpp
|
| @@ -614,7 +614,7 @@ void LayoutCounter::layoutObjectSubtreeAttached(LayoutObject* layoutObject) {
|
| node = node->parentNode();
|
| else
|
| node = layoutObject->generatingNode();
|
| - if (node && node->needsAttach())
|
| + if (node && node->needsReattachLayoutTree())
|
| return; // No need to update if the parent is not attached yet
|
| for (LayoutObject* descendant = layoutObject; descendant;
|
| descendant = descendant->nextInPreOrder(layoutObject))
|
| @@ -625,7 +625,7 @@ void LayoutCounter::layoutObjectStyleChanged(LayoutObject& layoutObject,
|
| const ComputedStyle* oldStyle,
|
| const ComputedStyle& newStyle) {
|
| Node* node = layoutObject.generatingNode();
|
| - if (!node || node->needsAttach())
|
| + if (!node || node->needsReattachLayoutTree())
|
| return; // cannot have generated content or if it can have, it will be
|
| // handled during attaching
|
| const CounterDirectiveMap* oldCounterDirectives =
|
|
|