| OLD | NEW |
| 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 #include "wtf/text/AtomicStringHash.h" | 7 #include "platform/wtf/text/AtomicStringHash.h" |
| 8 | 8 |
| 9 namespace blink { | 9 namespace blink { |
| 10 | 10 |
| 11 bool PropertyHandle::operator==(const PropertyHandle& other) const { | 11 bool PropertyHandle::operator==(const PropertyHandle& other) const { |
| 12 if (m_handleType != other.m_handleType) | 12 if (m_handleType != other.m_handleType) |
| 13 return false; | 13 return false; |
| 14 | 14 |
| 15 switch (m_handleType) { | 15 switch (m_handleType) { |
| 16 case HandleCSSProperty: | 16 case HandleCSSProperty: |
| 17 case HandlePresentationAttribute: | 17 case HandlePresentationAttribute: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 35 return -m_cssProperty; | 35 return -m_cssProperty; |
| 36 case HandleSVGAttribute: | 36 case HandleSVGAttribute: |
| 37 return QualifiedNameHash::hash(*m_svgAttribute); | 37 return QualifiedNameHash::hash(*m_svgAttribute); |
| 38 default: | 38 default: |
| 39 NOTREACHED(); | 39 NOTREACHED(); |
| 40 return 0; | 40 return 0; |
| 41 } | 41 } |
| 42 } | 42 } |
| 43 | 43 |
| 44 } // namespace blink | 44 } // namespace blink |
| OLD | NEW |