Bug 45466 - [WINCE] Replace codePage instead of TextEncoding
Summary: [WINCE] Replace codePage instead of TextEncoding
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other Other
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 45468
  Show dependency treegraph
 
Reported: 2010-09-09 10:04 PDT by Patrick R. Gansterer
Modified: 2010-09-14 18:23 PDT (History)
3 users (show)

See Also:


Attachments
Patch (5.45 KB, patch)
2010-09-09 10:29 PDT, Patrick R. Gansterer
aroben: review+
aroben: commit-queue-
Details | Formatted Diff | Diff
Patch (5.45 KB, patch)
2010-09-14 08:53 PDT, Patrick R. Gansterer
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick R. Gansterer 2010-09-09 10:04:49 PDT
see patch
Comment 1 Patrick R. Gansterer 2010-09-09 10:29:30 PDT
Created attachment 67052 [details]
Patch
Comment 2 WebKit Review Bot 2010-09-09 10:32:06 PDT
Attachment 67052 [details] did not pass style-queue:

Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1
WebCore/platform/text/wince/TextCodecWinCE.h:36:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 1 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Adam Roben (:aroben) 2010-09-14 08:42:57 PDT
Comment on attachment 67052 [details]
Patch

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

> WebCore/ChangeLog:8
> +        Use codePage as member variable to aviod repeated lookup.
Typo: aviod

> WebCore/platform/text/wince/TextCodecWinCE.cpp:136
> -    return new TextCodecWinCE(encoding);
> +    return new TextCodecWinCE(getCodePage(encoding.name()));
Another option would have been to put the call to getCodePage inside the TextCodecWinCE constructor. It isn't clear to me whether that approach would be better.
Comment 4 Patrick R. Gansterer 2010-09-14 08:53:12 PDT
Created attachment 67558 [details]
Patch

(In reply to comment #3)
> > WebCore/platform/text/wince/TextCodecWinCE.cpp:136
> > -    return new TextCodecWinCE(encoding);
> > +    return new TextCodecWinCE(getCodePage(encoding.name()));
> Another option would have been to put the call to getCodePage inside the TextCodecWinCE constructor. It isn't clear to me whether that approach would be better.
IMHO there is no difference.
Comment 5 Adam Roben (:aroben) 2010-09-14 09:18:59 PDT
Comment on attachment 67558 [details]
Patch

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

r=me
Comment 6 WebKit Commit Bot 2010-09-14 18:23:42 PDT
Comment on attachment 67558 [details]
Patch

Clearing flags on attachment: 67558

Committed r67523: <http://trac.webkit.org/changeset/67523>
Comment 7 WebKit Commit Bot 2010-09-14 18:23:47 PDT
All reviewed patches have been landed.  Closing bug.