Index: Source/platform/Supplementable.h |
diff --git a/Source/platform/Supplementable.h b/Source/platform/Supplementable.h |
index 646cadff40c21d47444316432a299f5bb058dfd1..7d238da4040fdde9c212a643ea4e4c870e0a8d12 100644 |
--- a/Source/platform/Supplementable.h |
+++ b/Source/platform/Supplementable.h |
@@ -98,9 +98,14 @@ public: |
virtual bool isRefCountedWrapper() const { return false; } |
#endif |
- static void provideTo(Supplementable<T>* host, const char* key, PassOwnPtr<Supplement<T> > supplement) |
+ static void provideTo(Supplementable<T>& host, const char* key, PassOwnPtr<Supplement<T> > supplement) |
{ |
- host->provideSupplement(key, supplement); |
+ host.provideSupplement(key, supplement); |
+ } |
+ |
+ static Supplement<T>* from(Supplementable<T>& host, const char* key) |
+ { |
+ return host.requireSupplement(key); |
} |
static Supplement<T>* from(Supplementable<T>* host, const char* key) |