OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CompositedLayerMappingPtr_h | 5 #ifndef CompositedLayerMappingPtr_h |
6 #define CompositedLayerMappingPtr_h | 6 #define CompositedLayerMappingPtr_h |
7 | 7 |
8 #include "wtf/Assertions.h" | 8 #include "wtf/Assertions.h" |
9 | 9 |
10 namespace WebCore { | 10 namespace WebCore { |
(...skipping 12 matching lines...) Expand all Loading... |
23 ASSERT(m_mapping); | 23 ASSERT(m_mapping); |
24 return *m_mapping; | 24 return *m_mapping; |
25 } | 25 } |
26 | 26 |
27 CompositedLayerMapping* operator->() const | 27 CompositedLayerMapping* operator->() const |
28 { | 28 { |
29 ASSERT(m_mapping); | 29 ASSERT(m_mapping); |
30 return m_mapping; | 30 return m_mapping; |
31 } | 31 } |
32 | 32 |
| 33 bool equals(const CompositedLayerMapping* other) const |
| 34 { |
| 35 return m_mapping == other; |
| 36 } |
| 37 |
33 private: | 38 private: |
34 CompositedLayerMapping* m_mapping; | 39 CompositedLayerMapping* m_mapping; |
35 }; | 40 }; |
36 | 41 |
37 } // namespace WebCore | 42 } // namespace WebCore |
38 | 43 |
39 #endif // CompositedLayerMappingPtr_h | 44 #endif // CompositedLayerMappingPtr_h |
OLD | NEW |