<?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>18985</bug_id>
          
          <creation_ts>2008-05-10 07:17:28 -0700</creation_ts>
          <short_desc>[QT][CAIRO] x- and y-attributes of &lt;use&gt;-element not used</short_desc>
          <delta_ts>2009-11-18 01:03:28 -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>SVG</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>30342</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Cairo, Qt</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dirk Schulze">krit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>hausmann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80073</commentid>
    <comment_count>0</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2008-05-10 07:17:28 -0700</bug_when>
    <thetext>If I understood the code right, the &lt;use&gt;-element is transformed to a &lt;g&gt;-element (in a basic case). 
All Attributes are given to the transformed element (like transform,fill,stroke), except for the x- and y-attributes. This only affects the Qt- and Cairo-implementation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80085</commentid>
    <comment_count>1</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2008-05-10 12:11:31 -0700</bug_when>
    <thetext>a simple problem:
http://trac.webkit.org/browser/trunk/WebCore/svg/SVGUseElement.cpp#L323
I get a comma instead of a point for floating-point (non-english-speaker), thats why webkit ignores the transformation.

e.g.:

transform(12,000, 30,500) instead of
transform(12.000, 30.500)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80086</commentid>
    <comment_count>2</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2008-05-10 12:13:31 -0700</bug_when>
    <thetext>(In reply to comment #1)
I use gcc (GCC) 4.2.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80103</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-05-10 23:38:05 -0700</bug_when>
    <thetext>Looks like vsnprintf is locale-aware, which is probably not what we want inside WebCore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80288</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-05-13 11:28:08 -0700</bug_when>
    <thetext>*** Bug 19026 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80852</commentid>
    <comment_count>5</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2008-05-18 12:43:34 -0700</bug_when>
    <thetext>A solution could be

setlocale(LC_NUMERIC, &quot;C&quot;);

add the line before a vsnprintf() operation or system wide (don&apos;t know it this is possible) and it should work. (perhaps with #include &lt;local.h&gt;)
I tested it in SVGUseElement.cpp with success.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80954</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-05-20 00:03:15 -0700</bug_when>
    <thetext>See also: bug 18994.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83450</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2008-06-16 05:42:06 -0700</bug_when>
    <thetext>I think the code should not use String::format() but simply toDouble() on a constructed string and construct the entire string to parse manually. String::toDouble() is locale-unaware as far as I can see.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>164490</commentid>
    <comment_count>8</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2009-11-18 01:03:28 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 30342 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>