[Webkit-unassigned] [Bug 28015] [Chromium] @font-face is not supported on Linux
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 6 00:57:35 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=28015
David Levin <levin at chromium.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #34203|review? |review-
Flag| |
--- Comment #4 from David Levin <levin at chromium.org> 2009-08-06 00:57:34 PDT ---
(From update of attachment 34203)
These are only style comments but enough adjustments to r- for now.
Would you ask someone on the linux team (maybe agl@) to code review this for
substance (and put their comments into this bug)?
Then please wait to put your patch up for r? until you get their feedback and
address it.
And together with their review, I'll feel comfortable with this.
> Index: WebCore/platform/graphics/chromium/FontCustomPlatformData.cpp
> + return FontPlatformData(m_fontReference,
> + size,
> + bold && !m_fontReference->isBold(),
> + italic && !m_fontReference->isItalic());
There is no line length restriction in WebKit so feel free to unwrap this but
only if you think it will read better.
> #else
> notImplemented();
> return FontPlatformData();
> @@ -186,6 +200,51 @@ static String createUniqueFontName()
> }
> #endif
>
> +#if PLATFORM(LINUX)
> +class RemoteFontStream : public SkStream {
> +public:
> + explicit RemoteFontStream(RefPtr<SharedBuffer> buffer)
Use PassRefPtr instead of RefPtr for parameters.
> + virtual bool rewind()
> + {
> + offset_ = 0;
> + return true;
indent by 4 spaces. (I think check-webkit-style would catch this.)
> +private:
> + RefPtr<SharedBuffer> buffer_;
> + size_t offset_;
Use m_ for member variables. Not variable_.
> +#elif PLATFORM(LINUX)
> + RemoteFontStream stream(buffer);
> + SkTypeface* tf = SkTypeface::CreateFromStream(&stream);
Use full words for variable names (not "tf").
> Index: WebCore/platform/graphics/chromium/FontCustomPlatformData.h
> #define FontCustomPlatformData_h
>
> #include <wtf/Noncopyable.h>
> +#include "FontRenderingMode.h"
This include is out of place (check-webkit-style should catch this.)
> +#elif PLATFORM(LINUX)
> + explicit FontCustomPlatformData(SkTypeface* tf)
> + : m_fontReference(tf)
Use full words for variable names (not "tf").
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list