<?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>24539</bug_id>
          
          <creation_ts>2009-03-11 19:32:17 -0700</creation_ts>
          <short_desc>Unresolved CSSMutableStyleDeclaration</short_desc>
          <delta_ts>2009-07-13 11:35:52 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>S60 Hardware</rep_platform>
          <op_sys>S60 3rd edition</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>27065</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Norbert Leser">norbert.leser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>darin</cc>
    
    <cc>hausmann</cc>
    
    <cc>laszlo.gombos</cc>
    
    <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>113299</commentid>
    <comment_count>0</comment_count>
    <who name="Norbert Leser">norbert.leser</who>
    <bug_when>2009-03-11 19:32:17 -0700</bug_when>
    <thetext>Symbian linker cannot resolve CSSMutableStyleDeclaration class without explicit include of CSSMutableStyleDeclaration.h

Proposed solution is to explicitly include the header file. See attached patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113300</commentid>
    <comment_count>1</comment_count>
      <attachid>28515</attachid>
    <who name="Norbert Leser">norbert.leser</who>
    <bug_when>2009-03-11 19:33:04 -0700</bug_when>
    <thetext>Created attachment 28515
Proposed fix for bug 24539</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113306</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2009-03-11 19:39:03 -0700</bug_when>
    <thetext>Why is the forward-declaration of CSSMutableStyleDeclaration not sufficient? </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115355</commentid>
    <comment_count>3</comment_count>
      <attachid>28515</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-03-26 11:05:39 -0700</bug_when>
    <thetext>Comment on attachment 28515
Proposed fix for bug 24539

This looks fine.  Because CSSMutableStyleDeclaration is used in a RefPtr&lt;CSSMutableStyleDeclaration&gt; other ports must require this header too.  They&apos;re likely only not failing due to RemoveCSSPropertyCommand.halways being included after CSSMutableStyleDeclaration in the same file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115378</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2009-03-26 12:43:00 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; This looks fine.  Because CSSMutableStyleDeclaration is used in a
&gt; RefPtr&lt;CSSMutableStyleDeclaration&gt; other ports must require this header too. 
&gt; They&apos;re likely only not failing due to RemoveCSSPropertyCommand.halways being
&gt; included after CSSMutableStyleDeclaration in the same file.

Eric, I think that&apos;s wrong. Normally a forward declaration is sufficient even if the file does define a RefPtr, as long as the header doesn&apos;t contain any code that actually needs to manipulate the RefPtr. Are you sure this is a good change?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116954</commentid>
    <comment_count>5</comment_count>
      <attachid>28515</attachid>
    <who name="David Levin">levin</who>
    <bug_when>2009-04-08 16:33:54 -0700</bug_when>
    <thetext>Comment on attachment 28515
Proposed fix for bug 24539

I&apos;m clearing the r+ flag to remove this from the commit queue due to Drain&apos;s comment.

It is waiting for a comment from Eric before it can be committed and he could add the r+ when he adds a comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117000</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-04-09 01:46:15 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Eric, I think that&apos;s wrong. Normally a forward declaration is sufficient even
&gt; if the file does define a RefPtr, as long as the header doesn&apos;t contain any
&gt; code that actually needs to manipulate the RefPtr. Are you sure this is a good
&gt; change?

Again, this is one of those c++ questions where I&apos;m gonna trust your (lengthy) c++ experience over my own... but in this case, I think the instantiation of PassRefPtr&lt;CSSMutableStyleDeclaration&gt; via:

6	    static PassRefPtr&lt;RemoveCSSPropertyCommand&gt; create(Document* document, PassRefPtr&lt;CSSMutableStyleDeclaration&gt; style, CSSPropertyID property)
37	    {
38	        return adoptRef(new RemoveCSSPropertyCommand(document, style, property));
39	    }

is going to require actually including CSSMutableStyleDeclaration.h so that PassRefPtr can see that CSSMutableStyleDeclaration actually has a ref() method, no?

I&apos;m still confused by why the Symbian build would fail here and no other port would, but I don&apos;t see including this header as harmful, if PassRefPtr&lt;CSSMutableStyleDeclaration&gt; instantiation does really require the full class definition.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117037</commentid>
    <comment_count>7</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2009-04-09 08:38:36 -0700</bug_when>
    <thetext>(In reply to comment #6)

Yes, the create function does require the CSSMutableStyleDeclaration class definition. So either that function needs to be moved to the .cpp file and made non-inline, or the include needs to be added.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117533</commentid>
    <comment_count>8</comment_count>
    <who name="Norbert Leser">norbert.leser</who>
    <bug_when>2009-04-14 16:01:49 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; 
&gt; Yes, the create function does require the CSSMutableStyleDeclaration class
&gt; definition. So either that function needs to be moved to the .cpp file and made
&gt; non-inline, or the include needs to be added.
&gt; 

I will leave it up to you guys to decide. Either of the proposed solutions seems to work in our (symbian linker) case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120744</commentid>
    <comment_count>9</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2009-05-11 16:54:50 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/43523</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122132</commentid>
    <comment_count>10</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-05-20 05:37:49 -0700</bug_when>
    <thetext>I missed a couple files when landing:

Committing to http://svn.webkit.org/repository/webkit/trunk ...
	A	LayoutTests/platform/mac/fast/forms/search-styled-expected.checksum
	A	LayoutTests/platform/mac/fast/forms/search-styled-expected.png
Committed r43904

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122133</commentid>
    <comment_count>11</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2009-05-20 05:38:41 -0700</bug_when>
    <thetext>That comment was meant for https://bugs.webkit.org/show_bug.cgi?id=25742.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>28515</attachid>
            <date>2009-03-11 19:33:04 -0700</date>
            <delta_ts>2009-05-11 16:54:32 -0700</delta_ts>
            <desc>Proposed fix for bug 24539</desc>
            <filename>patch_fix11.txt</filename>
            <type>text/plain</type>
            <size>989</size>
            <attacher name="Norbert Leser">norbert.leser</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA0MTYwNCkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTQgQEAKKzIwMDktMDMtMTEgIE5va2lhIFVzZXIgIDxub3JiZXJ0Lmxlc2VyQG5v
a2lhLmNvbT4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAg
ICBXQVJOSU5HOiBOTyBURVNUIENBU0VTIEFEREVEIE9SIENIQU5HRUQKKworICAgICAgICBTeW1i
aWFuIGxpbmtlciBjYW5ub3QgcmVzb2x2ZSBDU1NNdXRhYmxlU3R5bGVEZWNsYXJhdGlvbiBjbGFz
cworICAgICAgICB3aXRob3V0IGV4cGxpY2l0IGluY2x1ZGUgb2YgQ1NTTXV0YWJsZVN0eWxlRGVj
bGFyYXRpb24uaAorCisgICAgICAgICogZWRpdGluZy9SZW1vdmVDU1NQcm9wZXJ0eUNvbW1hbmQu
aDoKKwogMjAwOS0wMy0xMSAgTWFyayBSb3dlICA8bXJvd2VAYXBwbGUuY29tPgogCiAgICAgICAg
IFJ1YmJlci1zdGFtcGVkIGJ5IERhcmluIEFkbGVyLgpJbmRleDogV2ViQ29yZS9lZGl0aW5nL1Jl
bW92ZUNTU1Byb3BlcnR5Q29tbWFuZC5oCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvZWRpdGluZy9S
ZW1vdmVDU1NQcm9wZXJ0eUNvbW1hbmQuaAkocmV2aXNpb24gNDE2MDIpCisrKyBXZWJDb3JlL2Vk
aXRpbmcvUmVtb3ZlQ1NTUHJvcGVydHlDb21tYW5kLmgJKHdvcmtpbmcgY29weSkKQEAgLTI4LDYg
KzI4LDcgQEAKIAogI2luY2x1ZGUgIkVkaXRDb21tYW5kLmgiCiAjaW5jbHVkZSAiQ1NTUHJvcGVy
dHlOYW1lcy5oIgorI2luY2x1ZGUgIkNTU011dGFibGVTdHlsZURlY2xhcmF0aW9uLmgiCiAKIG5h
bWVzcGFjZSBXZWJDb3JlIHsKIAo=
</data>
<flag name="review"
          id="15187"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>