<?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>158515</bug_id>
          
          <creation_ts>2016-06-07 21:18:07 -0700</creation_ts>
          <short_desc>[EFL] Build fix related with SharedBuffer::createFromReadingFile in SharedBufferPosix.cpp</short_desc>
          <delta_ts>2016-06-07 22:02:11 -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>WebKit EFL</component>
          <version>WebKit 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="Joonghun Park">jh718.park</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>gyuyoung.kim</cc>
    
    <cc>lucas.de.marchi</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1200313</commentid>
    <comment_count>0</comment_count>
    <who name="Joonghun Park">jh718.park</who>
    <bug_when>2016-06-07 21:18:07 -0700</bug_when>
    <thetext>This patch fixes the build error shown as below.

../../Source/WebCore/platform/posix/SharedBufferPOSIX.cpp: In static member function ‘static WTF::RefPtr&lt;WebCore::SharedBuffer&gt; WebCore::SharedBuffer::createFromReadingFile(const WTF::String&amp;)’:
../../Source/WebCore/platform/posix/SharedBufferPOSIX.cpp:69:42: error: operands to ?: have different types ‘WTF::Ref&lt;WebCore::SharedBuffer&gt;’ and ‘int’
     return totalBytesRead == bytesToRead ? SharedBuffer::adoptVector(buffer) : 0;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1200316</commentid>
    <comment_count>1</comment_count>
    <who name="Joonghun Park">jh718.park</who>
    <bug_when>2016-06-07 21:26:24 -0700</bug_when>
    <thetext>Committed r201790: &lt;http://trac.webkit.org/changeset/201790&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1200320</commentid>
    <comment_count>2</comment_count>
    <who name="Gyuyoung Kim">gyuyoung.kim</who>
    <bug_when>2016-06-07 21:57:30 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Committed r201790: &lt;http://trac.webkit.org/changeset/201790&gt;

Personally I prefer to fix this issue as https://bugs.webkit.org/attachment.cgi?id=280763&amp;action=review</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1200322</commentid>
    <comment_count>3</comment_count>
    <who name="Joonghun Park">jh718.park</who>
    <bug_when>2016-06-07 22:02:11 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; Committed r201790: &lt;http://trac.webkit.org/changeset/201790&gt;
&gt; 
&gt; Personally I prefer to fix this issue as
&gt; https://bugs.webkit.org/attachment.cgi?id=280763&amp;action=review

I realized that I missed to change 0s to nullptr when I saw the https://bugs.webkit.org/attachment.cgi?id=280763. That would be more proper one.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>