OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
767 template<typename T> | 767 template<typename T> |
768 struct IsWeak<WebCore::WeakMember<T> > { | 768 struct IsWeak<WebCore::WeakMember<T> > { |
769 static const bool value = true; | 769 static const bool value = true; |
770 }; | 770 }; |
771 | 771 |
772 template<typename Key, typename Value, typename Extractor, typename Traits, type
name KeyTraits> | 772 template<typename Key, typename Value, typename Extractor, typename Traits, type
name KeyTraits> |
773 struct IsWeak<WebCore::HeapHashTableBacking<Key, Value, Extractor, Traits, KeyTr
aits> > { | 773 struct IsWeak<WebCore::HeapHashTableBacking<Key, Value, Extractor, Traits, KeyTr
aits> > { |
774 static const bool value = Traits::isWeak; | 774 static const bool value = Traits::isWeak; |
775 }; | 775 }; |
776 | 776 |
| 777 template<typename T> inline T* getPtr(const WebCore::Member<T>& p) |
| 778 { |
| 779 return p.get(); |
| 780 } |
| 781 |
777 } // namespace WTF | 782 } // namespace WTF |
778 | 783 |
779 #endif | 784 #endif |
OLD | NEW |