WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
97360
[Chromium][Mac] Remove loadFont from PlatformSupport
https://bugs.webkit.org/show_bug.cgi?id=97360
Summary
[Chromium][Mac] Remove loadFont from PlatformSupport
Mark Pilgrim (Google)
Reported
2012-09-21 13:53:57 PDT
[Chromium][Mac] Remove loadFont from PlatformSupport
Attachments
Patch
(4.55 KB, patch)
2012-09-21 13:56 PDT
,
Mark Pilgrim (Google)
no flags
Details
Formatted Diff
Diff
Patch
(4.94 KB, patch)
2012-09-21 17:34 PDT
,
Mark Pilgrim (Google)
no flags
Details
Formatted Diff
Diff
Patch
(4.81 KB, patch)
2012-09-21 20:24 PDT
,
Mark Pilgrim (Google)
no flags
Details
Formatted Diff
Diff
Patch
(4.98 KB, patch)
2012-09-24 16:13 PDT
,
Mark Pilgrim (Google)
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Mark Pilgrim (Google)
Comment 1
2012-09-21 13:56:19 PDT
Created
attachment 165184
[details]
Patch
WebKit Review Bot
Comment 2
2012-09-21 13:59:00 PDT
Attachment 165184
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebKit/chromium/ChangeLog:8: Line contains tab character. [whitespace/tab] [5] Source/WebCore/ChangeLog:8: Line contains tab character. [whitespace/tab] [5] Total errors found: 2 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
Mark Pilgrim (Google)
Comment 3
2012-09-21 14:03:43 PDT
I have many words for you, WebKit Style Guidelines. None are appropriate in mixed company.
Eric Seidel (no email)
Comment 4
2012-09-21 14:06:20 PDT
Are you using webkit-patch upload? It would warn you about these before uploading the patch? Or you can run check-webkit-style manually
Adam Barth
Comment 5
2012-09-21 16:46:14 PDT
Maybe it checks style before you author the change log?
Adam Barth
Comment 6
2012-09-21 16:48:19 PDT
Comment on
attachment 165184
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=165184&action=review
> Source/WebCore/platform/chromium/PlatformSupport.h:94 > #if OS(DARWIN) > - static bool loadFont(NSFont* srcFont, CGFontRef*, uint32_t* fontID); > #elif OS(UNIX)
Should we clean up this ifdef?
> Source/WebCore/platform/graphics/chromium/CrossProcessFontLoading.mm:126 > + WebKit::WebSandboxSupport* ss = WebKit::Platform::current()->sandboxSupport();
ss -> sandboxSupport (please use complete words in variable names)
> Source/WebCore/platform/graphics/chromium/CrossProcessFontLoading.mm:128 > + if (!ss) > + return 0;
Should we add an ASSERT_NOT_REACHED here like the old code had?
Mark Pilgrim (Google)
Comment 7
2012-09-21 17:34:59 PDT
Created
attachment 165233
[details]
Patch
Mark Pilgrim (Google)
Comment 8
2012-09-21 17:35:37 PDT
Comment on
attachment 165233
[details]
Patch Style nits addressed. abarth's suggestions implemented.
WebKit Review Bot
Comment 9
2012-09-21 18:27:14 PDT
Comment on
attachment 165233
[details]
Patch Rejecting
attachment 165233
[details]
from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: rejects to file Source/WebCore/platform/chromium/PlatformSupport.h.rej patching file Source/WebCore/platform/graphics/chromium/CrossProcessFontLoading.mm patching file Source/WebKit/chromium/ChangeLog Hunk #1 succeeded at 1 with fuzz 3. patching file Source/WebKit/chromium/src/PlatformSupport.cpp Hunk #1 succeeded at 218 with fuzz 2. Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--force', u'--reviewer', u'Adam Barth']" exit_code: 1 cwd: /mnt/git/webkit-commit-queue Full output:
http://queues.webkit.org/results/13950846
Mark Pilgrim (Google)
Comment 10
2012-09-21 20:24:41 PDT
Created
attachment 165242
[details]
Patch
Mark Pilgrim (Google)
Comment 11
2012-09-21 20:25:00 PDT
Comment on
attachment 165242
[details]
Patch Repatched to ToT.
Adam Barth
Comment 12
2012-09-24 10:44:46 PDT
Comment on
attachment 165242
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=165242&action=review
> Source/WebCore/platform/graphics/chromium/CrossProcessFontLoading.mm:130 > + // This function should only be called in response to an error loading a > + // font due to being blocked by the sandbox. > + // This by definition shouldn't happen if there is no sandbox support.
Looks like these should be indented one more space, right?
Adam Barth
Comment 13
2012-09-24 10:45:15 PDT
Comment on
attachment 165242
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=165242&action=review
> Source/WebKit/chromium/src/PlatformSupport.cpp:220 > #if OS(DARWIN)
This ifdef doesn't seem to be needed anymore since none of the cases do anything. ;)
Mark Pilgrim (Google)
Comment 14
2012-09-24 16:13:07 PDT
Created
attachment 165461
[details]
Patch
Mark Pilgrim (Google)
Comment 15
2012-09-24 16:13:26 PDT
Comment on
attachment 165461
[details]
Patch Nits addressed.
WebKit Review Bot
Comment 16
2012-09-24 16:57:07 PDT
Comment on
attachment 165461
[details]
Patch Clearing flags on attachment: 165461 Committed
r129429
: <
http://trac.webkit.org/changeset/129429
>
WebKit Review Bot
Comment 17
2012-09-24 16:57:11 PDT
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