Changeset 94823 in webkit
- Timestamp:
- Sep 8, 2011 5:50:09 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r94822 r94823 1 2011-09-08 Tony Chang <tony@chromium.org> 2 3 Cleanup of switch statements with default cases 4 https://bugs.webkit.org/show_bug.cgi?id=67808 5 6 Reviewed by Adam Barth. 7 8 No new tests, just a small refactoring. 9 10 * page/WebKitAnimation.cpp: 11 (WebCore::WebKitAnimation::fillMode): 12 * platform/audio/Distance.cpp: 13 (WebCore::DistanceEffect::gain): 14 1 15 2011-09-08 Eric Seidel <eric@webkit.org> 2 16 -
trunk/Source/WebCore/page/WebKitAnimation.cpp
r80846 r94823 95 95 case AnimationFillModeNone: 96 96 return FILL_NONE; 97 break;98 97 case AnimationFillModeForwards: 99 98 return FILL_FORWARDS; 100 break;101 99 case AnimationFillModeBackwards: 102 100 return FILL_BACKWARDS; 103 break; 104 default: 101 case AnimationFillModeBoth: 105 102 return FILL_BOTH; 106 break;107 103 } 104 ASSERT_NOT_REACHED(); 105 return FILL_BOTH; 108 106 } 109 107 -
trunk/Source/WebCore/platform/audio/Distance.cpp
r66745 r94823 61 61 case ModelLinear: 62 62 return linearGain(distance); 63 break;64 63 case ModelInverse: 65 64 return inverseGain(distance); 66 break;67 65 case ModelExponential: 68 66 return exponentialGain(distance); 69 break;70 71 default:72 return 0.0;73 67 } 68 ASSERT_NOT_REACHED(); 69 return 0.0; 74 70 } 75 71
Note: See TracChangeset
for help on using the changeset viewer.