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: third_party/WebKit/Source/core/layout/LayoutTheme.cpp

Issue 2758683002: Replace ASSERT_NOT_REACHED with NOTREACHED in core/layout/ (Closed)
Patch Set: Created 3 years, 9 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 /** 1 /**
2 * This file is part of the theme implementation for form controls in WebCore. 2 * This file is part of the theme implementation for form controls in WebCore.
3 * 3 *
4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. 4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 return statusBar; 685 return statusBar;
686 case CSSValueWebkitMiniControl: 686 case CSSValueWebkitMiniControl:
687 return webkitMiniControl; 687 return webkitMiniControl;
688 case CSSValueWebkitSmallControl: 688 case CSSValueWebkitSmallControl:
689 return webkitSmallControl; 689 return webkitSmallControl;
690 case CSSValueWebkitControl: 690 case CSSValueWebkitControl:
691 return webkitControl; 691 return webkitControl;
692 case CSSValueNone: 692 case CSSValueNone:
693 return defaultDescription; 693 return defaultDescription;
694 default: 694 default:
695 ASSERT_NOT_REACHED(); 695 NOTREACHED();
696 return defaultDescription; 696 return defaultDescription;
697 } 697 }
698 } 698 }
699 699
700 void LayoutTheme::systemFont(CSSValueID systemFontID, 700 void LayoutTheme::systemFont(CSSValueID systemFontID,
701 FontDescription& fontDescription) { 701 FontDescription& fontDescription) {
702 fontDescription = getCachedFontDescription(systemFontID); 702 fontDescription = getCachedFontDescription(systemFontID);
703 if (fontDescription.isAbsoluteSize()) 703 if (fontDescription.isAbsoluteSize())
704 return; 704 return;
705 705
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 return activeListBoxSelectionBackgroundColor(); 780 return activeListBoxSelectionBackgroundColor();
781 case CSSValueInternalActiveListBoxSelectionText: 781 case CSSValueInternalActiveListBoxSelectionText:
782 return activeListBoxSelectionForegroundColor(); 782 return activeListBoxSelectionForegroundColor();
783 case CSSValueInternalInactiveListBoxSelection: 783 case CSSValueInternalInactiveListBoxSelection:
784 return inactiveListBoxSelectionBackgroundColor(); 784 return inactiveListBoxSelectionBackgroundColor();
785 case CSSValueInternalInactiveListBoxSelectionText: 785 case CSSValueInternalInactiveListBoxSelectionText:
786 return inactiveListBoxSelectionForegroundColor(); 786 return inactiveListBoxSelectionForegroundColor();
787 default: 787 default:
788 break; 788 break;
789 } 789 }
790 ASSERT_NOT_REACHED(); 790 NOTREACHED();
791 return Color(); 791 return Color();
792 } 792 }
793 793
794 Color LayoutTheme::platformTextSearchHighlightColor(bool activeMatch) const { 794 Color LayoutTheme::platformTextSearchHighlightColor(bool activeMatch) const {
795 if (activeMatch) 795 if (activeMatch)
796 return Color(255, 150, 50); // Orange. 796 return Color(255, 150, 50); // Orange.
797 return Color(255, 255, 0); // Yellow. 797 return Color(255, 255, 0); // Yellow.
798 } 798 }
799 799
800 Color LayoutTheme::platformTextSearchColor(bool activeMatch) const { 800 Color LayoutTheme::platformTextSearchColor(bool activeMatch) const {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 // padding - not honored by WinIE, needs to be removed. 912 // padding - not honored by WinIE, needs to be removed.
913 style.resetPadding(); 913 style.resetPadding();
914 914
915 // border - honored by WinIE, but looks terrible (just paints in the control 915 // border - honored by WinIE, but looks terrible (just paints in the control
916 // box and turns off the Windows XP theme) 916 // box and turns off the Windows XP theme)
917 // for now, we will not honor it. 917 // for now, we will not honor it.
918 style.resetBorder(); 918 style.resetBorder();
919 } 919 }
920 920
921 } // namespace blink 921 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698