Changeset 167789 in webkit
- Timestamp:
- Apr 24, 2014 8:59:46 PM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r167788 r167789 1 2014-04-24 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 3 Mark Supplement instead of RefCountedSupplement in NavigatorContentUtils 4 https://bugs.webkit.org/show_bug.cgi?id=132151 5 6 Reviewed by Darin Adler. 7 8 Though Original goal was to make it sharable across navigator instances, the NavigatorContentUtils 9 has used RefCountedSupplement<Page> instead of RefCountedSupplement<Navigator>. This patch makes it 10 use Supplement<Page> because there is no scenario which needs to be shared across navigator instances. 11 12 Blink merge from https://src.chromium.org/viewvc/blink?view=rev&revision=171403. 13 14 No new tests, no behavior changes. 15 16 * Modules/navigatorcontentutils/NavigatorContentUtils.cpp: 17 (WebCore::NavigatorContentUtils::from): 18 (WebCore::NavigatorContentUtils::create): 19 (WebCore::provideNavigatorContentUtilsTo): 20 * Modules/navigatorcontentutils/NavigatorContentUtils.h: 21 1 22 2014-04-24 Commit Queue <commit-queue@webkit.org> 2 23 -
trunk/Source/WebCore/Modules/navigatorcontentutils/NavigatorContentUtils.cpp
r167308 r167789 120 120 NavigatorContentUtils* NavigatorContentUtils::from(Page* page) 121 121 { 122 return static_cast<NavigatorContentUtils*>( RefCountedSupplement<Page, NavigatorContentUtils>::from(page, NavigatorContentUtils::supplementName()));122 return static_cast<NavigatorContentUtils*>(Supplement<Page>::from(page, supplementName())); 123 123 } 124 124 … … 127 127 } 128 128 129 Pass Ref<NavigatorContentUtils> NavigatorContentUtils::create(std::unique_ptr<NavigatorContentUtilsClient> client)130 { 131 return adopt Ref(*new NavigatorContentUtils(std::move(client)));129 PassOwnPtr<NavigatorContentUtils> NavigatorContentUtils::create(std::unique_ptr<NavigatorContentUtilsClient> client) 130 { 131 return adoptPtr(new NavigatorContentUtils(std::move(client))); 132 132 } 133 133 … … 210 210 void provideNavigatorContentUtilsTo(Page* page, std::unique_ptr<NavigatorContentUtilsClient> client) 211 211 { 212 RefCountedSupplement<Page, NavigatorContentUtils>::provideTo(page, NavigatorContentUtils::supplementName(), NavigatorContentUtils::create(std::move(client)));212 NavigatorContentUtils::provideTo(page, NavigatorContentUtils::supplementName(), NavigatorContentUtils::create(std::move(client))); 213 213 } 214 214 -
trunk/Source/WebCore/Modules/navigatorcontentutils/NavigatorContentUtils.h
r166915 r167789 42 42 typedef int ExceptionCode; 43 43 44 class NavigatorContentUtils final : public RefCountedSupplement<Page, NavigatorContentUtils> {44 class NavigatorContentUtils final : public Supplement<Page> { 45 45 public: 46 46 virtual ~NavigatorContentUtils(); … … 56 56 #endif 57 57 58 static Pass Ref<NavigatorContentUtils> create(std::unique_ptr<NavigatorContentUtilsClient>);58 static PassOwnPtr<NavigatorContentUtils> create(std::unique_ptr<NavigatorContentUtilsClient>); 59 59 60 60 private:
Note: See TracChangeset
for help on using the changeset viewer.