<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>37727</bug_id>
          
          <creation_ts>2010-04-16 13:48:15 -0700</creation_ts>
          <short_desc>[Qt] Webkit fixes for RVCT4</short_desc>
          <delta_ts>2010-04-26 08:26:29 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>S60 Hardware</rep_platform>
          <op_sys>Other</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>35784</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Iain Campbell">iain.campbell</reporter>
          <assigned_to name="QtWebKit Unassigned">webkit-qt-unassigned</assigned_to>
          <cc>hausmann</cc>
    
    <cc>koshuin</cc>
    
    <cc>laszlo.gombos</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>213407</commentid>
    <comment_count>0</comment_count>
    <who name="Iain Campbell">iain.campbell</who>
    <bug_when>2010-04-16 13:48:15 -0700</bug_when>
    <thetext>RVCT 4 is far more strict with regards to symbol visiblity that RVCT2.2, and will hide symbols unless all references have default visibility in the object files. This patch corrects the symbol visibility which was set incorrectly for DLL-based platforms like Symbian (those that use __declspec(dllimport) and (dllexport)).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>213410</commentid>
    <comment_count>1</comment_count>
    <who name="Iain Campbell">iain.campbell</who>
    <bug_when>2010-04-16 13:50:43 -0700</bug_when>
    <thetext>diff --git a/src/3rdparty/webkit/WebCore/page/qt/EventHandlerQt.cpp b/src/3rdparty/webkit/WebCore/page/qt/EventHandlerQt.cpp
index d7982fa..2fcce5b 100644
--- a/src/3rdparty/webkit/WebCore/page/qt/EventHandlerQt.cpp
+++ b/src/3rdparty/webkit/WebCore/page/qt/EventHandlerQt.cpp
@@ -51,7 +51,7 @@
 #include &quot;NotImplemented.h&quot;

 QT_BEGIN_NAMESPACE
-extern Q_GUI_EXPORT bool qt_tab_all_widgets; // from qapplication.cpp
+Q_DECL_IMPORT extern bool qt_tab_all_widgets; // from qapplication.cpp
 QT_END_NAMESPACE

 namespace WebCore {</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>213430</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-04-16 14:31:45 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; diff --git a/src/3rdparty/webkit/WebCore/page/qt/EventHandlerQt.cpp
&gt; b/src/3rdparty/webkit/WebCore/page/qt/EventHandlerQt.cpp
&gt; index d7982fa..2fcce5b 100644
&gt; --- a/src/3rdparty/webkit/WebCore/page/qt/EventHandlerQt.cpp
&gt; +++ b/src/3rdparty/webkit/WebCore/page/qt/EventHandlerQt.cpp
&gt; @@ -51,7 +51,7 @@
&gt;  #include &quot;NotImplemented.h&quot;
&gt; 
&gt;  QT_BEGIN_NAMESPACE
&gt; -extern Q_GUI_EXPORT bool qt_tab_all_widgets; // from qapplication.cpp
&gt; +Q_DECL_IMPORT extern bool qt_tab_all_widgets; // from qapplication.cpp

So this patch does two things:

    1) It removes the extern keyword

and

    2) It replaces Q_GUI_EXPORT with Q_DECL_IMPORT

AFAIK Q_GUI_EXPORT should be defined to Q_DECL_IMPORT in qglobal.h _unless_ we&apos;re building QtGui itself, which is not the case here.

Can you elaborate how your fix works? :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>214519</commentid>
    <comment_count>3</comment_count>
    <who name="Janne Koskinen">koshuin</who>
    <bug_when>2010-04-20 00:50:30 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt;     1) It removes the extern keyword
&gt;     2) It replaces Q_GUI_EXPORT with Q_DECL_IMPORT

It doesn&apos;t remove the extern keyword, but swaps declspec and extern.
You are right that there is no need to replace Q_GUI_EXPORT with Q_DECL_IMPORT i.e.
Q_GUI_EXPORT extern bool qt_tab_all_widgets; // from qapplication.cpp
would be equally good fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>214640</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-04-20 07:14:23 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt;     1) It removes the extern keyword
&gt; &gt;     2) It replaces Q_GUI_EXPORT with Q_DECL_IMPORT
&gt; 
&gt; It doesn&apos;t remove the extern keyword, but swaps declspec and extern.
&gt; You are right that there is no need to replace Q_GUI_EXPORT with Q_DECL_IMPORT
&gt; i.e.
&gt; Q_GUI_EXPORT extern bool qt_tab_all_widgets; // from qapplication.cpp
&gt; would be equally good fix.

Ooops, I see, so the fix is to swap the two?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217109</commentid>
    <comment_count>5</comment_count>
      <attachid>54301</attachid>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-04-26 08:05:00 -0700</bug_when>
    <thetext>Created attachment 54301
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217112</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-04-26 08:12:11 -0700</bug_when>
    <thetext>Committed r58257: &lt;http://trac.webkit.org/changeset/58257&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217113</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-04-26 08:12:39 -0700</bug_when>
    <thetext>Cherry-picked into qtwebkit-4.6 with commit 4fb414b38f7c7c8439ce6a4323f1acb057a3ff20</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217115</commentid>
    <comment_count>8</comment_count>
    <who name="Laszlo Gombos">laszlo.gombos</who>
    <bug_when>2010-04-26 08:13:49 -0700</bug_when>
    <thetext>Two more instances of this - maybe we want to change those as well:

WebKit/qt/Api/qwebframe.cpp:extern Q_GUI_EXPORT int qt_defaultDpi();
WebCore/plugins/mac/PluginViewMac.cpp:extern Q_GUI_EXPORT OSWindowRef qt_mac_window_for(const QWidget* w);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>217118</commentid>
    <comment_count>9</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-04-26 08:25:39 -0700</bug_when>
    <thetext>Revision r58257 cherry-picked into qtwebkit-2.0 with commit b8a9d4b4dd69f952857333bcd5596989008560f3</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>54301</attachid>
            <date>2010-04-26 08:05:00 -0700</date>
            <delta_ts>2010-04-26 08:08:13 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-37727-20100426170458.patch</filename>
            <type>text/plain</type>
            <size>1008</size>
            <attacher name="Simon Hausmann">hausmann</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYkNvcmUvQ2hhbmdlTG9nIGIvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXgg
NDVjOGJiZS4uMjVhZDIwOCAxMDA2NDQKLS0tIGEvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvV2Vi
Q29yZS9DaGFuZ2VMb2cKQEAgLTEsMyArMSwxNCBAQAorMjAxMC0wNC0yNiAgU2ltb24gSGF1c21h
bm4gIDxzaW1vbi5oYXVzbWFubkBub2tpYS5jb20+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9C
T0RZIChPT1BTISkuCisKKyAgICAgICAgW1F0XSBGaXggY29tcGlsYXRpb24gd2l0aCBSVkNUIDQK
KyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTM3NzI3CisK
KyAgICAgICAgU3dhcCBleHRlcm4gYW5kIGRlY2xzcGVjIHRvIGZpeCB2aXNpYmlsaXR5IG9mIHN5
bWJvbCBpbXBvcnRlZCBmcm9tIFF0R3VpLgorCisgICAgICAgICogcGFnZS9xdC9FdmVudEhhbmRs
ZXJRdC5jcHA6CisKIDIwMTAtMDQtMjYgIE1hcmt1cyBHb2V0eiAgPE1hcmt1cy5Hb2V0ekBub2tp
YS5jb20+CiAKICAgICAgICAgUmV2aWV3ZWQgYnkgU2ltb24gSGF1c21hbm4uCmRpZmYgLS1naXQg
YS9XZWJDb3JlL3BhZ2UvcXQvRXZlbnRIYW5kbGVyUXQuY3BwIGIvV2ViQ29yZS9wYWdlL3F0L0V2
ZW50SGFuZGxlclF0LmNwcAppbmRleCBkNzk4MmZhLi41YjI0ZWFlIDEwMDY0NAotLS0gYS9XZWJD
b3JlL3BhZ2UvcXQvRXZlbnRIYW5kbGVyUXQuY3BwCisrKyBiL1dlYkNvcmUvcGFnZS9xdC9FdmVu
dEhhbmRsZXJRdC5jcHAKQEAgLTUxLDcgKzUxLDcgQEAKICNpbmNsdWRlICJOb3RJbXBsZW1lbnRl
ZC5oIgogCiBRVF9CRUdJTl9OQU1FU1BBQ0UKLWV4dGVybiBRX0dVSV9FWFBPUlQgYm9vbCBxdF90
YWJfYWxsX3dpZGdldHM7IC8vIGZyb20gcWFwcGxpY2F0aW9uLmNwcAorUV9HVUlfRVhQT1JUIGV4
dGVybiBib29sIHF0X3RhYl9hbGxfd2lkZ2V0czsgLy8gZnJvbSBxYXBwbGljYXRpb24uY3BwCiBR
VF9FTkRfTkFNRVNQQUNFCiAKIG5hbWVzcGFjZSBXZWJDb3JlIHsK
</data>
<flag name="review"
          id="38236"
          type_id="1"
          status="+"
          setter="kenneth"
    />
          </attachment>
      

    </bug>

</bugzilla>