<?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>33944</bug_id>
          
          <creation_ts>2010-01-21 05:10:20 -0800</creation_ts>
          <short_desc>[Android] bindings/v8/V8DOMWrapper.h[cpp] are missing guards for SVG, XPATH and XSLT features</short_desc>
          <delta_ts>2010-01-23 05:00:26 -0800</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>Android</rep_platform>
          <op_sys>Android</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>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Andrei Popescu">andreip</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>android-webkit-unforking</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>183167</commentid>
    <comment_count>0</comment_count>
    <who name="Andrei Popescu">andreip</who>
    <bug_when>2010-01-21 05:10:20 -0800</bug_when>
    <thetext>Iniside V8DOMWrapper.h[cpp], the code for SVG, XPATH and XSLT features is not guarded by the appropriate #if ENABLE(feature) macros. 
V8DOMWrapper.cpp includes ChromiumBridge.h for no reason.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183169</commentid>
    <comment_count>1</comment_count>
      <attachid>47110</attachid>
    <who name="Andrei Popescu">andreip</who>
    <bug_when>2010-01-21 05:17:54 -0800</bug_when>
    <thetext>Created attachment 47110
Add missing guards.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183216</commentid>
    <comment_count>2</comment_count>
      <attachid>47110</attachid>
    <who name="David Levin">levin</who>
    <bug_when>2010-01-21 09:14:15 -0800</bug_when>
    <thetext>Comment on attachment 47110
Add missing guards.

Just a few minor things to address.

&gt; Index: WebCore/ChangeLog
&gt; +2010-01-21  Andrei Popescu  &lt;andreip@google.com&gt;
&gt; +
&gt; +        Reviewed by NOBODY (OOPS!).
&gt; +
&gt; +        [Android] bindings/v8/V8DOMWrapper.h[cpp] are missing guards for SVG, XPATH and XSLT features
&gt; +        https://bugs.webkit.org/show_bug.cgi?id=33944
&gt; +
&gt; +        Iniside V8DOMWrapper.h[cpp], the code for SVG, XPATH and XSLT features is not guarded

typo: Iniside

Please adjust the comment appropriately when you remove the if ENABLE(SVG) for the SVG headers (see comment below).

&gt; Index: WebCore/bindings/v8/V8DOMWrapper.cpp
&gt;  #include &quot;Notification.h&quot;
&gt; -#include &quot;SVGElementInstance.h&quot;

Please leave this here and add #include &quot;SVGPathSeg.h&quot; (see comments below).

&gt;  #include &quot;ScriptController.h&quot;
&gt;  #include &quot;V8AbstractEventListener.h&quot;
&gt;  #include &quot;V8Binding.h&quot;
&gt; @@ -63,6 +61,7 @@
&gt;  #include &quot;WorkerContextExecutionProxy.h&quot;
&gt;  
&gt;  #if ENABLE(SVG)
&gt; +#include &quot;SVGElementInstance.h&quot;

SVGElementInstance.h correctly has #if ENABLE(SVG) inside of it so this is unnecessary. (If something is wrong with the way the header does the if ENABLE, please fix that.)

&gt;  #include &quot;SVGPathSeg.h&quot;

SVGPathSeg.h also  has #if ENABLE(SVG) inside of it. So the whole if ENABLE(SVG) that is guarding these includes should go away and these headers should just be sorted with the other headers (as SVGElementInstance.h was before).


&gt;  #endif</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183237</commentid>
    <comment_count>3</comment_count>
    <who name="Andrei Popescu">andreip</who>
    <bug_when>2010-01-21 10:09:18 -0800</bug_when>
    <thetext>Thanks a lot David!

(In reply to comment #2)
&gt; (From update of attachment 47110 [details])
&gt; Just a few minor things to address.
&gt; 
&gt; &gt; Index: WebCore/ChangeLog
&gt; &gt; +2010-01-21  Andrei Popescu  &lt;andreip@google.com&gt;
&gt; &gt; +
&gt; &gt; +        Reviewed by NOBODY (OOPS!).
&gt; &gt; +
&gt; &gt; +        [Android] bindings/v8/V8DOMWrapper.h[cpp] are missing guards for SVG, XPATH and XSLT features
&gt; &gt; +        https://bugs.webkit.org/show_bug.cgi?id=33944
&gt; &gt; +
&gt; &gt; +        Iniside V8DOMWrapper.h[cpp], the code for SVG, XPATH and XSLT features is not guarded
&gt; 
&gt; typo: Iniside
&gt; 

Fixed.

&gt; Please adjust the comment appropriately when you remove the if ENABLE(SVG) for
&gt; the SVG headers (see comment below).
&gt; 
&gt; &gt; Index: WebCore/bindings/v8/V8DOMWrapper.cpp
&gt; &gt;  #include &quot;Notification.h&quot;
&gt; &gt; -#include &quot;SVGElementInstance.h&quot;
&gt; 
&gt; Please leave this here and add #include &quot;SVGPathSeg.h&quot; (see comments below).
&gt; 

Done.

&gt; &gt;  #include &quot;ScriptController.h&quot;
&gt; &gt;  #include &quot;V8AbstractEventListener.h&quot;
&gt; &gt;  #include &quot;V8Binding.h&quot;
&gt; &gt; @@ -63,6 +61,7 @@
&gt; &gt;  #include &quot;WorkerContextExecutionProxy.h&quot;
&gt; &gt;  
&gt; &gt;  #if ENABLE(SVG)
&gt; &gt; +#include &quot;SVGElementInstance.h&quot;
&gt; 
&gt; SVGElementInstance.h correctly has #if ENABLE(SVG) inside of it so this is
&gt; unnecessary. (If something is wrong with the way the header does the if ENABLE,
&gt; please fix that.)
&gt; 

I see, I will do that if I find a header with such a problem.

&gt; &gt;  #include &quot;SVGPathSeg.h&quot;
&gt; 
&gt; SVGPathSeg.h also  has #if ENABLE(SVG) inside of it. So the whole if
&gt; ENABLE(SVG) that is guarding these includes should go away and these headers
&gt; should just be sorted with the other headers (as SVGElementInstance.h was
&gt; before).
&gt; 

Done.

Steve Block was kind enough to commit a new patch that has the changes you requested.

Thanks,
Andrei</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183859</commentid>
    <comment_count>4</comment_count>
      <attachid>47110</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-01-22 16:00:38 -0800</bug_when>
    <thetext>Comment on attachment 47110
Add missing guards.

This patch does not apply cleanly to the most recent version.  I haven&apos;t looked whether the merge is trivial.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>183983</commentid>
    <comment_count>5</comment_count>
    <who name="Andrei Popescu">andreip</who>
    <bug_when>2010-01-23 05:00:26 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 47110 [details])
&gt; This patch does not apply cleanly to the most recent version.  I haven&apos;t looked
&gt; whether the merge is trivial.

That would be because it&apos;s landed already:

http://trac.webkit.org/changeset/53630

I think Steve simply forgot to update the bug after he landed the patch. It is my fault for rushing him.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>47110</attachid>
            <date>2010-01-21 05:17:54 -0800</date>
            <delta_ts>2010-01-22 16:00:38 -0800</delta_ts>
            <desc>Add missing guards.</desc>
            <filename>33944.patch</filename>
            <type>text/plain</type>
            <size>3211</size>
            <attacher name="Andrei Popescu">andreip</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiA1MzYyMikKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMjAgQEAKKzIwMTAtMDEtMjEgIEFuZHJlaSBQb3Blc2N1ICA8YW5kcmVpcEBnb29n
bGUuY29tPgorC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2t1cCk7CiAKLQorI2lmIEVOQUJM
RShYUEFUSCkKICAgICAgICAgLy8gWFBhdGgtcmVsYXRlZCB1dGlsaXRpZXMKICAgICAgICAgc3Rh
dGljIFJlZlB0cjxYUGF0aE5TUmVzb2x2ZXI+IGdldFhQYXRoTlNSZXNvbHZlcih2ODo6SGFuZGxl
PHY4OjpWYWx1ZT4gdmFsdWUsIFY4UHJveHkqIHByb3h5ID0gMCkKICAgICAgICAgewpAQCAtMjA1
LDcgKzIwNSw3IEBAIG5hbWVzcGFjZSBXZWJDb3JlIHsKICAgICAgICAgICAgICAgICByZXNvbHZl
ciA9IFY4Q3VzdG9tWFBhdGhOU1Jlc29sdmVyOjpjcmVhdGUocHJveHksIHZhbHVlLT5Ub09iamVj
dCgpKTsKICAgICAgICAgICAgIHJldHVybiByZXNvbHZlcjsKICAgICAgICAgfQotCisjZW5kaWYK
ICAgICAgICAgLy8gRE9NSW1wbGVtZW50YXRpb24gaXMgYSBzaW5nbGV0b24gYW5kIGl0IGlzIGhh
bmRsZWQgaW4gYSBzcGVjaWFsCiAgICAgICAgIC8vIHdheS4gQSB3cmFwcGVyIGlzIGdlbmVyYXRl
ZCBwZXIgZG9jdW1lbnQgYW5kIHN0b3JlZCBpbiBhbgogICAgICAgICAvLyBpbnRlcm5hbCBmaWVs
ZCBvZiB0aGUgZG9jdW1lbnQuCg==
</data>
<flag name="review"
          id="29495"
          type_id="1"
          status="+"
          setter="levin"
    />
    <flag name="commit-queue"
          id="29649"
          type_id="3"
          status="-"
          setter="abarth"
    />
          </attachment>
      

    </bug>

</bugzilla>