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

Side by Side Diff: third_party/WebKit/Source/core/animation/PropertyHandle.cpp

Issue 2109333002: Replace ASSERT_NOT_REACHED with NOTREACHED (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 "core/animation/PropertyHandle.h" 5 #include "core/animation/PropertyHandle.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 bool PropertyHandle::operator==(const PropertyHandle& other) const 9 bool PropertyHandle::operator==(const PropertyHandle& other) const
10 { 10 {
(...skipping 14 matching lines...) Expand all
25 unsigned PropertyHandle::hash() const 25 unsigned PropertyHandle::hash() const
26 { 26 {
27 switch (m_handleType) { 27 switch (m_handleType) {
28 case HandleCSSProperty: 28 case HandleCSSProperty:
29 return m_cssProperty; 29 return m_cssProperty;
30 case HandlePresentationAttribute: 30 case HandlePresentationAttribute:
31 return -m_cssProperty; 31 return -m_cssProperty;
32 case HandleSVGAttribute: 32 case HandleSVGAttribute:
33 return QualifiedNameHash::hash(*m_svgAttribute); 33 return QualifiedNameHash::hash(*m_svgAttribute);
34 default: 34 default:
35 ASSERT_NOT_REACHED(); 35 NOTREACHED();
36 return 0; 36 return 0;
37 } 37 }
38 } 38 }
39 39
40 } // namespace blink 40 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698