WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
44069
[GTK] Clean up WebCore/platform/graphics/gtk/ImageGtk.cpp
https://bugs.webkit.org/show_bug.cgi?id=44069
Summary
[GTK] Clean up WebCore/platform/graphics/gtk/ImageGtk.cpp
Martin Robinson
Reported
2010-08-16 13:07:53 PDT
There are a good number of style violations in ImageGtk.cpp as well as some general badness.
Attachments
Cleanup patch
(5.17 KB, patch)
2010-08-16 13:42 PDT
,
Martin Robinson
no flags
Details
Formatted Diff
Diff
Patch with build fixes
(5.45 KB, patch)
2010-08-16 16:08 PDT
,
Martin Robinson
gustavo
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Martin Robinson
Comment 1
2010-08-16 13:42:04 PDT
Created
attachment 64516
[details]
Cleanup patch
WebKit Review Bot
Comment 2
2010-08-16 15:14:54 PDT
Attachment 64516
[details]
did not build on gtk: Build output:
http://queues.webkit.org/results/3756311
Martin Robinson
Comment 3
2010-08-16 16:08:15 PDT
Created
attachment 64530
[details]
Patch with build fixes
Gustavo Noronha (kov)
Comment 4
2010-08-16 16:31:56 PDT
Comment on
attachment 64530
[details]
Patch with build fixes WebCore/platform/graphics/gtk/ImageGtk.cpp:58 + if (!GetModuleFileName(hmodule, (CHAR *) dataDirectory, sizeof(retval) - 10)) Should this (CHAR *) be turned into a static_cast<CHAR*>(dataDirectory) for greater style guide followage? WebCore/platform/graphics/gtk/ImageGtk.cpp:141 + GOwnPtr<gchar> glibFileName(g_build_filename(getWebKitDataDirectory(), "webkit-1.0", "images", imageName.get(), NULL)); Data directories should follow the "soname" of the library. We have done it in InspectoClientGtk:
http://trac.webkit.org/browser/trunk/WebKit/gtk/WebCoreSupport/InspectorClientGtk.cpp#L90
Can you then also please change WebCore/GNUmakefile.am to add 'gtk' after 'webkit' here? You'll notice the inspector one is already correct, but we missed images =(:
http://trac.webkit.org/browser/trunk/WebCore/GNUmakefile.am#L4575
As we discussed on IRC, it would be great to move the getWebKitDataDirectory function to, say, FileSystemGtk, and then use it in InspectorClient as well, so it starts actually working on Windows heh. Let's follow up on that later!
Martin Robinson
Comment 5
2010-08-17 12:00:35 PDT
Committed
r65529
: <
http://trac.webkit.org/changeset/65529
>
WebKit Review Bot
Comment 6
2010-08-17 12:46:01 PDT
http://trac.webkit.org/changeset/65529
might have broken GTK Linux 64-bit Debug The following changes are on the blame list:
http://trac.webkit.org/changeset/65529
http://trac.webkit.org/changeset/65530
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