<?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>143313</bug_id>
          
          <creation_ts>2015-04-01 12:00:39 -0700</creation_ts>
          <short_desc>REGRESSION (r182121): SVG animation macros cause warnings in MSVC</short_desc>
          <delta_ts>2015-04-01 15:14:21 -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>SVG</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Alexey Proskuryakov">ap</assigned_to>
          <cc>darin</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1082071</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2015-04-01 12:00:39 -0700</bug_when>
    <thetext>MSVC warns about what sounds like a real bug in SVG code:

C:\cygwin\home\buildbot\slave\win-release\build\Source\WebCore\svg\SVGCursorElement.h(64): warning C4373: &apos;WebCore::SVGCursorElement::setExternalResourcesRequiredBaseValue&apos;: virtual function overrides &apos;WebCore::SVGExternalResourcesRequired::setExternalResourcesRequiredBaseValue&apos;, previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers (..\css\CSSAllInOne.cpp) [C:\cygwin\home\buildbot\slave\win-release\build\Source\WebCore\WebCore.vcxproj\WebCore.vcxproj]
C:\cygwin\home\buildbot\slave\win-release\build\Source\WebCore\svg\SVGFontElement.h(95): warning C4373: &apos;WebCore::SVGFontElement::setExternalResourcesRequiredBaseValue&apos;: virtual function overrides &apos;WebCore::SVGExternalResourcesRequired::setExternalResourcesRequiredBaseValue&apos;, previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers (..\css\CSSAllInOne.cpp) [C:\cygwin\home\buildbot\slave\win-release\build\Source\WebCore\WebCore.vcxproj\WebCore.vcxproj]
C:\cygwin\home\buildbot\slave\win-release\build\Source\WebCore\svg\SVGSVGElement.h(46): warning C4373: &apos;WebCore::SVGSVGElement::setExternalResourcesRequiredBaseValue&apos;: virtual function overrides &apos;WebCore::SVGExternalResourcesRequired::setExternalResourcesRequiredBaseValue&apos;, previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers (..\accessibility\AccessibilityAllInOne.cpp) [C:\cygwin\home\buildbot\slave\win-release\build\Source\WebCore\WebCore.vcxproj\WebCore.vcxproj]
C:\cygwin\home\buildbot\slave\win-release\build\Source\WebCore\svg\SVGSVGElement.h(46): warning C4373: &apos;WebCore::SVGSVGElement::setExternalResourcesRequiredBaseValue&apos;: virtual function overrides &apos;WebCore::SVGExternalResourcesRequired::setExternalResourcesRequiredBaseValue&apos;, previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers (..\css\CSSAllInOne.cpp) [C:\cygwin\home\buildbot\slave\win-release\build\Source\WebCore\WebCore.vcxproj\WebCore.vcxproj]
C:\cygwin\home\buildbot\slave\win-release\build\Source\WebCore\svg\SVGUseElement.h(46): warning C4373: &apos;WebCore::SVGUseElement::setExternalResourcesRequiredBaseValue&apos;: virtual function overrides &apos;WebCore::SVGExternalResourcesRequired::setExternalResourcesRequiredBaseValue&apos;, previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers (..\dom\DOMAllInOne.cpp) [C:\cygwin\home\buildbot\slave\win-release\build\Source\WebCore\WebCore.vcxproj\WebCore.vcxproj]
C:\cygwin\home\buildbot\slave\win-release\build\Source\WebCore\svg\SVGScriptElement.h(82): warning C4373: &apos;WebCore::SVGScriptElement::setExternalResourcesRequiredBaseValue&apos;: virtual function overrides &apos;WebCore::SVGExternalResourcesRequired::setExternalResourcesRequiredBaseValue&apos;, previous versions of the compiler did not override when parameters only differed by const/volatile qualifiers (..\dom\DOMAllInOne.cpp) [C:\cygwin\home\buildbot\slave\win-release\build\Source\WebCore\WebCore.vcxproj\WebCore.vcxproj]
...

Full log at https://build.webkit.org/builders/Apple%20Win%20Release%20%28Build%29/builds/68854/steps/compile-webkit/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1082072</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2015-04-01 12:03:21 -0700</bug_when>
    <thetext>This seems to be almost certainly a regression from &lt;http://trac.webkit.org/changeset/182121&gt;.

I&apos;m not sure how to observe this, or even whether there was any change in behavior with either clang or MSVC.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1082075</commentid>
    <comment_count>2</comment_count>
      <attachid>249937</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2015-04-01 12:06:00 -0700</bug_when>
    <thetext>Created attachment 249937
proposed fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1082091</commentid>
    <comment_count>3</comment_count>
      <attachid>249937</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2015-04-01 13:40:04 -0700</bug_when>
    <thetext>Comment on attachment 249937
proposed fix

Oops! We really need to add the “override” to the overrides of this function. That would have caused this to be a compilation failure rather than a subtle cause of failing tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1082093</commentid>
    <comment_count>4</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2015-04-01 13:42:24 -0700</bug_when>
    <thetext>Wait, no this is a big misunderstanding.

The warning is telling you about a behavior change where the Microsoft tools development team fixed a bug in the old version of Visual Studio. The warning simply indicates that this code would have had different behavior *in an old version of MSVC*. I don’t care about this passionately one way or another, but there’s nothing wrong here at all. We could just turn off this warning instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1082094</commentid>
    <comment_count>5</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2015-04-01 13:43:26 -0700</bug_when>
    <thetext>I think the title of this bug is misleading. I don’t know quite what to title it. It’s more appropriate to say “MSVC started warning, but there is no problem other than the warning”.

Unless there is some symptom here other than the warning that I’m unaware of? Can’t imagine there is given my understanding of the situation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1082115</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2015-04-01 15:14:21 -0700</bug_when>
    <thetext>Committed r182256 with a new title.

If this keeps happening, we should probably just silence the warning.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>249937</attachid>
            <date>2015-04-01 12:06:00 -0700</date>
            <delta_ts>2015-04-01 13:40:04 -0700</delta_ts>
            <desc>proposed fix</desc>
            <filename>ConstBool.txt</filename>
            <type>text/plain</type>
            <size>1314</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uIDE4MjI0NykKKysrIFNvdXJjZS9XZWJDb3JlL0NoYW5n
ZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwzICsxLDEwIEBACisyMDE1LTA0LTAxICBBbGV4ZXkg
UHJvc2t1cnlha292ICA8YXBAYXBwbGUuY29tPgorCisgICAgICAgIFJFR1JFU1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gdHJ1
ZSkgPSAwOworICAgIHZpcnR1YWwgdm9pZCBzZXRFeHRlcm5hbFJlc291cmNlc1JlcXVpcmVkQmFz
ZVZhbHVlKGNvbnN0IGJvb2wmLCBjb25zdCBib29sIHZhbGlkVmFsdWUgPSB0cnVlKSA9IDA7CiAg
ICAgdmlydHVhbCBib29sJiBleHRlcm5hbFJlc291cmNlc1JlcXVpcmVkQmFzZVZhbHVlKCkgY29u
c3QgPSAwOwogCiAgICAgdmlydHVhbCB2b2lkIHNldEhhdmVGaXJlZExvYWRFdmVudChib29sKSB7
IH0K
</data>
<flag name="review"
          id="274777"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>