| | 395 | static void invalidateCountersInContainer(RenderObject* container) |
|---|
| | 396 | { |
|---|
| | 397 | if (!container) |
|---|
| | 398 | return; |
|---|
| | 399 | container = findBeforeAfterParent(container); |
|---|
| | 400 | if (!container) |
|---|
| | 401 | return; |
|---|
| | 402 | for (RenderObject* content = container->firstChild(); content; content = content->nextSibling()) { |
|---|
| | 403 | if (content->isCounter()) |
|---|
| | 404 | static_cast<RenderCounter*>(content)->invalidate(); |
|---|
| | 405 | } |
|---|
| | 406 | } |
|---|
| | 407 | |
|---|
| | 408 | void RenderContainer::invalidateCounters() |
|---|
| | 409 | { |
|---|
| | 410 | invalidateCountersInContainer(beforeAfterContainer(RenderStyle::BEFORE)); |
|---|
| | 411 | invalidateCountersInContainer(beforeAfterContainer(RenderStyle::AFTER)); |
|---|
| | 412 | } |
|---|
| | 413 | |
|---|