WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
79216
[BlackBerry] Upstream helper classes for skia
https://bugs.webkit.org/show_bug.cgi?id=79216
Summary
[BlackBerry] Upstream helper classes for skia
Robin Cao
Reported
2012-02-22 02:43:19 PST
Add helper classes in platform/graphics/blackberry/skia ImageBufferData.h PlatformSupport.cpp PlatformSupport.h
Attachments
patch
(14.01 KB, patch)
2012-02-22 02:49 PST
,
Robin Cao
no flags
Details
Formatted Diff
Diff
Updated patch for landing
(13.97 KB, patch)
2012-02-23 23:13 PST
,
Robin Cao
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Robin Cao
Comment 1
2012-02-22 02:49:55 PST
Created
attachment 128166
[details]
patch
Antonio Gomes
Comment 2
2012-02-23 19:24:32 PST
Comment on
attachment 128166
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=128166&action=review
> Source/WebCore/platform/graphics/blackberry/skia/PlatformSupport.cpp:100 > + FcBool b; > + int i;
b and i does not make it easy to understand their use.
> Source/WebCore/platform/graphics/blackberry/skia/PlatformSupport.cpp:114 > +#if 0 > + // FIXME: Fontconfig tells us to use aggressive hinting, but FreeType breaks with our Adobe fonts > + if (FcPatternGetInteger(match, FC_HINT_STYLE, 0, &i) == FcResultMatch) > + out->hintStyle = i; > +#endif
up to drop this comment?
> Source/WebCore/platform/graphics/blackberry/skia/PlatformSupport.cpp:147 > + if (U16_IS_SURROGATE(characters[i]) > + && U16_IS_SURROGATE_LEAD(characters[i]) > + && i != numCharacters - 1 > + && U16_IS_TRAIL(characters[i + 1])) { > + FcCharSetAddChar(cset, U16_GET_SUPPLEMENTARY(characters[i], characters[i+1])); > + i++; > + } else > + FcCharSetAddChar(cset, characters[i]);
wrong code style (indentation)
> Source/WebCore/platform/graphics/blackberry/skia/PlatformSupport.cpp:198 > + } > + int weight;
add blank line between these two
> Source/WebCore/platform/graphics/blackberry/skia/PlatformSupport.cpp:203 > + family->isBold = false; > + int slant;
ditto
> Source/WebCore/platform/graphics/blackberry/skia/PlatformSupport.cpp:208 > + family->isItalic = false; > + FcFontSetDestroy(fontSet);
ditto
> Source/WebCore/platform/graphics/blackberry/skia/PlatformSupport.h:43 > +// This is a minimal version of the Chromium PlatformSupport/WebFontInfo classes used for font support > + > +class PlatformSupport {
drop blank line, add "." at the end
Robin Cao
Comment 3
2012-02-23 22:50:12 PST
Thanks for the review. Will address your comments before landing.
Robin Cao
Comment 4
2012-02-23 23:13:24 PST
Created
attachment 128660
[details]
Updated patch for landing
Leo Yang
Comment 5
2012-02-23 23:23:24 PST
Comment on
attachment 128660
[details]
Updated patch for landing Sending to cq...
WebKit Review Bot
Comment 6
2012-02-24 05:03:29 PST
Comment on
attachment 128660
[details]
Updated patch for landing Clearing flags on attachment: 128660 Committed
r108775
: <
http://trac.webkit.org/changeset/108775
>
WebKit Review Bot
Comment 7
2012-02-24 05:03:34 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug