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

Side by Side Diff: Source/core/html/HTMLSelectElement.cpp

Issue 327323002: Start removing the double-negative !ASSERT_DISABLED (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
4 * (C) 1999 Antti Koivisto (koivisto@kde.org) 4 * (C) 1999 Antti Koivisto (koivisto@kde.org)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved.
7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
8 * Copyright (C) 2010 Google Inc. All rights reserved. 8 * Copyright (C) 2010 Google Inc. All rights reserved.
9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
10 * 10 *
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 else 719 else
720 toRenderListBox(renderer)->setOptionsChanged(true); 720 toRenderListBox(renderer)->setOptionsChanged(true);
721 } 721 }
722 } 722 }
723 723
724 const WillBeHeapVector<RawPtrWillBeMember<HTMLElement> >& HTMLSelectElement::lis tItems() const 724 const WillBeHeapVector<RawPtrWillBeMember<HTMLElement> >& HTMLSelectElement::lis tItems() const
725 { 725 {
726 if (m_shouldRecalcListItems) 726 if (m_shouldRecalcListItems)
727 recalcListItems(); 727 recalcListItems();
728 else { 728 else {
729 #if !ASSERT_DISABLED 729 #if ASSERT_ENABLED
730 WillBeHeapVector<RawPtrWillBeMember<HTMLElement> > items = m_listItems; 730 WillBeHeapVector<RawPtrWillBeMember<HTMLElement> > items = m_listItems;
731 recalcListItems(false); 731 recalcListItems(false);
732 ASSERT(items == m_listItems); 732 ASSERT(items == m_listItems);
733 #endif 733 #endif
734 } 734 }
735 735
736 return m_listItems; 736 return m_listItems;
737 } 737 }
738 738
739 void HTMLSelectElement::invalidateSelectedItems() 739 void HTMLSelectElement::invalidateSelectedItems()
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
1659 1659
1660 void HTMLSelectElement::trace(Visitor* visitor) 1660 void HTMLSelectElement::trace(Visitor* visitor)
1661 { 1661 {
1662 #if ENABLE(OILPAN) 1662 #if ENABLE(OILPAN)
1663 visitor->trace(m_listItems); 1663 visitor->trace(m_listItems);
1664 #endif 1664 #endif
1665 HTMLFormControlElementWithState::trace(visitor); 1665 HTMLFormControlElementWithState::trace(visitor);
1666 } 1666 }
1667 1667
1668 } // namespace 1668 } // namespace
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFormElement.cpp ('k') | Source/core/html/canvas/CanvasRenderingContext2D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698