Bug 150238 - Finalize bug 149952 patch
Summary: Finalize bug 149952 patch
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-16 10:17 PDT by youenn fablet
Modified: 2015-10-17 00:10 PDT (History)
2 users (show)

See Also:


Attachments
Patch (3.50 KB, patch)
2015-10-16 10:24 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2015-10-16 10:17:21 PDT
Following on bug 149952, we should fix what Darin mentionned:

> Source/WebCore/bindings/js/JSDOMConstructor.h:32
> +    static JSC::Structure* createStructure(JSC::VM&, JSC::JSGlobalObject&, JSC::JSValue);

I noticed one tiny mistake that we should return and fix. I don’t think the meaning of JSC::JSValue is clear here without the argument name, prototype.

> Source/WebCore/bindings/js/JSDOMConstructor.h:137
> +template<typename JSClass> void JSDOMConstructor<JSClass>::finishCreation(JSC::VM& vm, JSDOMGlobalObject& globalObject)

In the final patch you landed this was one of the only function templates without “inline”. Was that intentional? If not, I suggest adding the inline.

> Source/WebCore/bindings/js/JSDOMConstructor.h:144
> +template<typename JSClass> JSC::ConstructType JSDOMConstructor<JSClass>::getConstructData(JSC::JSCell*, JSC::ConstructData& constructData)

In the final patch you landed this was one of the only function templates without “inline”. Was that intentional? If not, I suggest adding the inline.
Comment 1 youenn fablet 2015-10-16 10:24:15 PDT
Created attachment 263283 [details]
Patch
Comment 2 WebKit Commit Bot 2015-10-17 00:10:48 PDT
Comment on attachment 263283 [details]
Patch

Clearing flags on attachment: 263283

Committed r191238: <http://trac.webkit.org/changeset/191238>
Comment 3 WebKit Commit Bot 2015-10-17 00:10:52 PDT
All reviewed patches have been landed.  Closing bug.