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 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
662 template<typename T> | 662 template<typename T> |
663 struct IsWeak<WebCore::WeakMember<T> > { | 663 struct IsWeak<WebCore::WeakMember<T> > { |
664 static const bool value = true; | 664 static const bool value = true; |
665 }; | 665 }; |
666 | 666 |
667 template<typename Key, typename Value, typename Extractor, typename Traits, type name KeyTraits> | 667 template<typename Key, typename Value, typename Extractor, typename Traits, type name KeyTraits> |
668 struct IsWeak<WebCore::HeapHashTableBacking<Key, Value, Extractor, Traits, KeyTr aits> > { | 668 struct IsWeak<WebCore::HeapHashTableBacking<Key, Value, Extractor, Traits, KeyTr aits> > { |
669 static const bool value = Traits::isWeak; | 669 static const bool value = Traits::isWeak; |
670 }; | 670 }; |
671 | 671 |
672 template<typename T> inline T* getPtr(const WebCore::Member<T>& p) | |
haraken
2014/02/12 05:18:45
I'm just curious: Where is this method needed?
sof
2014/02/12 07:48:51
Needed for
interface SpeechSynthesis {
...
| |
673 { | |
674 return p.get(); | |
675 } | |
676 | |
672 } // namespace WTF | 677 } // namespace WTF |
673 | 678 |
674 #endif | 679 #endif |
OLD | NEW |