RESOLVED FIXED Bug 95669
[EFL] Use WebKitVersion.h to get version information
https://bugs.webkit.org/show_bug.cgi?id=95669
Summary [EFL] Use WebKitVersion.h to get version information
Jinwoo Song
Reported 2012-09-03 00:01:15 PDT
The WEBKIT_USER_AGENT_MAJOR_VERSION and WEBKIT_USER_AGENT_MINOR_VERSION is defined as constant in the OptionsEfl.cmake. But we do not need to define here but can use the WebKitVersion.h instead. WebKitVersion.h is generated with the version information in the Source/WebCore/Configurations/Version.xcconfig.
Attachments
patch (5.44 KB, patch)
2012-09-03 01:01 PDT, Jinwoo Song
no flags
patch (6.07 KB, patch)
2012-09-03 01:34 PDT, Jinwoo Song
no flags
patch (6.70 KB, patch)
2012-09-03 03:02 PDT, Jinwoo Song
no flags
Jinwoo Song
Comment 1 2012-09-03 01:01:32 PDT
Gyuyoung Kim
Comment 2 2012-09-03 01:16:21 PDT
Comment on attachment 161874 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=161874&action=review > Source/WebKit/efl/ewk/ewk_settings.cpp:320 > + WTF::String uaVersion = makeString(String::number(WEBKIT_MAJOR_VERSION), '.', String::number(WEBKIT_MINOR_VERSION), '+'); Use String operator instead of makeString() ? str = text + 'a' + foo + bar; This is more efficient way to concatenate strings. See also : http://trac.webkit.org/wiki/EfficientStrings > Source/WebKit2/UIProcess/efl/WebPageProxyEfl.cpp:55 > + version = makeString(String::number(WEBKIT_MAJOR_VERSION), '.', ditto.
Jinwoo Song
Comment 3 2012-09-03 01:34:54 PDT
Jinwoo Song
Comment 4 2012-09-03 01:37:47 PDT
(In reply to comment #2) > (From update of attachment 161874 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=161874&action=review > > > Source/WebKit/efl/ewk/ewk_settings.cpp:320 > > + WTF::String uaVersion = makeString(String::number(WEBKIT_MAJOR_VERSION), '.', String::number(WEBKIT_MINOR_VERSION), '+'); > > Use String operator instead of makeString() ? > > str = text + 'a' + foo + bar; > > This is more efficient way to concatenate strings. > > See also : http://trac.webkit.org/wiki/EfficientStrings Done. > > > Source/WebKit2/UIProcess/efl/WebPageProxyEfl.cpp:55 > > + version = makeString(String::number(WEBKIT_MAJOR_VERSION), '.', > > ditto. Done.
Gyuyoung Kim
Comment 5 2012-09-03 01:52:00 PDT
Comment on attachment 161878 [details] patch You are missing to modify cmakeconfig.h.cmake. http://trac.webkit.org/browser/trunk/Source/cmakeconfig.h.cmake#L4
Jinwoo Song
Comment 6 2012-09-03 03:02:15 PDT
Jinwoo Song
Comment 7 2012-09-03 03:37:20 PDT
(In reply to comment #5) > (From update of attachment 161878 [details]) > You are missing to modify cmakeconfig.h.cmake. > > http://trac.webkit.org/browser/trunk/Source/cmakeconfig.h.cmake#L4 I removed the WEBKIT_USER_AGENT_* definitions in the cmakeconfig.h.cmake, too.
Gyuyoung Kim
Comment 8 2012-09-03 03:37:50 PDT
Comment on attachment 161888 [details] patch LGTM
WebKit Review Bot
Comment 9 2012-09-03 07:00:53 PDT
Comment on attachment 161888 [details] patch Clearing flags on attachment: 161888 Committed r127419: <http://trac.webkit.org/changeset/127419>
WebKit Review Bot
Comment 10 2012-09-03 07:00:58 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.