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

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

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed config.gni. Minor cleanups. Created 6 years, 5 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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 else 718 else
719 toRenderListBox(renderer)->setOptionsChanged(true); 719 toRenderListBox(renderer)->setOptionsChanged(true);
720 } 720 }
721 } 721 }
722 722
723 const WillBeHeapVector<RawPtrWillBeMember<HTMLElement> >& HTMLSelectElement::lis tItems() const 723 const WillBeHeapVector<RawPtrWillBeMember<HTMLElement> >& HTMLSelectElement::lis tItems() const
724 { 724 {
725 if (m_shouldRecalcListItems) 725 if (m_shouldRecalcListItems)
726 recalcListItems(); 726 recalcListItems();
727 else { 727 else {
728 #if ASSERT_ENABLED 728 #if ENABLE(ASSERT)
729 WillBeHeapVector<RawPtrWillBeMember<HTMLElement> > items = m_listItems; 729 WillBeHeapVector<RawPtrWillBeMember<HTMLElement> > items = m_listItems;
730 recalcListItems(false); 730 recalcListItems(false);
731 ASSERT(items == m_listItems); 731 ASSERT(items == m_listItems);
732 #endif 732 #endif
733 } 733 }
734 734
735 return m_listItems; 735 return m_listItems;
736 } 736 }
737 737
738 void HTMLSelectElement::invalidateSelectedItems() 738 void HTMLSelectElement::invalidateSelectedItems()
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
1640 1640
1641 void HTMLSelectElement::trace(Visitor* visitor) 1641 void HTMLSelectElement::trace(Visitor* visitor)
1642 { 1642 {
1643 #if ENABLE(OILPAN) 1643 #if ENABLE(OILPAN)
1644 visitor->trace(m_listItems); 1644 visitor->trace(m_listItems);
1645 #endif 1645 #endif
1646 HTMLFormControlElementWithState::trace(visitor); 1646 HTMLFormControlElementWithState::trace(visitor);
1647 } 1647 }
1648 1648
1649 } // namespace 1649 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698