diff options
Diffstat (limited to 'WebCore/rendering/RenderCounter.cpp')
-rw-r--r-- | WebCore/rendering/RenderCounter.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/WebCore/rendering/RenderCounter.cpp b/WebCore/rendering/RenderCounter.cpp index 1882b12..4b6deed 100644 --- a/WebCore/rendering/RenderCounter.cpp +++ b/WebCore/rendering/RenderCounter.cpp @@ -219,7 +219,7 @@ const char* RenderCounter::renderName() const return "RenderCounter"; } -bool RenderCounter::isRenderCounter() const +bool RenderCounter::isCounter() const { return true; } @@ -263,6 +263,12 @@ void RenderCounter::calcPrefWidths(int lead) RenderText::calcPrefWidths(lead); } +void RenderCounter::invalidate() +{ + m_counterNode = 0; + setNeedsLayoutAndPrefWidthsRecalc(); +} + static void destroyCounterNodeChildren(AtomicStringImpl* identifier, CounterNode* node) { CounterNode* previous; @@ -271,6 +277,7 @@ static void destroyCounterNodeChildren(AtomicStringImpl* identifier, CounterNode child->parent()->removeChild(child); ASSERT(counterMaps().get(child->renderer())->get(identifier) == child); counterMaps().get(child->renderer())->remove(identifier); + child->renderer()->invalidateCounters(); delete child; } } |