Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: Source/platform/graphics/ListContainer.cpp

Issue 1205733002: Add ListContainer::appendByMoving (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Appease compiler overlords Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/platform/graphics/ListContainer.h ('k') | Source/platform/graphics/ListContainerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698