Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mullvad Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Applications
Mullvad Browser
Commits
fee84b90
Commit
fee84b90
authored
13 years ago
by
Olli Pettay
Browse files
Options
Downloads
Patches
Plain Diff
Bug 725752 - BBP for XBL protos, f=mccr8,r=jst
parent
8acc9c25
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
content/xbl/src/nsXBLDocumentInfo.cpp
+27
-0
27 additions, 0 deletions
content/xbl/src/nsXBLDocumentInfo.cpp
content/xbl/src/nsXBLDocumentInfo.h
+1
-6
1 addition, 6 deletions
content/xbl/src/nsXBLDocumentInfo.h
with
28 additions
and
6 deletions
content/xbl/src/nsXBLDocumentInfo.cpp
+
27
−
0
View file @
fee84b90
...
...
@@ -487,6 +487,33 @@ NS_IMPL_CYCLE_COLLECTION_TRACE_BEGIN(nsXBLDocumentInfo)
}
NS_IMPL_CYCLE_COLLECTION_TRACE_END
static
void
UnmarkXBLJSObject
(
PRUint32
aLangID
,
void
*
aP
,
const
char
*
aName
,
void
*
aClosure
)
{
if
(
aLangID
==
nsIProgrammingLanguage
::
JAVASCRIPT
)
{
xpc_UnmarkGrayObject
(
static_cast
<
JSObject
*>
(
aP
));
}
}
static
bool
UnmarkProtos
(
nsHashKey
*
aKey
,
void
*
aData
,
void
*
aClosure
)
{
nsXBLPrototypeBinding
*
proto
=
static_cast
<
nsXBLPrototypeBinding
*>
(
aData
);
proto
->
Trace
(
UnmarkXBLJSObject
,
nsnull
);
return
kHashEnumerateNext
;
}
void
nsXBLDocumentInfo
::
MarkInCCGeneration
(
PRUint32
aGeneration
)
{
if
(
mDocument
)
{
mDocument
->
MarkUncollectableForCCGeneration
(
aGeneration
);
}
if
(
mBindingTable
)
{
mBindingTable
->
Enumerate
(
UnmarkProtos
,
nsnull
);
}
}
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION
(
nsXBLDocumentInfo
)
NS_INTERFACE_MAP_ENTRY
(
nsIScriptGlobalObjectOwner
)
NS_INTERFACE_MAP_ENTRY
(
nsISupportsWeakReference
)
...
...
This diff is collapsed.
Click to expand it.
content/xbl/src/nsXBLDocumentInfo.h
+
1
−
6
View file @
fee84b90
...
...
@@ -82,12 +82,7 @@ public:
// nsIScriptGlobalObjectOwner methods
virtual
nsIScriptGlobalObject
*
GetScriptGlobalObject
();
void
MarkInCCGeneration
(
PRUint32
aGeneration
)
{
if
(
mDocument
)
{
mDocument
->
MarkUncollectableForCCGeneration
(
aGeneration
);
}
}
void
MarkInCCGeneration
(
PRUint32
aGeneration
);
static
nsresult
ReadPrototypeBindings
(
nsIURI
*
aURI
,
nsXBLDocumentInfo
**
aDocInfo
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment