Summary: | Clean up PageCache classes | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Anders Carlsson <andersca> | ||||||
Component: | New Bugs | Assignee: | Anders Carlsson <andersca> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | commit-queue, japhet | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Anders Carlsson
2014-01-17 16:00:45 PST
Created attachment 221503 [details]
Patch
Created attachment 221506 [details]
Patch
Comment on attachment 221506 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=221506&action=review k > Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm:1414 > - OwnPtr<WebCachedFramePlatformData> webPlatformData = adoptPtr(new WebCachedFramePlatformData([m_webFrame->_private->webFrameView documentView])); > - cachedFrame->setCachedFramePlatformData(webPlatformData.release()); > + auto webPlatformData = std::make_unique<WebCachedFramePlatformData>(m_webFrame->_private->webFrameView.documentView); > + cachedFrame->setCachedFramePlatformData(std::move(webPlatformData)); I'd get rid of the temporary here, since using it after this point would be an error anyway. Committed r162234: <http://trac.webkit.org/changeset/162234> |