Bug 141902 - Remove unnecessary create() factory functions in CDMFoo, NamedNodeMap
Summary: Remove unnecessary create() factory functions in CDMFoo, NamedNodeMap
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Gyuyoung Kim
URL:
Keywords:
Depends on: 141732
Blocks:
  Show dependency treegraph
 
Reported: 2015-02-23 02:34 PST by Gyuyoung Kim
Modified: 2015-02-26 17:04 PST (History)
5 users (show)

See Also:


Attachments
Patch (8.24 KB, patch)
2015-02-23 02:36 PST, Gyuyoung Kim
no flags Details | Formatted Diff | Diff
Patch (8.12 KB, patch)
2015-02-23 02:37 PST, Gyuyoung Kim
no flags Details | Formatted Diff | Diff
Patch (9.41 KB, patch)
2015-02-23 17:29 PST, Gyuyoung Kim
no flags Details | Formatted Diff | Diff
Patch (11.00 KB, patch)
2015-02-24 01:18 PST, Gyuyoung Kim
no flags Details | Formatted Diff | Diff
Patch for win (11.65 KB, patch)
2015-02-24 04:28 PST, Gyuyoung Kim
no flags Details | Formatted Diff | Diff
Patch (11.73 KB, patch)
2015-02-24 07:59 PST, Gyuyoung Kim
no flags Details | Formatted Diff | Diff
Patch (11.47 KB, patch)
2015-02-24 19:31 PST, Gyuyoung Kim
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews104 for mac-mavericks-wk2 (1015.65 KB, application/zip)
2015-02-24 20:27 PST, Build Bot
no flags Details
Patch (9.35 KB, patch)
2015-02-25 22:06 PST, Gyuyoung Kim
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gyuyoung Kim 2015-02-23 02:34:54 PST
Though create() factory functions do nothing, CDMFoo, NamedNodeMap have used create() factory. Even some of create() factory used std::unique_ptr<> instead of std::make_unique<>.
Comment 1 Gyuyoung Kim 2015-02-23 02:36:36 PST
Created attachment 247110 [details]
Patch
Comment 2 Gyuyoung Kim 2015-02-23 02:37:54 PST
Created attachment 247111 [details]
Patch
Comment 3 Gyuyoung Kim 2015-02-23 17:29:10 PST
Created attachment 247172 [details]
Patch
Comment 4 Gyuyoung Kim 2015-02-24 01:18:30 PST
Created attachment 247211 [details]
Patch
Comment 5 Gyuyoung Kim 2015-02-24 04:28:49 PST
Created attachment 247222 [details]
Patch for win
Comment 6 Gyuyoung Kim 2015-02-24 07:59:12 PST
Created attachment 247233 [details]
Patch
Comment 7 Gyuyoung Kim 2015-02-24 19:31:51 PST
Created attachment 247292 [details]
Patch
Comment 8 Build Bot 2015-02-24 20:27:04 PST
Comment on attachment 247292 [details]
Patch

Attachment 247292 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/4548557155598336

New failing tests:
fast/loader/text-document-wrapping.html
tables/mozilla/bugs/bug139524-2.html
Comment 9 Build Bot 2015-02-24 20:27:08 PST
Created attachment 247302 [details]
Archive of layout-test-results from ews104 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 10 Gyuyoung Kim 2015-02-25 18:04:42 PST
Comment on attachment 247292 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=247292&action=review

> Source/WebCore/testing/Internals.cpp:2129
> +    CDM::registerCDMFactory([](CDM* cdm) { return std::make_unique<MockCDM>(cdm); },

Brent, I have failed to pass win ews for this use. Win EWS reported a build error as below,


 1>WebKit.exp : error LNK2001: unresolved external symbol "public: static void __cdecl WebCore::CDM::registerCDMFactory(class std::unique_ptr<class WebCore::CDMPrivateInterface,struct std::default_delete<class WebCore::CDMPrivateInterface> > (__cdecl*)(class WebCore::CDM *),bool (__cdecl*)(class WTF::String const &),bool (__cdecl*)(class WTF::String const &,class WTF::String const &))" (?registerCDMFactory@CDM@WebCore@@SAXP6A?AV?$unique_ptr@VCDMPrivateInterface@WebCore@@U?$default_delete@VCDMPrivateInterface@WebCore@@@std@@@std@@PAV12@@ZP6A_NABVString@WTF@@@ZP6A_N22@Z@Z)
     1>C:\cygwin\home\buildbot\WebKit\WebKitBuild\Release\bin32\WebKit.dll : fatal error LNK1120: 1 unresolved externals
     1>Done Building Project "C:\cygwin\home\buildbot\WebKit\Source\WebKit\WebKit.vcxproj\WebKit\WebKit.vcxproj" (Build tar


Could you help to fix this problem ?
Comment 11 Darin Adler 2015-02-25 19:15:29 PST
That problem should go away once Brent commits the fix for bug 141734 and we rebase against it (or just get EWS to run again).
Comment 12 Brent Fulgham 2015-02-25 20:01:30 PST
(In reply to comment #11)
> That problem should go away once Brent commits the fix for bug 141734 and we
> rebase against it (or just get EWS to run again).

Yes! I think we are just a few minutes away from this ceasing to be a problem anymore. :-)
Comment 13 Brent Fulgham 2015-02-25 20:02:29 PST
Your patch should work once I close Bug 141732.
Comment 14 Gyuyoung Kim 2015-02-25 22:06:43 PST
Created attachment 247406 [details]
Patch
Comment 15 Gyuyoung Kim 2015-02-25 22:07:17 PST
(In reply to comment #13)
> Your patch should work once I close Bug 141732.

Thanks, try again !
Comment 16 Brent Fulgham 2015-02-25 22:47:46 PST
(In reply to comment #15)
> (In reply to comment #13)
> > Your patch should work once I close Bug 141732.
> 
> Thanks, try again !

It worked! Whoo-hoo! :-)
Comment 17 Gyuyoung Kim 2015-02-25 22:48:42 PST
(In reply to comment #16)
> (In reply to comment #15)
> > (In reply to comment #13)
> > > Your patch should work once I close Bug 141732.
> > 
> > Thanks, try again !
> 
> It worked! Whoo-hoo! :-)

He He Thanks :)
Comment 18 WebKit Commit Bot 2015-02-26 17:04:39 PST
Comment on attachment 247406 [details]
Patch

Clearing flags on attachment: 247406

Committed r180712: <http://trac.webkit.org/changeset/180712>
Comment 19 WebKit Commit Bot 2015-02-26 17:04:45 PST
All reviewed patches have been landed.  Closing bug.