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
a586fb7a
Commit
a586fb7a
authored
20 years ago
by
tor%cs.brown.edu
Browse files
Options
Downloads
Patches
Plain Diff
Bug 271174 - build problem with SUNWspro compilers. r=darin
parent
095f0fe7
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
layout/svg/renderer/src/gdiplus/nsSVGGDIPlusGlyphMetrics.cpp
+4
-4
4 additions, 4 deletions
layout/svg/renderer/src/gdiplus/nsSVGGDIPlusGlyphMetrics.cpp
layout/svg/renderer/src/libart/nsSVGLibartGlyphMetricsFT.cpp
+3
-3
3 additions, 3 deletions
layout/svg/renderer/src/libart/nsSVGLibartGlyphMetricsFT.cpp
with
7 additions
and
7 deletions
layout/svg/renderer/src/gdiplus/nsSVGGDIPlusGlyphMetrics.cpp
+
4
−
4
View file @
a586fb7a
...
...
@@ -149,7 +149,7 @@ private:
nsCOMPtr
<
nsISVGGlyphMetricsSource
>
mSource
;
public
:
static
nsDataHashtable
<
nsStringHashKey
,
const
ns
Dependent
String
*>
sFontAliases
;
static
nsDataHashtable
<
nsStringHashKey
,
const
nsString
*>
sFontAliases
;
};
/** @} */
...
...
@@ -157,7 +157,7 @@ public:
//----------------------------------------------------------------------
// implementation:
nsDataHashtable
<
nsStringHashKey
,
const
ns
Dependent
String
*>
nsDataHashtable
<
nsStringHashKey
,
const
nsString
*>
nsSVGGDIPlusGlyphMetrics
::
sFontAliases
;
nsSVGGDIPlusGlyphMetrics
::
nsSVGGDIPlusGlyphMetrics
(
nsISVGGlyphMetricsSource
*
src
)
...
...
@@ -505,14 +505,14 @@ static PRBool FindFontFamily(const nsString& aFamily, PRBool aGeneric, void *aDa
delete
family
;
//try alias if there is one:
const
ns
Dependent
String
*
alias
=
nsnull
;
const
nsString
*
alias
=
nsnull
;
nsAutoString
canonical_name
(
aFamily
);
ToLowerCase
(
canonical_name
);
nsSVGGDIPlusGlyphMetrics
::
sFontAliases
.
Get
(
canonical_name
,
&
alias
);
if
(
alias
)
{
// XXX this might cause a stack-overflow if there are cyclic
// aliases in sFontAliases
retval
=
FindFontFamily
(
nsString
(
*
alias
)
,
PR_FALSE
,
aData
);
retval
=
FindFontFamily
(
*
alias
,
PR_FALSE
,
aData
);
}
}
...
...
This diff is collapsed.
Click to expand it.
layout/svg/renderer/src/libart/nsSVGLibartGlyphMetricsFT.cpp
+
3
−
3
View file @
a586fb7a
...
...
@@ -112,7 +112,7 @@ private:
nsCOMPtr
<
nsISVGGlyphMetricsSource
>
mSource
;
public
:
static
nsDataHashtable
<
nsStringHashKey
,
const
ns
Dependent
String
*>
sFontAliases
;
static
nsDataHashtable
<
nsStringHashKey
,
const
nsString
*>
sFontAliases
;
};
/** @} */
...
...
@@ -120,7 +120,7 @@ public:
//----------------------------------------------------------------------
// nsSVGLibartGlyphMetricsFT implementation:
nsDataHashtable
<
nsStringHashKey
,
const
ns
Dependent
String
*>
nsDataHashtable
<
nsStringHashKey
,
const
nsString
*>
nsSVGLibartGlyphMetricsFT
::
sFontAliases
;
...
...
@@ -406,7 +406,7 @@ FindFont(const nsString& aFamily, PRBool aGeneric, void *aData)
}
else
{
// try alias if there is one:
const
ns
Dependent
String
*
alias
=
nsnull
;
const
nsString
*
alias
=
nsnull
;
nsSVGLibartGlyphMetricsFT
::
sFontAliases
.
Get
(
NS_ConvertUTF8toUCS2
(
family_name
),
&
alias
);
if
(
alias
)
{
...
...
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