| OLD | NEW |
| 1 /** | 1 /** |
| 2 * Copyright (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 2 * Copyright (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
| 3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 continue; | 419 continue; |
| 420 if (stayWithin == parentElement(*currentLayoutObject) && | 420 if (stayWithin == parentElement(*currentLayoutObject) && |
| 421 currentCounter->hasResetType()) | 421 currentCounter->hasResetType()) |
| 422 break; | 422 break; |
| 423 newNode->insertAfter(currentCounter, newNode->lastChild(), identifier); | 423 newNode->insertAfter(currentCounter, newNode->lastChild(), identifier); |
| 424 } | 424 } |
| 425 return newNode.get(); | 425 return newNode.get(); |
| 426 } | 426 } |
| 427 | 427 |
| 428 LayoutCounter::LayoutCounter(Document* node, const CounterContent& counter) | 428 LayoutCounter::LayoutCounter(Document* node, const CounterContent& counter) |
| 429 : LayoutText(node, StringImpl::empty()), | 429 : LayoutText(node, StringImpl::empty), |
| 430 m_counter(counter), | 430 m_counter(counter), |
| 431 m_counterNode(nullptr), | 431 m_counterNode(nullptr), |
| 432 m_nextForSameCounter(nullptr) { | 432 m_nextForSameCounter(nullptr) { |
| 433 view()->addLayoutCounter(); | 433 view()->addLayoutCounter(); |
| 434 } | 434 } |
| 435 | 435 |
| 436 LayoutCounter::~LayoutCounter() {} | 436 LayoutCounter::~LayoutCounter() {} |
| 437 | 437 |
| 438 void LayoutCounter::willBeDestroyed() { | 438 void LayoutCounter::willBeDestroyed() { |
| 439 if (m_counterNode) { | 439 if (m_counterNode) { |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 current->parent(), current->previousSibling(), current->nextSibling(), | 705 current->parent(), current->previousSibling(), current->nextSibling(), |
| 706 current->hasCounterNodeMap() | 706 current->hasCounterNodeMap() |
| 707 ? counterName ? blink::counterMaps().get(current)->get(identifier) | 707 ? counterName ? blink::counterMaps().get(current)->get(identifier) |
| 708 : (blink::CounterNode*)1 | 708 : (blink::CounterNode*)1 |
| 709 : (blink::CounterNode*)0); | 709 : (blink::CounterNode*)0); |
| 710 } | 710 } |
| 711 fflush(stderr); | 711 fflush(stderr); |
| 712 } | 712 } |
| 713 | 713 |
| 714 #endif // NDEBUG | 714 #endif // NDEBUG |
| OLD | NEW |