| Index: Source/core/layout/LayoutCounter.cpp
|
| diff --git a/Source/core/layout/LayoutCounter.cpp b/Source/core/layout/LayoutCounter.cpp
|
| index 8ea4aa7e587c3e3a6d33d7fa6d934599b136f193..945101c3cf383e0ce05654aa41639239fb1cbfda 100644
|
| --- a/Source/core/layout/LayoutCounter.cpp
|
| +++ b/Source/core/layout/LayoutCounter.cpp
|
| @@ -569,6 +569,8 @@ void LayoutCounter::layoutObjectStyleChanged(LayoutObject& layoutObject, const C
|
| LayoutCounter::destroyCounterNodes(layoutObject);
|
| }
|
| } else if (newCounterDirectives) {
|
| + if (layoutObject.hasCounterNodeMap())
|
| + LayoutCounter::destroyCounterNodes(layoutObject);
|
| CounterDirectiveMap::const_iterator newMapEnd = newCounterDirectives->end();
|
| for (CounterDirectiveMap::const_iterator it = newCounterDirectives->begin(); it != newMapEnd; ++it) {
|
| // We must create this node here, because the added node may be a node with no display such as
|
|
|