Bug 110953 - [chromium] Introduce WebHyphenator class to consolidate hyphenation related method on WebKit::Platform
Summary: [chromium] Introduce WebHyphenator class to consolidate hyphenation related m...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: jochen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-27 00:31 PST by jochen
Modified: 2013-02-27 13:22 PST (History)
6 users (show)

See Also:


Attachments
Patch (8.89 KB, patch)
2013-02-27 00:33 PST, jochen
no flags Details | Formatted Diff | Diff
Patch (9.19 KB, patch)
2013-02-27 03:10 PST, jochen
no flags Details | Formatted Diff | Diff
Patch (5.40 KB, patch)
2013-02-27 11:48 PST, jochen
no flags Details | Formatted Diff | Diff
Patch (5.26 KB, patch)
2013-02-27 12:52 PST, jochen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jochen 2013-02-27 00:31:04 PST
[chromium] Introduce WebHyphenator class to consolidate hyphenation related method on WebKit::Platform
Comment 1 jochen 2013-02-27 00:33:37 PST
Created attachment 190457 [details]
Patch
Comment 2 WebKit Review Bot 2013-02-27 00:38:17 PST
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Comment 3 jochen 2013-02-27 03:10:02 PST
Created attachment 190482 [details]
Patch
Comment 4 jochen 2013-02-27 03:10:24 PST
chromium side here: https://codereview.chromium.org/12335128/
Comment 5 Adam Barth 2013-02-27 09:28:13 PST
Comment on attachment 190482 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=190482&action=review

> Source/Platform/chromium/public/Platform.h:84
> +class WEBKIT_EXPORT Platform {

It doesn't make sense to export Platform.  Platform is something we "import" from the embedder...

> Source/WebCore/platform/text/chromium/Hyphenation.cpp:36
> -    return WebKit::Platform::current()->canHyphenate(localeIdentifier);
> +    return WebKit::Platform::current()->hyphenator()->canHyphenate(localeIdentifier);

If you wait until the embedder supplies a WebHyphenator, then you can make this change much cleaner.  I realize that involves landing an extra patch on the Chromium side, but that seems better than going through this intermediate state.
Comment 6 jochen 2013-02-27 11:48:42 PST
Created attachment 190567 [details]
Patch
Comment 7 jochen 2013-02-27 11:59:39 PST
I guess that should have occurred to me the moment I had to export that Platform.

Here's an updated patch (chromium side is also updated)
Comment 8 jochen 2013-02-27 12:52:52 PST
Created attachment 190579 [details]
Patch
Comment 9 WebKit Review Bot 2013-02-27 13:22:32 PST
Comment on attachment 190579 [details]
Patch

Clearing flags on attachment: 190579

Committed r144231: <http://trac.webkit.org/changeset/144231>
Comment 10 WebKit Review Bot 2013-02-27 13:22:36 PST
All reviewed patches have been landed.  Closing bug.