Changeset 155527 in webkit
- Timestamp:
- Sep 11, 2013 7:43:03 AM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r155526 r155527 1 2013-09-11 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> 2 3 WTF::OwnPtr should behave similarly with the rest of WTF smart pointers 4 https://bugs.webkit.org/show_bug.cgi?id=120773 5 6 Reviewed by Anders Carlsson. 7 8 Before the change OwnPtr could take either the pointer type or the pointed-to type, which was bad 9 for the following reasons: 10 - It distinguished OwnPtr behaviour from other WTF smart pointer classes behaviour (so it was confusing for the Client). 11 - It was potential error-prone as it actually modified the type given by the Client in opaque way. 12 13 * wtf/OwnPtr.h: 14 * wtf/PassOwnPtr.h: 15 1 16 2013-09-11 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> 2 17 -
trunk/Source/WTF/wtf/OwnPtr.h
r155526 r155527 31 31 namespace WTF { 32 32 33 // Unlike most of our smart pointers, OwnPtr can take either the pointer type or the pointed-to type.34 35 33 template<typename T> class PassOwnPtr; 36 34 template<typename T> PassOwnPtr<T> adoptPtr(T*); … … 38 36 template<typename T> class OwnPtr { 39 37 public: 40 typedef typename std::remove_pointer<T>::typeValueType;38 typedef T ValueType; 41 39 typedef ValueType* PtrType; 42 40 -
trunk/Source/WTF/wtf/PassOwnPtr.h
r155357 r155527 34 34 namespace WTF { 35 35 36 // Unlike most of our smart pointers, PassOwnPtr can take either the pointer type or the pointed-to type.37 38 36 template<typename T> class OwnPtr; 39 37 template<typename T> class PassOwnPtr; … … 45 43 template<typename T> class PassOwnPtr { 46 44 public: 47 typedef typename std::remove_pointer<T>::typeValueType;45 typedef T ValueType; 48 46 typedef ValueType* PtrType; 49 47 -
trunk/Source/WebCore/ChangeLog
r155524 r155527 1 2013-09-11 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> 2 3 WTF::OwnPtr should behave similarly with the rest of WTF smart pointers 4 https://bugs.webkit.org/show_bug.cgi?id=120773 5 6 Reviewed by Anders Carlsson. 7 8 Before the change OwnPtr could take either the pointer type or the pointed-to type, which was bad 9 for the following reasons: 10 - It distinguished OwnPtr behaviour from other WTF smart pointer classes behaviour (so it was confusing for the Client). 11 - It was potential error-prone as it actually modified the type given by the Client in opaque way. 12 13 * page/animation/CSSPropertyAnimation.cpp: 14 (WebCore::PropertyWrapperShadow::blendSimpleOrMatchedShadowLists): 15 (WebCore::PropertyWrapperShadow::blendMismatchedShadowLists): 16 1 17 2013-09-11 Andreas Kling <akling@apple.com> 2 18 -
trunk/Source/WebCore/page/animation/CSSPropertyAnimation.cpp
r155240 r155527 673 673 674 674 private: 675 PassOwnPtr<ShadowData *> blendSimpleOrMatchedShadowLists(const AnimationBase* anim, double progress, const ShadowData* shadowA, const ShadowData* shadowB) const675 PassOwnPtr<ShadowData> blendSimpleOrMatchedShadowLists(const AnimationBase* anim, double progress, const ShadowData* shadowA, const ShadowData* shadowB) const 676 676 { 677 677 OwnPtr<ShadowData> newShadowData; … … 699 699 } 700 700 701 PassOwnPtr<ShadowData *> blendMismatchedShadowLists(const AnimationBase* anim, double progress, const ShadowData* shadowA, const ShadowData* shadowB, int fromLength, int toLength) const701 PassOwnPtr<ShadowData> blendMismatchedShadowLists(const AnimationBase* anim, double progress, const ShadowData* shadowA, const ShadowData* shadowB, int fromLength, int toLength) const 702 702 { 703 703 // The shadows in ShadowData are stored in reverse order, so when animating mismatched lists, -
trunk/Source/WebKit2/ChangeLog
r155522 r155527 1 2013-09-11 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> 2 3 WTF::OwnPtr should behave similarly with the rest of WTF smart pointers 4 https://bugs.webkit.org/show_bug.cgi?id=120773 5 6 Reviewed by Anders Carlsson. 7 8 Before the change OwnPtr could take either the pointer type or the pointed-to type, which was bad 9 for the following reasons: 10 - It distinguished OwnPtr behaviour from other WTF smart pointer classes behaviour (so it was confusing for the Client). 11 - It was potential error-prone as it actually modified the type given by the Client in opaque way. 12 13 * UIProcess/API/efl/ewk_database_manager.cpp: 14 (getDatabaseOriginsCallback): 15 * UIProcess/API/efl/ewk_storage_manager.cpp: 16 (getStorageOriginsCallback): 17 1 18 2013-09-11 ChangSeok Oh <changseok.oh@collabora.com> 2 19 -
trunk/Source/WebKit2/UIProcess/API/efl/ewk_database_manager.cpp
r140905 r155527 78 78 static void getDatabaseOriginsCallback(WKArrayRef origins, WKErrorRef wkError, void* context) 79 79 { 80 OwnPtr<Ewk_Database_Origins_Async_Get_Context *> webDatabaseContext = adoptPtr(static_cast<Ewk_Database_Origins_Async_Get_Context*>(context));80 OwnPtr<Ewk_Database_Origins_Async_Get_Context> webDatabaseContext = adoptPtr(static_cast<Ewk_Database_Origins_Async_Get_Context*>(context)); 81 81 Eina_List* originList = webDatabaseContext->manager->createOriginList(origins); 82 82 OwnPtr<EwkError> ewkError = EwkError::create(wkError); -
trunk/Source/WebKit2/UIProcess/API/efl/ewk_storage_manager.cpp
r140905 r155527 79 79 { 80 80 Eina_List* originList = 0; 81 OwnPtr<Ewk_Storage_Origins_Async_Get_Context *> webStorageContext = adoptPtr(static_cast<Ewk_Storage_Origins_Async_Get_Context*>(context));81 OwnPtr<Ewk_Storage_Origins_Async_Get_Context> webStorageContext = adoptPtr(static_cast<Ewk_Storage_Origins_Async_Get_Context*>(context)); 82 82 83 83 originList = webStorageContext->manager->createOriginList(origins);
Note: See TracChangeset
for help on using the changeset viewer.