Closed
Bug 881946
Opened 12 years ago
Closed 12 years ago
update graphite2 library to release 1.2.3
Categories
(Core :: Graphics: Text, defect)
Core
Graphics: Text
Tracking
()
RESOLVED
FIXED
mozilla24
People
(Reporter: jfkthame, Assigned: jfkthame)
References
Details
Attachments
(1 file, 1 obsolete file)
6.35 KB,
patch
|
jtd
:
review+
|
Details | Diff | Splinter Review |
See upstream release announcement:
"Not much in the changelog but there is a key bug fix for good fonts with interesting cmap subtable lengths.
. fix byte swapping when testing cmap subtable lengths
. work around armel compilation problems with conditional operators
. fix pseudoglyph support for advance and bbox"
Attachment #761192 -
Flags: review?(jdaggett)
Comment 1•12 years ago
|
||
Does that calculation in Sparse.h make sense to you?
Assignee | ||
Comment 2•12 years ago
|
||
I discussed this with Martin, and confirmed the change being made here is correct - it's just removing a multiplication by sizeof(mapped_type) as that will be done internally by the grzeroalloc<mapped_type> function anyway. So the old code was doing an excessive (clownshoes) allocation.
There -is- actually a (pre-existing) logic error in the expression, where it uses sizeof(mapped_type)/2 it should really be using sizeof(mapped_type)-1, but as mapped_type is uint16, the result is the same and nothing untoward will follow. :)
They'll fix this upstream, although unless/until the "sparse" class is genericized to accept a template argument for mapped_type instead of hardcoding it as uint16, it's not important for the generated code - both subexpressions simply evaluate to "1" at compile time.
Assignee | ||
Comment 3•12 years ago
|
||
Martin checked in the cleanup for the Sparse.h calculation to the graphite repo, so I've updated the patch here to include that. (As already noted, it makes no difference to the actual code, as the constant expression still evaluates to the same thing.)
Attachment #762570 -
Flags: review?(jdaggett)
Assignee | ||
Updated•12 years ago
|
Attachment #761192 -
Attachment is obsolete: true
Attachment #761192 -
Flags: review?(jdaggett)
Comment 4•12 years ago
|
||
Comment on attachment 762570 [details] [diff] [review]
update graphite2 library to release 1.2.3
Good, thanks.
Attachment #762570 -
Flags: review?(jdaggett) → review+
Assignee | ||
Comment 5•12 years ago
|
||
Target Milestone: --- → mozilla24
Comment 6•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•