Closed Bug 548978 Opened 14 years ago Closed 14 years ago

[OS/2] build break in gfx/src/thebes

Categories

(Core :: Layout: Text and Fonts, defect)

x86
OS/2
defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: wuno, Assigned: wuno)

References

Details

Attachments

(1 file, 2 obsolete files)

User-Agent:       Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.9.3a2pre) Gecko/20100226 Minefield/3.7a2pre
Build Identifier: 

As reported in the newsgroup after checkin for bug 548608 the OS/2 build breaks in gfxOS2Fonts.cpp, later after a quick if 0ing out the problematic lines in gfxOS2Fonts.cpp it breaks in gfxOS2Platform.cpp.


Reproducible: Always
Blocks: 548608
Version: unspecified → Trunk
Until someone has a better idea, here's a quick build fix.
Comment on attachment 429253 [details] [diff] [review]
quick workaround results in a working browser

>     nsTArray<nsString> familyArray;
>     ForEachFont(FontCallback, &familyArray);
> 
>+

Try bit to add blank lines.

>     // To be able to easily search for glyphs in other fonts, append a few good
>     // replacement candidates to the list. The best ones are the Unicode fonts that
>     // are set up, and if the user was so clever to set up the User Defined fonts,
>     // then these are probable candidates, too.
>     nsString fontString;
>-    gfxPlatform::GetPlatform()->GetPrefFonts("x-unicode", fontString, PR_FALSE);
>-    ForEachFont(fontString, NS_LITERAL_CSTRING("x-unicode"), FontCallback, &familyArray);
>+    gfxPlatform::GetPlatform()->GetPrefFonts(gfxAtoms::x_unicode, fontString, PR_FALSE);
>+    ForEachFont(fontString, gfxAtoms::x_unicode, FontCallback, &familyArray);
>+#if 0
>     gfxPlatform::GetPlatform()->GetPrefFonts("x-user-def", fontString, PR_FALSE);
>     ForEachFont(fontString, NS_LITERAL_CSTRING("x-user-def"), FontCallback, &familyArray);
> 
>+#endif

I guess the rest of the code will stop working soon, but until then you can keep the x-user-def stuff working by adding another atom in gfx/thebes/src/gfxAtomList.h. As all.js is still full of x-user-def references, I guess some other platform still uses that, too.
Attached patch make x_user_def work (obsolete) — Splinter Review
patch as suggested by Peter in comment#2
Attachment #429253 - Attachment is obsolete: true
Blocks: 524107
No longer blocks: 548608
Assignee: nobody → wuno
Attachment #429363 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #430702 - Flags: review?(jfkthame)
Attachment #430702 - Flags: review?(jfkthame) → review+
Comment on attachment 430702 [details] [diff] [review]
patch updated for bitrot

Looks fine to me.
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/7011be907f43
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: