<?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>65087</bug_id>
          
          <creation_ts>2011-07-24 15:22:40 -0700</creation_ts>
          <short_desc>Fix CSSFontSelector::addFontFaceRule()</short_desc>
          <delta_ts>2013-01-04 12:20:22 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>79103</dup_id>
          
          <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="Patrick R. Gansterer">paroga</reporter>
          <assigned_to name="Patrick R. Gansterer">paroga</assigned_to>
          <cc>eric</cc>
    
    <cc>hyatt</cc>
    
    <cc>mitz</cc>
    
    <cc>oliver</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>441496</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2011-07-24 15:22:40 -0700</bug_when>
    <thetext>Fix CSSFontSelector::addFontFaceRule()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>441498</commentid>
    <comment_count>1</comment_count>
      <attachid>101837</attachid>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2011-07-24 15:29:03 -0700</bug_when>
    <thetext>Created attachment 101837
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>441499</commentid>
    <comment_count>2</comment_count>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2011-07-24 15:37:54 -0700</bug_when>
    <thetext>Can you have a look at the patch attached at this bug please.

I found a weird line of code added in http://trac.webkit.org/changeset/26484 while working on an other issue.
I don&apos;t know what this code (not) does exactly, but it doesn&apos;t look sane to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>441505</commentid>
    <comment_count>3</comment_count>
    <who name="">mitz</who>
    <bug_when>2011-07-24 16:54:06 -0700</bug_when>
    <thetext>Good catch!

I know what the code is supposed to do: it’s supposed to make this work:

&lt;style&gt;
    @font-face {
        font-family: sans-serif;
        src: local(ahem);
    }
&lt;/style&gt;
&lt;div style=&quot;font-family: sans-serif;&quot;&gt;This should be in Ahem&lt;/div&gt;

However, looking at the working draft at &lt;http://www.w3.org/TR/2011/WD-css3-fonts-20110324/#descdef-font-family&gt; it seems as if generic family names are not valid values for the font-family font descriptor (it also doesn’t accept lists anymore…), so I’m not sure we should make the above snippet work. If we don’t, then of course we should just remove the whole thing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>441506</commentid>
    <comment_count>4</comment_count>
    <who name="">mitz</who>
    <bug_when>2011-07-24 16:55:41 -0700</bug_when>
    <thetext>The current code attempts (but as you’ve noticed, fails) to implement this earlier working draft: &lt;http://www.w3.org/TR/2002/WD-css3-webfonts-20020802/#font-family&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>441518</commentid>
    <comment_count>5</comment_count>
      <attachid>101837</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2011-07-24 17:40:58 -0700</bug_when>
    <thetext>Comment on attachment 101837
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=101837&amp;action=review

r=me on the idea of making the code work, but clearly we need regression tests before we actually make a change.

And we need to consider what behavior you want as you and Mitz discussed above.

&gt; Source/WebCore/ChangeLog:10
&gt; +        The varibable &quot;familyName&quot; is declared twice in this function.
&gt; +        The second decleration hides the first one and makes the whole
&gt; +        code in the the second useless.

You mean &quot;defined&quot;, not &quot;declared&quot;.

varibable -&gt; variable
decleration -&gt; declaration</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>800498</commentid>
    <comment_count>6</comment_count>
    <who name="Patrick R. Gansterer">paroga</who>
    <bug_when>2013-01-04 12:20:22 -0800</bug_when>
    <thetext>Fix landed in http://trac.webkit.org/changeset/108366

*** This bug has been marked as a duplicate of bug 79103 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>101837</attachid>
            <date>2011-07-24 15:29:03 -0700</date>
            <delta_ts>2011-07-24 17:40:58 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-65087-20110725002901.patch</filename>
            <type>text/plain</type>
            <size>1733</size>
            <attacher name="Patrick R. Gansterer">paroga</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogOTE2NTAKZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwppbmRleCBjYTMzNTE5NzIxMjI2YmVj
NDA3ZGY3MjA1NmRlNmRiNGExZDA5NjQ1Li5lZTNiNGQ3OWFjYjNmM2FlNjk1OTVkMjE2M2JhNWM2
ZTQ3Mzc2MDU1IDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvU291
cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMjEgQEAKKzIwMTEtMDctMjQgIFBhdHJp
Y2sgR2Fuc3RlcmVyICA8cGFyb2dhQHdlYmtpdC5vcmc+CisKKyAgICAgICAgRml4IENTU0ZvbnRT
ZWxlY3Rvcjo6YWRkRm9udEZhY2VSdWxlKCkKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5v
cmcvc2hvd19idWcuY2d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Y3NzL0NTU0ZvbnRTZWxlY3Rvci5jcHAKQEAgLTI5Myw3ICsyOTMsNiBAQCB2b2lkIENT
U0ZvbnRTZWxlY3Rvcjo6YWRkRm9udEZhY2VSdWxlKGNvbnN0IENTU0ZvbnRGYWNlUnVsZSogZm9u
dEZhY2VSdWxlKQogICAgICAgICBlbHNlIGlmIChpdGVtLT5wcmltaXRpdmVUeXBlKCkgPT0gQ1NT
UHJpbWl0aXZlVmFsdWU6OkNTU19JREVOVCkgewogICAgICAgICAgICAgLy8gV2UgbmVlZCB0byB1
c2UgdGhlIHJhdyB0ZXh0IGZvciBhbGwgdGhlIGdlbmVyaWMgZmFtaWx5IHR5cGVzLCBzaW5jZSBA
Zm9udC1mYWNlIGlzIGEgd2F5IG9mIGFjdHVhbGx5CiAgICAgICAgICAgICAvLyBkZWZpbmluZyB3
aGF0IGZvbnQgdG8gdXNlIGZvciB0aG9zZSB0eXBlcy4KLSAgICAgICAgICAgIFN0cmluZyBmYW1p
bHlOYW1lOwogICAgICAgICAgICAgc3dpdGNoIChpdGVtLT5nZXRJZGVudCgpKSB7CiAgICAgICAg
ICAgICAgICAgY2FzZSBDU1NWYWx1ZVNlcmlmOgogICAgICAgICAgICAgICAgICAgICBmYW1pbHlO
YW1lID0gIi13ZWJraXQtc2VyaWYiOwo=
</data>
<flag name="review"
          id="96891"
          type_id="1"
          status="+"
          setter="darin"
    />
    <flag name="commit-queue"
          id="96892"
          type_id="3"
          status="-"
          setter="paroga"
    />
          </attachment>
      

    </bug>

</bugzilla>