Closed
Bug 1010393
Opened 11 years ago
Closed 11 years ago
Remove aProtoDoc parameter from nsXULPrototypeScript::Compile
Categories
(Core :: XUL, defect)
Tracking
()
RESOLVED
FIXED
mozilla32
People
(Reporter: smaug, Assigned: meibenny)
Details
(Whiteboard: [mentor=bholley,lang=c++])
Attachments
(1 file, 2 obsolete files)
|
6.38 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
It is just unnecessary these days.
Updated•11 years ago
|
Whiteboard: [mentor=bholley,lang=c++]
I would like to take a stab at this bug. It's my first time doing this... Where do I start?
Comment 2•11 years ago
|
||
(In reply to Benny Mei from comment #1)
> I would like to take a stab at this bug. It's my first time doing this...
> Where do I start?
Hi Benny! Welcome to Mozilla. :-)
The file to edit is in content/xul/content/src/nsXULElement.cpp. If you're looking for a basic guide to getting started, see https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide . Also check out #introduction on irc.mozilla.org.
Attachment #8429543 -
Flags: review?(bobbyholley)
Comment 4•11 years ago
|
||
Comment on attachment 8429543 [details] [diff] [review]
aProtoDoc parameter removed from nsXULPrototypeScript::Compile
Review of attachment 8429543 [details] [diff] [review]:
-----------------------------------------------------------------
This looks great! Please make the fixes below and upload a second patch. I'll then push it to try and flag for it to be checked in. :-)
::: content/xul/content/src/nsXULElement.cpp
@@ +2622,5 @@
> nsresult
> nsXULPrototypeScript::Compile(JS::SourceBufferHolder& aSrcBuf,
> nsIURI* aURI,
> uint32_t aLineNo,
> + nsIDocument* aDocument,
Nit - please remove the trailing whitespace here.
::: content/xul/document/src/XULDocument.cpp
@@ +3549,5 @@
> mOffThreadCompileStringBuf = nullptr;
> mOffThreadCompileStringLength = 0;
>
> rv = mCurrentScriptProto->Compile(srcBuf,
> + uri, 1, this,
and here. You can probably also just move all these arguments onto a single line.
Attachment #8429543 -
Flags: review?(bobbyholley) → review+
(In reply to Bobby Holley (:bholley) from comment #4)
> Comment on attachment 8429543 [details] [diff] [review]
> aProtoDoc parameter removed from nsXULPrototypeScript::Compile
>
> Review of attachment 8429543 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> This looks great! Please make the fixes below and upload a second patch.
> I'll then push it to try and flag for it to be checked in. :-)
>
> ::: content/xul/content/src/nsXULElement.cpp
> @@ +2622,5 @@
> > nsresult
> > nsXULPrototypeScript::Compile(JS::SourceBufferHolder& aSrcBuf,
> > nsIURI* aURI,
> > uint32_t aLineNo,
> > + nsIDocument* aDocument,
>
> Nit - please remove the trailing whitespace here.
>
> ::: content/xul/document/src/XULDocument.cpp
> @@ +3549,5 @@
> > mOffThreadCompileStringBuf = nullptr;
> > mOffThreadCompileStringLength = 0;
> >
> > rv = mCurrentScriptProto->Compile(srcBuf,
> > + uri, 1, this,
>
> and here. You can probably also just move all these arguments onto a single
> line.
I'm not quite sure what you mean by removing trailing whitespace in nsXULElement.cpp. Much of the other code looks similar to what I submitted in the first patch.
I attached another patch that moves aLineNo to the same line as aURI. Is that what you meant?
Attachment #8429543 -
Attachment is obsolete: true
Attachment #8429613 -
Flags: review?(bobbyholley)
Comment 7•11 years ago
|
||
Comment on attachment 8429613 [details] [diff] [review]
Resolved some whitespace issues.
Review of attachment 8429613 [details] [diff] [review]:
-----------------------------------------------------------------
If you click 'review' on your uploaded patch and look at nsXULElement.cpp, you'll see that the tool highlights an extra space after |nsIDocument* aDocument,|. Let me know if you run into problems.
Attachment #8429613 -
Flags: review?(bobbyholley)
Noted. Thank you for pointing out this issue. This new patch should remove that extra whitespace.
Attachment #8429613 -
Attachment is obsolete: true
Attachment #8429655 -
Flags: review?(bobbyholley)
Comment 9•11 years ago
|
||
Comment on attachment 8429655 [details] [diff] [review]
Resolved some whitespace issues.
Review of attachment 8429655 [details] [diff] [review]:
-----------------------------------------------------------------
Looks great! I'll push it to the try server and flag it for checkin.
Attachment #8429655 -
Flags: review?(bobbyholley) → review+
Comment 10•11 years ago
|
||
checkin-needed, pending the try push:
https://tbpl.mozilla.org/?tree=Try&rev=345d99d2bb09
Keywords: checkin-needed
| Assignee | ||
Comment 11•11 years ago
|
||
Assignee: nobody@mozilla.org -> meibenny@gmail.com
Comment 12•11 years ago
|
||
Assignee: nobody → meibenny
Keywords: checkin-needed
Comment 13•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla32
You need to log in
before you can comment on or make changes to this bug.
Description
•