<?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>150996</bug_id>
          
          <creation_ts>2015-11-07 07:13:14 -0800</creation_ts>
          <short_desc>Node.h:392:12: warning: &apos;this&apos; pointer cannot be null in well-defined C++ code</short_desc>
          <delta_ts>2015-11-07 09:17:44 -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>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</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="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>esprehn+autocc</cc>
    
    <cc>kangil.han</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1140181</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2015-11-07 07:13:14 -0800</bug_when>
    <thetext>WebCore::Node::document begins with the line ASSERT(this), which is bogus. In Clang 3.7, this triggers a compiler warning for every file that includes Node.h:

../../Source/WebCore/dom/Node.h:392:12: warning: &apos;this&apos; pointer cannot be null in well-defined C++ code; pointer may be assumed to always convert to true [-Wundefined-bool-conversion]
        (!(this) ? (WTFReportAssertionFailure(&quot;../../Source/WebCore/dom/Node.h&quot;, 392, __PRETTY_FUNCTION__, &quot;this&quot;), WTFCrash()) : (void)0);
         ~ ^~~~
1 warning generated.

Pretty sure GCC and Clang both optimize away this assertion, but I guess the warning is new. The fix is just to remove the assertion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1140182</commentid>
    <comment_count>1</comment_count>
      <attachid>265002</attachid>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2015-11-07 07:29:54 -0800</bug_when>
    <thetext>Created attachment 265002
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1140189</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2015-11-07 09:17:44 -0800</bug_when>
    <thetext>Committed r192130: &lt;http://trac.webkit.org/changeset/192130&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>265002</attachid>
            <date>2015-11-07 07:29:54 -0800</date>
            <delta_ts>2015-11-07 08:33:06 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-150996-20151107092952.patch</filename>
            <type>text/plain</type>
            <size>1229</size>
            <attacher name="Michael Catanzaro">mcatanzaro</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTkyMTI5CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggYjU1YmQ5NDQzZGE5MTI1
ZGQ3OGQ5OTE1ZjEwN2VmZWE1MmNhZDI5MC4uYjQyNTY3YTdjMTUwNzNlMmIyN2JhZTQxMjVhODc1
OWE0YmM0OTJiZCAxMDA2NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCisrKyBiL1Nv
dXJjZS9XZWJDb3JlL0NoYW5nZUxvZwpAQCAtMSw1ICsxLDE3IEBACiAyMDE1LT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
RG9jdW1lbnQgbm9kZSByZXR1cm5zIGl0c2VsZi4KICAgICBEb2N1bWVudCYgZG9jdW1lbnQoKSBj
b25zdAogICAgIHsKLSAgICAgICAgQVNTRVJUKHRoaXMpOwogICAgICAgICByZXR1cm4gdHJlZVNj
b3BlKCkuZG9jdW1lbnRTY29wZSgpOwogICAgIH0KIAo=
</data>
<flag name="review"
          id="290104"
          type_id="1"
          status="+"
          setter="kling"
    />
          </attachment>
      

    </bug>

</bugzilla>