| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 #include "platform/graphics/ListContainer.h" | 6 #include "platform/graphics/ListContainer.h" |
| 7 | 7 |
| 8 #include "wtf/PassOwnPtr.h" | 8 #include "wtf/PassOwnPtr.h" |
| 9 | 9 |
| 10 namespace { | 10 namespace { |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 size_t ListContainerBase::size() const | 420 size_t ListContainerBase::size() const |
| 421 { | 421 { |
| 422 return m_data->size(); | 422 return m_data->size(); |
| 423 } | 423 } |
| 424 | 424 |
| 425 bool ListContainerBase::empty() const | 425 bool ListContainerBase::empty() const |
| 426 { | 426 { |
| 427 return m_data->isEmpty(); | 427 return m_data->isEmpty(); |
| 428 } | 428 } |
| 429 | 429 |
| 430 size_t ListContainerBase::maxSizeForDerivedClass() const |
| 431 { |
| 432 return m_data->elementSize(); |
| 433 } |
| 434 |
| 430 void ListContainerBase::clear() | 435 void ListContainerBase::clear() |
| 431 { | 436 { |
| 432 m_data->clear(); | 437 m_data->clear(); |
| 433 } | 438 } |
| 434 | 439 |
| 435 size_t ListContainerBase::availableSizeWithoutAnotherAllocationForTesting() cons
t | 440 size_t ListContainerBase::availableSizeWithoutAnotherAllocationForTesting() cons
t |
| 436 { | 441 { |
| 437 return m_data->numAvailableElementsInLastList(); | 442 return m_data->numAvailableElementsInLastList(); |
| 438 } | 443 } |
| 439 | 444 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 ListContainerBase::ConstReverseIterator::~ConstReverseIterator() | 510 ListContainerBase::ConstReverseIterator::~ConstReverseIterator() |
| 506 { | 511 { |
| 507 } | 512 } |
| 508 | 513 |
| 509 size_t ListContainerBase::ConstReverseIterator::index() const | 514 size_t ListContainerBase::ConstReverseIterator::index() const |
| 510 { | 515 { |
| 511 return m_index; | 516 return m_index; |
| 512 } | 517 } |
| 513 | 518 |
| 514 } // namespace blink | 519 } // namespace blink |
| OLD | NEW |