<?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>22178</bug_id>
          
          <creation_ts>2008-11-11 09:33:51 -0800</creation_ts>
          <short_desc>Build errors in WebKit Cairo port.</short_desc>
          <delta_ts>2008-12-14 22:03:31 -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>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</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="Mital Vora">mital.d.vora</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aroben</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>98297</commentid>
    <comment_count>0</comment_count>
    <who name="Mital Vora">mital.d.vora</who>
    <bug_when>2008-11-11 09:33:51 -0800</bug_when>
    <thetext>There are build errors in WebKit cairo port. Trunk version for both the Debug_cairo as well as Release_cairo are not compiling.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98432</commentid>
    <comment_count>1</comment_count>
      <attachid>25085</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2008-11-11 21:43:41 -0800</bug_when>
    <thetext>Created attachment 25085
Small patch to work around MSVC-specific build error.

Small patch to work around a compiler error in MSVC.  The return value of the patternTransform.inverse () call can&apos;t be chained into the reinterpret_cast under MSVC.  It generates a warning, but since the MSVC error level is set to make all warnings errors, the build fails.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98440</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2008-11-11 22:39:28 -0800</bug_when>
    <thetext>Some additional information:  The original form of this code was
const cairo_matrix_t* pattern_matrix
 = reinterpret_cast&lt;const cairo_matrix_t*&gt;(&amp;patternTransform.inverse());

Visual Studio (2005 release) spits out a warning with this form:
C4238:  nonstandard extension used : class rvalue used as lvalue

See http://msdn.microsoft.com/en-us/library/7zyb9yb4(VS.80).aspx for some discussion.

This may work properly in future releases of MSVC, but the attached change is simple, and works on multiple compilers.  By simply binding the return value of the call to inverse to a const reference, the compiler sees what we want to do and stops complaining.

const AffineTransform&amp; inverse = patternTransform.inverse();
const cairo_matrix_t* pattern_matrix = reinterpret_cast&lt;const cairo_matrix_t*&gt;(&amp;inverse);

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98516</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Roben (:aroben)">aroben</who>
    <bug_when>2008-11-12 13:55:02 -0800</bug_when>
    <thetext>Committed in r38343</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98860</commentid>
    <comment_count>4</comment_count>
    <who name="Mital Vora">mital.d.vora</who>
    <bug_when>2008-11-15 03:05:56 -0800</bug_when>
    <thetext>The Cairo build is still not compiling I am getting errors:

7&gt;SVGPaintServerPatternCg.cpp
7&gt;..\svg\graphics\cg\SVGPaintServerPatternCg.cpp(41) : error C2440: &apos;&lt;function-style-cast&gt;&apos; : cannot convert from &apos;WebCore::FloatRect&apos; to &apos;CGRect&apos;
7&gt;        No constructor could take the source type, or constructor overload resolution was ambiguous
7&gt;..\svg\graphics\cg\SVGPaintServerPatternCg.cpp(41) : error C2039: &apos;getCGImageRef&apos; : is not a member of &apos;WebCore::Image&apos;
7&gt;        c:\Documents and Settings\mital.v\My Documents\Mital Projects\Webkit\WebKit\WebCore\platform\graphics\Image.h(78) : see declaration of &apos;WebCore::Image&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerPatternCg.cpp(47) : error C2440: &apos;initializing&apos; : cannot convert from &apos;PlatformGraphicsContext *&apos; to &apos;CGContextRef&apos;
7&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
7&gt;..\svg\graphics\cg\SVGPaintServerPatternCg.cpp(84) : error C2065: &apos;m_pattern&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerPatternCg.cpp(85) : error C2440: &apos;&lt;function-style-cast&gt;&apos; : cannot convert from &apos;WebCore::FloatRect&apos; to &apos;CGRect&apos;
7&gt;        No constructor could take the source type, or constructor overload resolution was ambiguous
7&gt;..\svg\graphics\cg\SVGPaintServerPatternCg.cpp(93) : error C2065: &apos;m_patternSpace&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerPatternCg.cpp(119) : error C2509: &apos;teardown&apos; : member function not declared in &apos;WebCore::SVGPaintServerPattern&apos;
7&gt;        c:\Documents and Settings\mital.v\My Documents\Mital Projects\Webkit\WebKit\WebCore\svg\graphics\SVGPaintServerPattern.h(45) : see declaration of &apos;WebCore::SVGPaintServerPattern&apos;
7&gt;SVGPaintServerGradientCg.cpp
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(44) : error C2039: &apos;SharedStopCache&apos; : is not a member of &apos;WebCore::SVGPaintServerGradient&apos;
7&gt;        c:\documents and settings\mital.v\my documents\mital projects\webkit\webkit\webcore\svg\graphics\SVGPaintServerGradient.h(57) : see declaration of &apos;WebCore::SVGPaintServerGradient&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(44) : error C2061: syntax error : identifier &apos;SharedStopCache&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(47) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(47) : error C2143: syntax error : missing &apos;,&apos; before &apos;*&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(49) : error C2039: &apos;SharedStopCache&apos; : is not a member of &apos;WebCore::SVGPaintServerGradient&apos;
7&gt;        c:\documents and settings\mital.v\my documents\mital projects\webkit\webkit\webcore\svg\graphics\SVGPaintServerGradient.h(57) : see declaration of &apos;WebCore::SVGPaintServerGradient&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(49) : error C2065: &apos;SharedStopCache&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(49) : error C2065: &apos;stopsCache&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(49) : error C2039: &apos;SharedStopCache&apos; : is not a member of &apos;WebCore::SVGPaintServerGradient&apos;
7&gt;        c:\documents and settings\mital.v\my documents\mital projects\webkit\webkit\webcore\svg\graphics\SVGPaintServerGradient.h(57) : see declaration of &apos;WebCore::SVGPaintServerGradient&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(49) : error C2061: syntax error : identifier &apos;SharedStopCache&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(51) : error C2039: &apos;QuartzGradientStop&apos; : is not a member of &apos;WebCore::SVGPaintServerGradient&apos;
7&gt;        c:\documents and settings\mital.v\my documents\mital projects\webkit\webkit\webcore\svg\graphics\SVGPaintServerGradient.h(57) : see declaration of &apos;WebCore::SVGPaintServerGradient&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(51) : error C2065: &apos;QuartzGradientStop&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(51) : error C2065: &apos;stops&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(51) : error C2227: left of &apos;-&gt;m_stops&apos; must point to class/struct/union/generic type
7&gt;        type is &apos;&apos;unknown-type&apos;&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(51) : error C2228: left of &apos;.data&apos; must have class/struct/union
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(53) : error C2227: left of &apos;-&gt;m_stops&apos; must point to class/struct/union/generic type
7&gt;        type is &apos;&apos;unknown-type&apos;&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(53) : error C2228: left of &apos;.size&apos; must have class/struct/union
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(55) : error C2146: syntax error : missing &apos;;&apos; before identifier &apos;inValue&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(55) : error C2065: &apos;inValue&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(55) : error C2065: &apos;inValues&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(58) : error C2065: &apos;outColor&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(64) : error C2228: left of &apos;.colorArray&apos; must have class/struct/union
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(68) : error C2228: left of &apos;.offset&apos; must have class/struct/union
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(69) : error C2228: left of &apos;.colorArray&apos; must have class/struct/union
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(70) : error C2228: left of &apos;.offset&apos; must have class/struct/union
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(71) : error C2228: left of &apos;.colorArray&apos; must have class/struct/union
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(74) : error C2228: left of &apos;.offset&apos; must have class/struct/union
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(74) : fatal error C1903: unable to recover from previous error(s); stopping compilation
7&gt;SVGPaintServerCg.cpp
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(49) : error C2065: &apos;CGContextRef&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(49) : error C2146: syntax error : missing &apos;;&apos; before identifier &apos;contextRef&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(49) : error C2065: &apos;contextRef&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(52) : error C3861: &apos;fillPath&apos;: identifier not found
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(55) : error C3861: &apos;strokePath&apos;: identifier not found
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(58) : error C2039: &apos;strokePath&apos; : is not a member of &apos;WebCore::SVGPaintServer&apos;
7&gt;        c:\Documents and Settings\mital.v\My Documents\Mital Projects\Webkit\WebKit\WebCore\svg\graphics\SVGPaintServer.h(59) : see declaration of &apos;WebCore::SVGPaintServer&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(58) : error C2146: syntax error : missing &apos;)&apos; before identifier &apos;context&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(58) : error C2182: &apos;strokePath&apos; : illegal use of type &apos;void&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(58) : error C2059: syntax error : &apos;)&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(59) : error C2143: syntax error : missing &apos;;&apos; before &apos;{&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(59) : error C2447: &apos;{&apos; : missing function header (old-style formal list?)
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(63) : error C2039: &apos;clipToStrokePath&apos; : is not a member of &apos;WebCore::SVGPaintServer&apos;
7&gt;        c:\Documents and Settings\mital.v\My Documents\Mital Projects\Webkit\WebKit\WebCore\svg\graphics\SVGPaintServer.h(59) : see declaration of &apos;WebCore::SVGPaintServer&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(63) : error C2146: syntax error : missing &apos;)&apos; before identifier &apos;context&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(63) : error C2182: &apos;clipToStrokePath&apos; : illegal use of type &apos;void&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(63) : error C2059: syntax error : &apos;)&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(64) : error C2143: syntax error : missing &apos;;&apos; before &apos;{&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(64) : error C2447: &apos;{&apos; : missing function header (old-style formal list?)
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(69) : error C2039: &apos;fillPath&apos; : is not a member of &apos;WebCore::SVGPaintServer&apos;
7&gt;        c:\Documents and Settings\mital.v\My Documents\Mital Projects\Webkit\WebKit\WebCore\svg\graphics\SVGPaintServer.h(59) : see declaration of &apos;WebCore::SVGPaintServer&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(69) : error C2146: syntax error : missing &apos;)&apos; before identifier &apos;context&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(69) : error C2182: &apos;fillPath&apos; : illegal use of type &apos;void&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(69) : error C2059: syntax error : &apos;)&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(70) : error C2143: syntax error : missing &apos;;&apos; before &apos;{&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(70) : error C2447: &apos;{&apos; : missing function header (old-style formal list?)
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(77) : error C2039: &apos;clipToFillPath&apos; : is not a member of &apos;WebCore::SVGPaintServer&apos;
7&gt;        c:\Documents and Settings\mital.v\My Documents\Mital Projects\Webkit\WebKit\WebCore\svg\graphics\SVGPaintServer.h(59) : see declaration of &apos;WebCore::SVGPaintServer&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(77) : error C2146: syntax error : missing &apos;)&apos; before identifier &apos;context&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(77) : error C2182: &apos;clipToFillPath&apos; : illegal use of type &apos;void&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(77) : error C2059: syntax error : &apos;)&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(78) : error C2143: syntax error : missing &apos;;&apos; before &apos;{&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(78) : error C2447: &apos;{&apos; : missing function header (old-style formal list?)
7&gt;RenderPathCg.cpp
7&gt;..\svg\graphics\cg\RenderPathCg.cpp(60) : error C2440: &apos;initializing&apos; : cannot convert from &apos;PlatformPath *&apos; to &apos;WebCore::CGMutablePathRef&apos;
7&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
7&gt;..\svg\graphics\cg\RenderPathCg.cpp(68) : error C2664: &apos;WebCore::GraphicsContext::GraphicsContext(PlatformGraphicsContext *)&apos; : cannot convert parameter 1 from &apos;CGContextRef&apos; to &apos;PlatformGraphicsContext *&apos;
7&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
7&gt;..\svg\graphics\cg\RenderPathCg.cpp(71) : error C2664: &apos;CGContextPathContainsPoint&apos; : cannot convert parameter 2 from &apos;const WebCore::FloatPoint&apos; to &apos;CGPoint&apos;
7&gt;        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
7&gt;CgSupport.cpp
7&gt;..\svg\graphics\cg\CgSupport.cpp(72) : error C2440: &apos;initializing&apos; : cannot convert from &apos;PlatformPath *&apos; to &apos;CGPathRef&apos;
7&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
7&gt;..\svg\graphics\cg\CgSupport.cpp(80) : error C2664: &apos;WebCore::GraphicsContext::GraphicsContext(PlatformGraphicsContext *)&apos; : cannot convert parameter 1 from &apos;CGContextRef&apos; to &apos;PlatformGraphicsContext *&apos;
7&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
7&gt;..\svg\graphics\cg\CgSupport.cpp(94) : error C2440: &apos;&lt;function-style-cast&gt;&apos; : cannot convert from &apos;CGRect&apos; to &apos;WebCore::FloatRect&apos;
7&gt;        No constructor could take the source type, or constructor overload resolution was ambiguous
7&gt;SVGResourceMasker.cpp
7&gt;SVGResourceMarker.cpp

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98869</commentid>
    <comment_count>5</comment_count>
    <who name="Mital Vora">mital.d.vora</who>
    <bug_when>2008-11-15 06:07:07 -0800</bug_when>
    <thetext>(In reply to comment #4)
The errors I am getting in revision: 38420 which is compiling in Release build but not compiling in Release_cairo build.

-------------
7&gt;Compiling...
7&gt;SVGResourceFilterCg.cpp
7&gt;SVGResourceClipperCg.cpp
7&gt;..\svg\graphics\cg\SVGResourceClipperCg.cpp(65) : error C2440: &apos;initializing&apos; : cannot convert from &apos;PlatformGraphicsContext *&apos; to &apos;CGContextRef&apos;
7&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
7&gt;SVGPaintServerSolidCg.cpp
7&gt;SVGPaintServerPatternCg.cpp
7&gt;..\svg\graphics\cg\SVGPaintServerPatternCg.cpp(41) : error C2440: &apos;&lt;function-style-cast&gt;&apos; : cannot convert from &apos;WebCore::FloatRect&apos; to &apos;CGRect&apos;
7&gt;        No constructor could take the source type, or constructor overload resolution was ambiguous
7&gt;..\svg\graphics\cg\SVGPaintServerPatternCg.cpp(41) : error C2039: &apos;getCGImageRef&apos; : is not a member of &apos;WebCore::Image&apos;
7&gt;        c:\Documents and Settings\mital.v\My Documents\Mital Projects\Webkit\WebKit\WebCore\platform\graphics\Image.h(78) : see declaration of &apos;WebCore::Image&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerPatternCg.cpp(47) : error C2440: &apos;initializing&apos; : cannot convert from &apos;PlatformGraphicsContext *&apos; to &apos;CGContextRef&apos;
7&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
7&gt;..\svg\graphics\cg\SVGPaintServerPatternCg.cpp(84) : error C2065: &apos;m_pattern&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerPatternCg.cpp(85) : error C2440: &apos;&lt;function-style-cast&gt;&apos; : cannot convert from &apos;WebCore::FloatRect&apos; to &apos;CGRect&apos;
7&gt;        No constructor could take the source type, or constructor overload resolution was ambiguous
7&gt;..\svg\graphics\cg\SVGPaintServerPatternCg.cpp(93) : error C2065: &apos;m_patternSpace&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerPatternCg.cpp(119) : error C2509: &apos;teardown&apos; : member function not declared in &apos;WebCore::SVGPaintServerPattern&apos;
7&gt;        c:\Documents and Settings\mital.v\My Documents\Mital Projects\Webkit\WebKit\WebCore\svg\graphics\SVGPaintServerPattern.h(45) : see declaration of &apos;WebCore::SVGPaintServerPattern&apos;
7&gt;SVGPaintServerGradientCg.cpp
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(44) : error C2039: &apos;SharedStopCache&apos; : is not a member of &apos;WebCore::SVGPaintServerGradient&apos;
7&gt;        c:\documents and settings\mital.v\my documents\mital projects\webkit\webkit\webcore\svg\graphics\SVGPaintServerGradient.h(57) : see declaration of &apos;WebCore::SVGPaintServerGradient&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(44) : error C2061: syntax error : identifier &apos;SharedStopCache&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(47) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(47) : error C2143: syntax error : missing &apos;,&apos; before &apos;*&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(49) : error C2039: &apos;SharedStopCache&apos; : is not a member of &apos;WebCore::SVGPaintServerGradient&apos;
7&gt;        c:\documents and settings\mital.v\my documents\mital projects\webkit\webkit\webcore\svg\graphics\SVGPaintServerGradient.h(57) : see declaration of &apos;WebCore::SVGPaintServerGradient&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(49) : error C2065: &apos;SharedStopCache&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(49) : error C2065: &apos;stopsCache&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(49) : error C2039: &apos;SharedStopCache&apos; : is not a member of &apos;WebCore::SVGPaintServerGradient&apos;
7&gt;        c:\documents and settings\mital.v\my documents\mital projects\webkit\webkit\webcore\svg\graphics\SVGPaintServerGradient.h(57) : see declaration of &apos;WebCore::SVGPaintServerGradient&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(49) : error C2061: syntax error : identifier &apos;SharedStopCache&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(51) : error C2039: &apos;QuartzGradientStop&apos; : is not a member of &apos;WebCore::SVGPaintServerGradient&apos;
7&gt;        c:\documents and settings\mital.v\my documents\mital projects\webkit\webkit\webcore\svg\graphics\SVGPaintServerGradient.h(57) : see declaration of &apos;WebCore::SVGPaintServerGradient&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(51) : error C2065: &apos;QuartzGradientStop&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(51) : error C2065: &apos;stops&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(51) : error C2227: left of &apos;-&gt;m_stops&apos; must point to class/struct/union/generic type
7&gt;        type is &apos;&apos;unknown-type&apos;&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(51) : error C2228: left of &apos;.data&apos; must have class/struct/union
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(53) : error C2227: left of &apos;-&gt;m_stops&apos; must point to class/struct/union/generic type
7&gt;        type is &apos;&apos;unknown-type&apos;&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(53) : error C2228: left of &apos;.size&apos; must have class/struct/union
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(55) : error C2146: syntax error : missing &apos;;&apos; before identifier &apos;inValue&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(55) : error C2065: &apos;inValue&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(55) : error C2065: &apos;inValues&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(58) : error C2065: &apos;outColor&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(64) : error C2228: left of &apos;.colorArray&apos; must have class/struct/union
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(68) : error C2228: left of &apos;.offset&apos; must have class/struct/union
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(69) : error C2228: left of &apos;.colorArray&apos; must have class/struct/union
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(70) : error C2228: left of &apos;.offset&apos; must have class/struct/union
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(71) : error C2228: left of &apos;.colorArray&apos; must have class/struct/union
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(74) : error C2228: left of &apos;.offset&apos; must have class/struct/union
7&gt;..\svg\graphics\cg\SVGPaintServerGradientCg.cpp(74) : fatal error C1903: unable to recover from previous error(s); stopping compilation
7&gt;SVGPaintServerCg.cpp
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(49) : error C2065: &apos;CGContextRef&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(49) : error C2146: syntax error : missing &apos;;&apos; before identifier &apos;contextRef&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(49) : error C2065: &apos;contextRef&apos; : undeclared identifier
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(52) : error C3861: &apos;fillPath&apos;: identifier not found
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(55) : error C3861: &apos;strokePath&apos;: identifier not found
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(58) : error C2039: &apos;strokePath&apos; : is not a member of &apos;WebCore::SVGPaintServer&apos;
7&gt;        c:\Documents and Settings\mital.v\My Documents\Mital Projects\Webkit\WebKit\WebCore\svg\graphics\SVGPaintServer.h(59) : see declaration of &apos;WebCore::SVGPaintServer&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(58) : error C2146: syntax error : missing &apos;)&apos; before identifier &apos;context&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(58) : error C2182: &apos;strokePath&apos; : illegal use of type &apos;void&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(58) : error C2059: syntax error : &apos;)&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(59) : error C2143: syntax error : missing &apos;;&apos; before &apos;{&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(59) : error C2447: &apos;{&apos; : missing function header (old-style formal list?)
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(63) : error C2039: &apos;clipToStrokePath&apos; : is not a member of &apos;WebCore::SVGPaintServer&apos;
7&gt;        c:\Documents and Settings\mital.v\My Documents\Mital Projects\Webkit\WebKit\WebCore\svg\graphics\SVGPaintServer.h(59) : see declaration of &apos;WebCore::SVGPaintServer&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(63) : error C2146: syntax error : missing &apos;)&apos; before identifier &apos;context&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(63) : error C2182: &apos;clipToStrokePath&apos; : illegal use of type &apos;void&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(63) : error C2059: syntax error : &apos;)&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(64) : error C2143: syntax error : missing &apos;;&apos; before &apos;{&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(64) : error C2447: &apos;{&apos; : missing function header (old-style formal list?)
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(69) : error C2039: &apos;fillPath&apos; : is not a member of &apos;WebCore::SVGPaintServer&apos;
7&gt;        c:\Documents and Settings\mital.v\My Documents\Mital Projects\Webkit\WebKit\WebCore\svg\graphics\SVGPaintServer.h(59) : see declaration of &apos;WebCore::SVGPaintServer&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(69) : error C2146: syntax error : missing &apos;)&apos; before identifier &apos;context&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(69) : error C2182: &apos;fillPath&apos; : illegal use of type &apos;void&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(69) : error C2059: syntax error : &apos;)&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(70) : error C2143: syntax error : missing &apos;;&apos; before &apos;{&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(70) : error C2447: &apos;{&apos; : missing function header (old-style formal list?)
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(77) : error C2039: &apos;clipToFillPath&apos; : is not a member of &apos;WebCore::SVGPaintServer&apos;
7&gt;        c:\Documents and Settings\mital.v\My Documents\Mital Projects\Webkit\WebKit\WebCore\svg\graphics\SVGPaintServer.h(59) : see declaration of &apos;WebCore::SVGPaintServer&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(77) : error C2146: syntax error : missing &apos;)&apos; before identifier &apos;context&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(77) : error C2182: &apos;clipToFillPath&apos; : illegal use of type &apos;void&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(77) : error C2059: syntax error : &apos;)&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(78) : error C2143: syntax error : missing &apos;;&apos; before &apos;{&apos;
7&gt;..\svg\graphics\cg\SVGPaintServerCg.cpp(78) : error C2447: &apos;{&apos; : missing function header (old-style formal list?)
7&gt;RenderPathCg.cpp
7&gt;..\svg\graphics\cg\RenderPathCg.cpp(60) : error C2440: &apos;initializing&apos; : cannot convert from &apos;PlatformPath *&apos; to &apos;WebCore::CGMutablePathRef&apos;
7&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
7&gt;..\svg\graphics\cg\RenderPathCg.cpp(68) : error C2664: &apos;WebCore::GraphicsContext::GraphicsContext(PlatformGraphicsContext *)&apos; : cannot convert parameter 1 from &apos;CGContextRef&apos; to &apos;PlatformGraphicsContext *&apos;
7&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
7&gt;..\svg\graphics\cg\RenderPathCg.cpp(71) : error C2664: &apos;CGContextPathContainsPoint&apos; : cannot convert parameter 2 from &apos;const WebCore::FloatPoint&apos; to &apos;CGPoint&apos;
7&gt;        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
7&gt;CgSupport.cpp
7&gt;..\svg\graphics\cg\CgSupport.cpp(72) : error C2440: &apos;initializing&apos; : cannot convert from &apos;PlatformPath *&apos; to &apos;CGPathRef&apos;
7&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
7&gt;..\svg\graphics\cg\CgSupport.cpp(80) : error C2664: &apos;WebCore::GraphicsContext::GraphicsContext(PlatformGraphicsContext *)&apos; : cannot convert parameter 1 from &apos;CGContextRef&apos; to &apos;PlatformGraphicsContext *&apos;
7&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
7&gt;..\svg\graphics\cg\CgSupport.cpp(94) : error C2440: &apos;&lt;function-style-cast&gt;&apos; : cannot convert from &apos;CGRect&apos; to &apos;WebCore::FloatRect&apos;
7&gt;        No constructor could take the source type, or constructor overload resolution was ambiguous
7&gt;SVGResourceMasker.cpp

-------------

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99763</commentid>
    <comment_count>6</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2008-11-21 22:32:41 -0800</bug_when>
    <thetext>(In reply to comment #5)

These errors all indicate that the build process is attempting to compile the CG source elements.  I find this confusing, because the VS project is segregated such that the Debug_Cairo/Release_Cairo does not compile any of the CG-based files.  The fact that they show up in your build log indicate that the wrong target is being used.

Are you building with the VS project, or via the command line tool?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102541</commentid>
    <comment_count>7</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2008-12-14 22:03:31 -0800</bug_when>
    <thetext>This patch was already committed in r38343.

Closing as complete.  If a new build error has cropped up, let&apos;s open a new bug please.
</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>25085</attachid>
            <date>2008-11-11 21:43:41 -0800</date>
            <delta_ts>2008-11-11 22:44:21 -0800</delta_ts>
            <desc>Small patch to work around MSVC-specific build error.</desc>
            <filename>build.patch</filename>
            <type>text/plain</type>
            <size>1361</size>
            <attacher name="Brent Fulgham">bfulgham</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvQ2hhbmdlTG9nCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFdlYkNvcmUvQ2hhbmdlTG9n
CShyZXZpc2lvbiAzODMyOSkKKysrIFdlYkNvcmUvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBA
IC0xLDMgKzEsMTEgQEAKKzIwMDgtMTEtMTEgIEJyZW50IEZ1bGdoYW0gPGJmdWxnaGFtQGdtYWls
LmNvbT4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICAq
IHBsYXRmb3JtL2dyYXBoaWNzL2NhaXJvL1BhdHRlcm5DYWlyby5jcHA6IENvcnJlY3QgYnVpbGQg
ZXJyb3IKKyAgICAgICAgICB1bmRlciBWaXN1YWwgU3R1ZGlvLgorICAgICAgICAoV2ViQ29yZTo6
UGF0dGVybjo6Y3JlYXRlUGxhdGZvcm1QYXR0ZXJuKToKKwogMjAwOC0xMS0xMSAgU3RlcGhhbmll
ICA8c2xld2lzQGFwcGxlLmNvbT4KIAogICAgICAgICBSZXZpZXdlZCBieSBEYW4gQmVybnN0ZWlu
LgpJbmRleDogV2ViQ29yZS9wbGF0Zm9ybS9ncmFwaGljcy9jYWlyby9QYXR0ZXJuQ2Fpcm8uY3Bw
Cj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT0KLS0tIFdlYkNvcmUvcGxhdGZvcm0vZ3JhcGhpY3MvY2Fpcm8vUGF0dGVybkNh
aXJvLmNwcAkocmV2aXNpb24gMzgzMjApCisrKyBXZWJDb3JlL3BsYXRmb3JtL2dyYXBoaWNzL2Nh
aXJvL1BhdHRlcm5DYWlyby5jcHAJKHdvcmtpbmcgY29weSkKQEAgLTQwLDcgKzQwLDggQEAgY2Fp
cm9fcGF0dGVybl90KiBQYXR0ZXJuOjpjcmVhdGVQbGF0Zm9ybQogICAgICAgICByZXR1cm4gMDsK
IAogICAgIGNhaXJvX3BhdHRlcm5fdCogcGF0dGVybiA9IGNhaXJvX3BhdHRlcm5fY3JlYXRlX2Zv
cl9zdXJmYWNlKHN1cmZhY2UpOwotICAgIGNvbnN0IGNhaXJvX21hdHJpeF90KiBwYXR0ZXJuX21h
dHJpeCA9IHJlaW50ZXJwcmV0X2Nhc3Q8Y29uc3QgY2Fpcm9fbWF0cml4X3QqPigmcGF0dGVyblRy
YW5zZm9ybS5pbnZlcnNlKCkpOworICAgIGNvbnN0IEFmZmluZVRyYW5zZm9ybSYgaW52ZXJzZSA9
IHBhdHRlcm5UcmFuc2Zvcm0uaW52ZXJzZSgpOworICAgIGNvbnN0IGNhaXJvX21hdHJpeF90KiBw
YXR0ZXJuX21hdHJpeCA9IHJlaW50ZXJwcmV0X2Nhc3Q8Y29uc3QgY2Fpcm9fbWF0cml4X3QqPigm
aW52ZXJzZSk7CiAgICAgY2Fpcm9fcGF0dGVybl9zZXRfbWF0cml4KHBhdHRlcm4sIHBhdHRlcm5f
bWF0cml4KTsKICAgICBpZiAobV9yZXBlYXRYIHx8IG1fcmVwZWF0WSkKICAgICAgICAgY2Fpcm9f
cGF0dGVybl9zZXRfZXh0ZW5kKHBhdHRlcm4sIENBSVJPX0VYVEVORF9SRVBFQVQpOwo=
</data>
<flag name="review"
          id="11543"
          type_id="1"
          status="+"
          setter="mrowe"
    />
          </attachment>
      

    </bug>

</bugzilla>