WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
151431
Add WebCore namespace for generated bindings for supplemental method calls
https://bugs.webkit.org/show_bug.cgi?id=151431
Summary
Add WebCore namespace for generated bindings for supplemental method calls
Nikos Andronikos
Reported
2015-11-18 21:33:51 PST
This patch adds "WebCore::" to supplemental method calls for bindings code generated for JS and Objective-C. This will solve a build failure we have observed while trying to add a partial interface Document binding for the Web Animation API implementation.
Attachments
Patch
(16.45 KB, patch)
2015-11-18 21:47 PST
,
Nikos Andronikos
no flags
Details
Formatted Diff
Diff
Patch
(16.58 KB, patch)
2015-11-22 16:49 PST
,
Nikos Andronikos
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Nikos Andronikos
Comment 1
2015-11-18 21:47:52 PST
Created
attachment 265845
[details]
Patch
Alex Christensen
Comment 2
2015-11-18 23:27:38 PST
What is the build failure? What does the generated code look like? Is it calling WebCore namespace code from a namespace inside WebCore? I would believe this change is necessary, but I'd like a little more info.
Darin Adler
Comment 3
2015-11-19 08:50:31 PST
Comment on
attachment 265845
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=265845&action=review
> Source/WebCore/ChangeLog:3 > + Add WebCore namespace for generated bindings for supplemental method calls
Why?
Nikos Andronikos
Comment 4
2015-11-22 16:38:24 PST
(In reply to
comment #2
)
> What is the build failure? What does the generated code look like? Is it > calling WebCore namespace code from a namespace inside WebCore? I would > believe this change is necessary, but I'd like a little more info.
The build failure is that the namespace “WebCore::” is missing before the class name. A little background of what I am implementing: I am implementing a partial interface extension to the “Document” interface using "Supplement" (see “Supplementable.h”). The generated code is output into DOMDocument.mm and looks like this: - (DOMDocumentTimeline *)timeline { WebCore::JSMainThreadNullState state; return kit(WTF::getPtr(DocumentAnimation::timeline(IMPL))); } The compiler complains that “DocumentAnimation” cannot be resolved, because “WebCore::” is missing. My fix corrects this by adding the namespace to “DocumentAnimation”. Note: It looks to me like the lack of the WebCore namespace specifier was an oversight by the author of the supplemental interface changes. He seems to have corrected that oversight for GObject (see:
https://bugs.webkit.org/show_bug.cgi?id=79293
), but not here. I presume no code has been generated that has hit this before.
Nikos Andronikos
Comment 5
2015-11-22 16:49:14 PST
Created
attachment 266073
[details]
Patch
Nikos Andronikos
Comment 6
2015-11-22 16:50:13 PST
(In reply to
comment #3
)
> Comment on
attachment 265845
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=265845&action=review
> > > Source/WebCore/ChangeLog:3 > > + Add WebCore namespace for generated bindings for supplemental method calls > > Why?
See updated patch
WebKit Commit Bot
Comment 7
2015-11-23 11:57:35 PST
Comment on
attachment 266073
[details]
Patch Clearing flags on attachment: 266073 Committed
r192750
: <
http://trac.webkit.org/changeset/192750
>
WebKit Commit Bot
Comment 8
2015-11-23 11:57:39 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug