Bug 123485 - WebKit/win/WebKitGraphics.h:void WebDrawText(WebTextRenderInfo*); is never called
Summary: WebKit/win/WebKitGraphics.h:void WebDrawText(WebTextRenderInfo*); is never ca...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-10-29 17:29 PDT by Myles C. Maxfield
Modified: 2013-10-30 13:52 PDT (History)
3 users (show)

See Also:


Attachments
Patch (5.56 KB, patch)
2013-10-30 11:53 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (6.16 KB, patch)
2013-10-30 11:57 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (6.88 KB, patch)
2013-10-30 12:06 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (6.88 KB, patch)
2013-10-30 12:07 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (6.93 KB, patch)
2013-10-30 12:37 PDT, Myles C. Maxfield
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 2013-10-29 17:29:50 PDT
We should remove dead code
Comment 1 Radar WebKit Bug Importer 2013-10-29 17:30:37 PDT
<rdar://problem/15347544>
Comment 2 Brent Fulgham 2013-10-29 17:31:12 PDT
It doesn't look like we use WebDrawText anymore, and the one client program that had been using it no longer needs it.

This bug removes the unused code as well as the exported symbol.
Comment 3 Myles C. Maxfield 2013-10-30 11:53:32 PDT
Created attachment 215544 [details]
Patch
Comment 4 Brent Fulgham 2013-10-30 11:55:51 PDT
Comment on attachment 215544 [details]
Patch

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

Looks good, but you also need to tell Visual Studio to NOT look for the removed symbol when building the DLL.

> Source/WebKit/win/WebKitGraphics.h:-66
> -void WebDrawText(WebTextRenderInfo*);

This also needs to be removed from WebKitExports.def.in
Comment 5 Myles C. Maxfield 2013-10-30 11:57:40 PDT
Created attachment 215545 [details]
Patch
Comment 6 Brent Fulgham 2013-10-30 12:02:58 PDT
Comment on attachment 215545 [details]
Patch

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

Sorry -- I missed one thing, and we need a ChangeLog on the "WebKitExports.def.in" change.

> Source/WebKit/win/ChangeLog:8
> +        * WebKitGraphics.cpp:

You should say something like "Removed unused WebDrawText implementation."

> Source/WebKit/WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:-14
> -        WebDrawText

Unfortunately, this file is in the scope of "Source/WebKit/ChangeLog" (not just the "Source/WebKit/win/ChangeLog"), so yet ANOTHER ChangeLog is needed.  "prepare-ChangeLog" should get it set up properly for you.
Comment 7 Myles C. Maxfield 2013-10-30 12:06:19 PDT
Created attachment 215546 [details]
Patch
Comment 8 Myles C. Maxfield 2013-10-30 12:07:50 PDT
Created attachment 215547 [details]
Patch
Comment 9 Brent Fulgham 2013-10-30 12:11:14 PDT
Comment on attachment 215547 [details]
Patch

r=me.
Comment 10 WebKit Commit Bot 2013-10-30 12:13:40 PDT
Comment on attachment 215547 [details]
Patch

Rejecting attachment 215547 [details] from commit-queue.

Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.appspot.com', '--bot-id=webkit-cq-02', 'validate-changelog', '--check-oops', '--non-interactive', 215547, '--port=mac']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit

ChangeLog entry in Source/WebCore/ChangeLog contains OOPS!.

Full output: http://webkit-queues.appspot.com/results/17038284
Comment 11 Myles C. Maxfield 2013-10-30 12:37:09 PDT
Created attachment 215550 [details]
Patch
Comment 12 Brent Fulgham 2013-10-30 12:46:00 PDT
Comment on attachment 215550 [details]
Patch

Try again! r=me
Comment 13 WebKit Commit Bot 2013-10-30 13:30:42 PDT
Comment on attachment 215550 [details]
Patch

Clearing flags on attachment: 215550

Committed r158309: <http://trac.webkit.org/changeset/158309>
Comment 14 WebKit Commit Bot 2013-10-30 13:30:45 PDT
All reviewed patches have been landed.  Closing bug.